Preparing report...

Report for storj.io/storj

(v1.69.2)

A+    Excellent!    Found 74 issues across 1058 files

Tweet

go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo93%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • satellite/audit/verifier.go
    • Line 352: warning: cyclomatic complexity 40 of function (*Verifier).Reverify() is high (> 15) (gocyclo)
    • Line 90: warning: cyclomatic complexity 25 of function (*Verifier).Verify() is high (> 15) (gocyclo)
    • satellite/admin/user.go
    • Line 329: warning: cyclomatic complexity 19 of function (*Server).deleteUser() is high (> 15) (gocyclo)
    • Line 200: warning: cyclomatic complexity 17 of function (*Server).updateUser() is high (> 15) (gocyclo)
    • satellite/console/service.go
    • Line 983: warning: cyclomatic complexity 30 of function (*Service).Token() is high (> 15) (gocyclo)
    • Line 1647: warning: cyclomatic complexity 20 of function (*Service).UpdateProject() is high (> 15) (gocyclo)
    • Line 1718: warning: cyclomatic complexity 20 of function (*Service).GenUpdateProject() is high (> 15) (gocyclo)
    • Line 885: warning: cyclomatic complexity 19 of function (*Service).ResetPassword() is high (> 15) (gocyclo)
    • Line 647: warning: cyclomatic complexity 18 of function (*Service).CreateUser() is high (> 15) (gocyclo)
    • satellite/satellitedb/reputations.go
    • Line 422: warning: cyclomatic complexity 25 of function (*reputations).populateUpdateNodeStats() is high (> 15) (gocyclo)
    • Line 55: warning: cyclomatic complexity 22 of function (*reputations).ApplyUpdates() is high (> 15) (gocyclo)
    • Line 303: warning: cyclomatic complexity 17 of function (*reputations).populateCreateFields() is high (> 15) (gocyclo)
    • Line 362: warning: cyclomatic complexity 17 of function (*reputations).populateUpdateFields() is high (> 15) (gocyclo)
    • satellite/metabase/copy_object.go
    • Line 98: warning: cyclomatic complexity 32 of function (*DB).FinishCopyObject() is high (> 15) (gocyclo)
    • Line 62: warning: cyclomatic complexity 17 of function (FinishCopyObject).Verify() is high (> 15) (gocyclo)
    • satellite/satellitedb/dbx/satellitedb.dbx.go
    • Line 27893: warning: cyclomatic complexity 103 of function (*pgxcockroachImpl).deleteAll() is high (> 15) (gocyclo)
    • Line 20043: warning: cyclomatic complexity 103 of function (*pgxImpl).deleteAll() is high (> 15) (gocyclo)
    • Line 17590: warning: cyclomatic complexity 36 of function (*pgxImpl).Update_Node_By_Id() is high (> 15) (gocyclo)
    • Line 25440: warning: cyclomatic complexity 36 of function (*pgxcockroachImpl).Update_Node_By_Id() is high (> 15) (gocyclo)
    • Line 25642: warning: cyclomatic complexity 35 of function (*pgxcockroachImpl).UpdateNoReturn_Node_By_Id() is high (> 15) (gocyclo)
    • Line 17792: warning: cyclomatic complexity 35 of function (*pgxImpl).UpdateNoReturn_Node_By_Id() is high (> 15) (gocyclo)
    • Line 25840: warning: cyclomatic complexity 35 of function (*pgxcockroachImpl).UpdateNoReturn_Node_By_Id_And_Disqualified_Is_Null_And_ExitFinishedAt_Is_Null() is high (> 15) (gocyclo)
    • Line 17990: warning: cyclomatic complexity 35 of function (*pgxImpl).UpdateNoReturn_Node_By_Id_And_Disqualified_Is_Null_And_ExitFinishedAt_Is_Null() is high (> 15) (gocyclo)
    • Line 18506: warning: cyclomatic complexity 30 of function (*pgxImpl).Update_User_By_Id() is high (> 15) (gocyclo)
    • Line 26356: warning: cyclomatic complexity 30 of function (*pgxcockroachImpl).Update_User_By_Id() is high (> 15) (gocyclo)
    • Line 12201: warning: cyclomatic complexity 25 of function __sqlbundle_flattenSQL() is high (> 15) (gocyclo)
    • Line 18188: warning: cyclomatic complexity 17 of function (*pgxImpl).Update_Reputation_By_Id() is high (> 15) (gocyclo)
    • Line 18295: warning: cyclomatic complexity 17 of function (*pgxImpl).Update_Reputation_By_Id_And_AuditHistory() is high (> 15) (gocyclo)
    • Line 26145: warning: cyclomatic complexity 17 of function (*pgxcockroachImpl).Update_Reputation_By_Id_And_AuditHistory() is high (> 15) (gocyclo)
    • Line 26038: warning: cyclomatic complexity 17 of function (*pgxcockroachImpl).Update_Reputation_By_Id() is high (> 15) (gocyclo)
    • Line 26253: warning: cyclomatic complexity 16 of function (*pgxcockroachImpl).UpdateNoReturn_Reputation_By_Id() is high (> 15) (gocyclo)
    • Line 18925: warning: cyclomatic complexity 16 of function (*pgxImpl).Update_BucketMetainfo_By_ProjectId_And_Name() is high (> 15) (gocyclo)
    • Line 26775: warning: cyclomatic complexity 16 of function (*pgxcockroachImpl).Update_BucketMetainfo_By_ProjectId_And_Name() is high (> 15) (gocyclo)
    • Line 18403: warning: cyclomatic complexity 16 of function (*pgxImpl).UpdateNoReturn_Reputation_By_Id() is high (> 15) (gocyclo)
    • satellite/gracefulexit/endpoint.go
    • Line 116: warning: cyclomatic complexity 39 of function (*Endpoint).Process() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 18 of function (*Endpoint).processIncomplete() is high (> 15) (gocyclo)
    • Line 535: warning: cyclomatic complexity 17 of function (*Endpoint).handleFailed() is high (> 15) (gocyclo)
    • satellite/metainfo/endpoint_object.go
    • Line 401: warning: cyclomatic complexity 27 of function (*Endpoint).DownloadObject() is high (> 15) (gocyclo)
    • Line 751: warning: cyclomatic complexity 21 of function (*Endpoint).ListObjects() is high (> 15) (gocyclo)
    • Line 29: warning: cyclomatic complexity 21 of function (*Endpoint).BeginObject() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!