Preparing report...

Report for github.com/ergoapi/util

A+    Excellent!    Found 11 issues across 30 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!


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!


golint66%

Golint is a linter for Go source code.

    • util/exstr/str.go
    • Line 18: warning: comment on exported function Blacklist should be of the form "Blacklist ..." (golint)
    • util/ztime/time.go
    • Line 44: warning: exported function NextDay should have comment or be unexported (golint)
    • Line 48: warning: exported function CustomNextDay should have comment or be unexported (golint)
    • Line 224: warning: comment on exported function IsLeapYear should be of the form "IsLeapYear ..." (golint)
    • Line 233: warning: comment on exported function TimeToUninx should be of the form "TimeToUninx ..." (golint)
    • Line 240: warning: comment on exported function TimeToUninxv2 should be of the form "TimeToUninxv2 ..." (golint)
    • Line 247: warning: comment on exported function TimeFormatToUninx should be of the form "TimeFormatToUninx ..." (golint)
    • Line 254: warning: comment on exported function GetMonthStartEndUnix should be of the form "GetMonthStartEndUnix ..." (golint)
    • Line 275: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 287: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 295: warning: comment on exported function GetMonthAddStr should be of the form "GetMonthAddStr ..." (golint)
    • Line 306: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 318: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 337: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 349: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • util/zos/os.go
    • Line 63: warning: exported function GetHostnames should have comment or be unexported (golint)
    • Line 71: warning: exported function GetHostname should have comment or be unexported (golint)
    • Line 79: warning: exported function GetOS should have comment or be unexported (golint)
    • util/zos/tls.go
    • Line 1: warning: package comment should be of the form "Package zos ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • util/rand/rand.go
    • Line 1: warning: package comment should be of the form "Package rand ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 25: warning: exported function RandLetters should have comment or be unexported (golint)
    • Line 34: warning: exported function RandDigits should have comment or be unexported (golint)
    • Line 55: warning: comment on exported function Rand64 should be of the form "Rand64 ..." (golint)
    • Line 61: warning: comment on exported function NumRand64 should be of the form "NumRand64 ..." (golint)
    • util/ztime/holiday.go
    • Line 18: warning: exported type Holiday should have comment or be unexported (golint)
    • Line 25: warning: exported function HolidayGet should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!