Preparing report...

Report for arhat.dev/credentialfs

A+    Excellent!    Found 20 issues across 36 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo83%

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.


golint52%

Golint is a linter for Go source code.

    • /arhat.dev/credentialfs/pkg/version/version.go
    • Line 41: warning: exported function Version should have comment or be unexported (golint)
    • Line 60: warning: exported function Arch should have comment or be unexported (golint)
    • Line 64: warning: exported function GoVersion should have comment or be unexported (golint)
    • Line 68: warning: exported function GoCompilerPlatform should have comment or be unexported (golint)
    • /arhat.dev/credentialfs/pkg/conf/pm.go
    • Line 13: warning: exported type PasswordManagerConfig should have comment or be unexported (golint)
    • Line 20: warning: exported method PasswordManagerConfig.UnmarshalJSON should have comment or be unexported (golint)
    • Line 36: warning: exported method PasswordManagerConfig.UnmarshalYAML should have comment or be unexported (golint)
    • /arhat.dev/credentialfs/pkg/fs/manager.go
    • Line 21: warning: exported type Manager should have comment or be unexported (golint)
    • Line 36: warning: exported function NewManager should have comment or be unexported (golint)
    • Line 74: warning: exported method Manager.Start should have comment or be unexported (golint)
    • Line 137: warning: exported method Manager.Stop should have comment or be unexported (golint)
    • /arhat.dev/credentialfs/pkg/pm/registry.go
    • Line 9: warning: exported type ConfigFactoryFunc should have comment or be unexported (golint)
    • Line 10: warning: exported type FactoryFunc should have comment or be unexported (golint)
    • Line 22: warning: exported function Register should have comment or be unexported (golint)
    • Line 38: warning: exported function NewConfig should have comment or be unexported (golint)
    • Line 47: warning: exported function NewDriver should have comment or be unexported (golint)
    • /arhat.dev/credentialfs/pkg/pm/bitwarden/bitwarden.go
    • Line 99: warning: exported type Config should have comment or be unexported (golint)
    • Line 108: warning: exported type Driver should have comment or be unexported (golint)
    • Line 142: warning: exported method Driver.DriverName should have comment or be unexported (golint)
    • Line 146: warning: exported method Driver.ConfigName should have comment or be unexported (golint)
    • Line 150: warning: exported method Driver.Login should have comment or be unexported (golint)
    • Line 252: warning: exported method Driver.Sync should have comment or be unexported (golint)
    • Line 270: warning: exported method Driver.Subscribe should have comment or be unexported (golint)
    • Line 308: warning: exported method Driver.Update should have comment or be unexported (golint)
    • /arhat.dev/credentialfs/pkg/pm/types.go
    • Line 5: warning: exported type TwoFactorKind should have comment or be unexported (golint)
    • Line 22: warning: exported type LoginInput should have comment or be unexported (golint)
    • Line 35: warning: exported type Interface should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!