Preparing report...

Report for github.com/wrfly/yasuser

A    Great!    Found 15 issues across 24 files

Tweet

gofmt91%

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!


gocyclo100%

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.

No problems detected. Good job!


golint41%

Golint is a linter for Go source code.

    • yasuser/types/types.go
    • Line 9: warning: exported type ShortOptions should have comment or be unexported (golint)
    • Line 15: warning: exported type URL should have comment or be unexported (golint)
    • Line 24: warning: exported method URL.Bytes should have comment or be unexported (golint)
    • Line 33: warning: exported method URL.Decode should have comment or be unexported (golint)
    • Line 40: warning: exported method URL.HashSum should have comment or be unexported (golint)
    • Line 44: warning: exported method URL.ShortURL should have comment or be unexported (golint)
    • Line 48: warning: exported method URL.Expired should have comment or be unexported (golint)
    • yasuser/shortener/cache/freecache.go
    • Line 12: warning: exported type Cacher should have comment or be unexported (golint)
    • Line 16: warning: exported function NewCacher should have comment or be unexported (golint)
    • Line 22: warning: exported method Cacher.Store should have comment or be unexported (golint)
    • Line 36: warning: exported method Cacher.Get should have comment or be unexported (golint)
    • Line 49: warning: exported method Cacher.Del should have comment or be unexported (golint)
    • yasuser/filter/filter.go
    • Line 10: warning: exported type Filter should have comment or be unexported (golint)
    • Line 60: warning: exported function New should have comment or be unexported (golint)
    • yasuser/utils/linenum.go
    • Line 10: warning: exported function AddLineNum should have comment or be unexported (golint)
    • Line 34: warning: exported function LineNum should have comment or be unexported (golint)
    • yasuser/utils/hash.go
    • Line 12: warning: exported function HashURL should have comment or be unexported (golint)
    • Line 26: warning: exported function XXHash should have comment or be unexported (golint)
    • Line 30: warning: exported function MD5 should have comment or be unexported (golint)
    • yasuser/config/config.go
    • Line 15: warning: exported type SrvConfig should have comment or be unexported (golint)
    • Line 23: warning: exported type StoreConfig should have comment or be unexported (golint)
    • Line 34: warning: exported type Filter should have comment or be unexported (golint)
    • Line 39: warning: exported type Config should have comment or be unexported (golint)
    • Line 47: warning: exported function New should have comment or be unexported (golint)
    • Line 51: warning: exported method Config.Parse should have comment or be unexported (golint)
    • Line 70: warning: exported method Config.Example should have comment or be unexported (golint)
    • yasuser/routes/asset/asset.go
    • Line 23: warning: don't use underscores in Go names; var _compress_bytes_0 should be _compressBytes0 (golint)
    • Line 25: warning: don't use underscores in Go names; var _file_0 should be _file0 (golint)
    • Line 41: warning: don't use underscores in Go names; var _compress_bytes_1 should be _compressBytes1 (golint)
    • Line 261: warning: don't use underscores in Go names; var _file_1 should be _file1 (golint)
    • Line 277: warning: don't use underscores in Go names; var _compress_bytes_2 should be _compressBytes2 (golint)
    • Line 403: warning: don't use underscores in Go names; var _file_2 should be _file2 (golint)
    • Line 419: warning: don't use underscores in Go names; var _compress_bytes_3 should be _compressBytes3 (golint)
    • Line 486: warning: don't use underscores in Go names; var _file_3 should be _file3 (golint)
    • Line 502: warning: don't use underscores in Go names; var _compress_bytes_4 should be _compressBytes4 (golint)
    • Line 533: warning: don't use underscores in Go names; var _file_4 should be _file4 (golint)
    • Line 549: warning: don't use underscores in Go names; var _compress_bytes_5 should be _compressBytes5 (golint)
    • Line 642: warning: don't use underscores in Go names; var _file_5 should be _file5 (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!