Preparing report...

Report for github.com/jasonrichardsmith/sentry

A+    Excellent!    Found 17 issues across 26 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!


gocyclo96%

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.


golint42%

Golint is a linter for Go source code.

    • sentry/mux/mux.go
    • Line 15: warning: exported type SentryMux should have comment or be unexported (golint)
    • Line 19: warning: exported function New should have comment or be unexported (golint)
    • Line 45: warning: exported method SentryMux.Type should have comment or be unexported (golint)
    • Line 48: warning: exported method SentryMux.Admit should have comment or be unexported (golint)
    • sentry/healthz/config.go
    • Line 9: warning: exported const NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 19: warning: exported method Config.Name should have comment or be unexported (golint)
    • Line 23: warning: exported method Config.LoadSentry should have comment or be unexported (golint)
    • sentry/nslabels/nslabels.go
    • Line 12: warning: exported var NoLabelsPresent should have comment or be unexported (golint)
    • Line 15: warning: exported type Sentry should have comment or be unexported (golint)
    • Line 19: warning: exported method Sentry.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method Sentry.Ignore should have comment or be unexported (golint)
    • Line 36: warning: exported method Sentry.Admit should have comment or be unexported (golint)
    • sentry/source/config.go
    • Line 9: warning: exported const NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported method Config.Name should have comment or be unexported (golint)
    • Line 24: warning: exported method Config.LoadSentry should have comment or be unexported (golint)
    • sentry/tags/config.go
    • Line 9: warning: exported const NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 19: warning: exported method Config.Name should have comment or be unexported (golint)
    • Line 23: warning: exported method Config.LoadSentry should have comment or be unexported (golint)
    • sentry/nslabels/config.go
    • Line 9: warning: exported const NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 20: warning: exported method Config.Name should have comment or be unexported (golint)
    • Line 24: warning: exported method Config.LoadSentry should have comment or be unexported (golint)
    • sentry/limits/limits.go
    • Line 13: warning: exported const LimitsNotPresent should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type LimitSentry should have comment or be unexported (golint)
    • Line 22: warning: exported method LimitSentry.Type should have comment or be unexported (golint)
    • Line 26: warning: exported method LimitSentry.BetweenCPU should have comment or be unexported (golint)
    • Line 33: warning: exported method LimitSentry.BetweenMemory should have comment or be unexported (golint)
    • Line 39: warning: exported method LimitSentry.Admit should have comment or be unexported (golint)
    • sentry/example/config.go
    • Line 9: warning: exported const NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 19: warning: exported method Config.Name should have comment or be unexported (golint)
    • Line 23: warning: exported method Config.LoadSentry should have comment or be unexported (golint)
    • sentry/source/source.go
    • Line 12: warning: exported const SourceUnappoved should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type SourceSentry should have comment or be unexported (golint)
    • Line 19: warning: exported method SourceSentry.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method SourceSentry.Admit should have comment or be unexported (golint)
    • sentry/healthz/healthz.go
    • Line 12: warning: exported const HealthzNotPresent should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type HealthzSentry should have comment or be unexported (golint)
    • Line 17: warning: exported method HealthzSentry.Type should have comment or be unexported (golint)
    • Line 21: warning: exported method HealthzSentry.Admit should have comment or be unexported (golint)
    • sentry/tags/tags.go
    • Line 14: warning: exported const TagsNoTag should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type TagsSentry should have comment or be unexported (golint)
    • Line 19: warning: exported method TagsSentry.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method TagsSentry.Admit should have comment or be unexported (golint)
    • sentry/config/config.go
    • Line 20: warning: error var ERR_DUPLICATE_MODULENAME should have name of the form ErrFoo (golint)
    • Line 20: warning: exported var ERR_DUPLICATE_MODULENAME should have comment or be unexported (golint)
    • Line 25: warning: exported type ModuleConfig should have comment or be unexported (golint)
    • Line 30: warning: exported type CommonConfig should have comment or be unexported (golint)
    • Line 35: warning: exported type Config should have comment or be unexported (golint)
    • Line 41: warning: exported function New should have comment or be unexported (golint)
    • Line 49: warning: exported method Config.Load should have comment or be unexported (golint)
    • Line 96: warning: exported function Load should have comment or be unexported (golint)
    • Line 103: warning: exported method Config.Register should have comment or be unexported (golint)
    • Line 113: warning: exported method Config.Decoder should have comment or be unexported (golint)
    • Line 117: warning: exported method Config.Ignored should have comment or be unexported (golint)
    • Line 124: warning: exported function Register should have comment or be unexported (golint)
    • Line 128: warning: exported function Decoder should have comment or be unexported (golint)
    • sentry/limits/config.go
    • Line 12: warning: exported const NAME should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type Config should have comment or be unexported (golint)
    • Line 25: warning: exported type MinMax should have comment or be unexported (golint)
    • Line 30: warning: exported method Config.Name should have comment or be unexported (golint)
    • Line 34: warning: exported method Config.LoadSentry should have comment or be unexported (golint)
    • Line 38: warning: exported function QtyHookFunc should have comment or be unexported (golint)
    • sentry/sentry/sentry.go
    • Line 33: warning: exported var ErrNoUID should have comment or be unexported (golint)
    • Line 36: warning: exported type Sentry should have comment or be unexported (golint)
    • Line 49: warning: exported type SentryHandler should have comment or be unexported (golint)
    • Line 106: warning: exported function NewSentryServer should have comment or be unexported (golint)
    • Line 123: warning: exported function NewSentryServerNoSSL should have comment or be unexported (golint)
    • Line 132: warning: exported function Decode 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!