Preparing report...

Report for github.com/owncloud/ocis

(v1.20.0)

A+    Excellent!    Found 29 issues across 687 files

Tweet

gofmt96%

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


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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo98%

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.

    • ocis-pkg/config/envdecode/envdecode.go
    • Line 93: warning: cyclomatic complexity 33 of function decode() is high (> 15) (gocyclo)
    • Line 337: warning: cyclomatic complexity 23 of function Export() is high (> 15) (gocyclo)
    • Line 241: warning: cyclomatic complexity 18 of function decodePrimitiveType() is high (> 15) (gocyclo)
    • graph/pkg/service/v0/drives.go
    • Line 432: warning: cyclomatic complexity 30 of function (Graph).cs3StorageSpaceToDrive() is high (> 15) (gocyclo)
    • Line 253: warning: cyclomatic complexity 21 of function (Graph).UpdateDrive() is high (> 15) (gocyclo)
    • accounts/pkg/service/v0/accounts.go
    • Line 454: warning: cyclomatic complexity 33 of function (Service).UpdateAccount() is high (> 15) (gocyclo)
    • Line 104: warning: cyclomatic complexity 28 of function (Service).ListAccounts() is high (> 15) (gocyclo)
    • Line 313: warning: cyclomatic complexity 25 of function (Service).CreateAccount() is high (> 15) (gocyclo)
    • ocs/pkg/service/v0/users.go
    • Line 365: warning: cyclomatic complexity 24 of function (Ocs).DeleteUser() is high (> 15) (gocyclo)
    • Line 164: warning: cyclomatic complexity 17 of function (Ocs).AddUser() 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!