Preparing report...

Report for github.com/moov-io/base

A+    Excellent!    Found 16 issues across 51 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!


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.


golint68%

Golint is a linter for Go source code.

    • base/stime/static_time.go
    • Line 7: warning: exported type StaticTimeService should have comment or be unexported (golint)
    • Line 17: warning: exported function NewStaticTimeService should have comment or be unexported (golint)
    • base/database/tx.go
    • Line 3: warning: exported type RunInTx should have comment or be unexported (golint)
    • Line 5: warning: exported function NopInTx should have comment or be unexported (golint)
    • base/database/model_config.go
    • Line 5: warning: exported type DatabaseConfig should have comment or be unexported (golint)
    • Line 11: warning: exported type MySQLConfig should have comment or be unexported (golint)
    • Line 18: warning: exported type SQLiteConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type ConnectionsConfig should have comment or be unexported (golint)
    • base/log/logger.go
    • Line 3: warning: exported type Logger should have comment or be unexported (golint)
    • Line 20: warning: exported type Context should have comment or be unexported (golint)
    • base/log/model_valuer.go
    • Line 25: warning: exported function String should have comment or be unexported (golint)
    • Line 29: warning: exported function StringOrNil should have comment or be unexported (golint)
    • Line 36: warning: exported function Int should have comment or be unexported (golint)
    • Line 40: warning: exported function Float64 should have comment or be unexported (golint)
    • Line 44: warning: exported function Bool should have comment or be unexported (golint)
    • Line 48: warning: exported function TimeDuration should have comment or be unexported (golint)
    • Line 52: warning: exported function Time should have comment or be unexported (golint)
    • Line 56: warning: exported function TimeOrNil should have comment or be unexported (golint)
    • Line 63: warning: exported function TimeFormatted should have comment or be unexported (golint)
    • Line 67: warning: exported function ByteString should have comment or be unexported (golint)
    • Line 71: warning: exported function ByteBase64 should have comment or be unexported (golint)
    • Line 75: warning: exported function Stringer should have comment or be unexported (golint)
    • Line 79: warning: exported function Strings should have comment or be unexported (golint)
    • base/database/migrator.go
    • Line 20: warning: exported function RunMigrations should have comment or be unexported (golint)
    • Line 61: warning: exported function GetDriver should have comment or be unexported (golint)
    • Line 91: warning: exported function MySQLDriver should have comment or be unexported (golint)
    • Line 95: warning: exported function SQLite3Driver should have comment or be unexported (golint)
    • base/database/pkger.go
    • Line 15: warning: exported const MIGRATIONS_DIR should have comment or be unexported (golint)
    • Line 17: warning: exported function NewPkgerSource should have comment or be unexported (golint)
    • base/log/logger_impl.go
    • Line 12: warning: exported function NewDefaultLogger should have comment or be unexported (golint)
    • Line 16: warning: exported function NewNopLogger should have comment or be unexported (golint)
    • Line 20: warning: exported function NewJSONLogger should have comment or be unexported (golint)
    • Line 24: warning: exported function NewBufferLogger should have comment or be unexported (golint)
    • Line 31: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 136: warning: exported type LoggedError should have comment or be unexported (golint)
    • Line 140: warning: exported method LoggedError.Err should have comment or be unexported (golint)
    • Line 144: warning: exported method LoggedError.Nil should have comment or be unexported (golint)
    • base/log/model_fields.go
    • Line 3: warning: exported type Fields should have comment or be unexported (golint)
    • Line 5: warning: exported method Fields.Context should have comment or be unexported (golint)
    • base/stime/system_time.go
    • Line 7: warning: exported type TimeService should have comment or be unexported (golint)
    • Line 13: warning: exported function NewSystemTimeService should have comment or be unexported (golint)
    • base/config/config.go
    • Line 13: warning: exported const APP_CONFIG should have comment or be unexported (golint)
    • Line 14: warning: exported const APP_CONFIG_SECRETS should have comment or be unexported (golint)
    • Line 16: warning: exported type Service should have comment or be unexported (golint)
    • Line 20: warning: exported function NewService should have comment or be unexported (golint)
    • Line 26: warning: exported method Service.Load should have comment or be unexported (golint)
    • Line 42: warning: exported method Service.LoadFile should have comment or be unexported (golint)
    • Line 64: warning: exported function LoadEnvironmentFile should have comment or be unexported (golint)
    • base/database/database.go
    • Line 28: warning: exported function NewAndMigrate should have comment or be unexported (golint)
    • Line 57: warning: exported function ApplyConnectionsConfig should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!