Preparing report...

Report for github.com/jnst/x-go

A+    Excellent!    Found 14 issues across 38 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!


golint68%

Golint is a linter for Go source code.

    • x-go/sample/mysql.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported type Result should have comment or be unexported (golint)
    • x-go/std/interface.go
    • Line 5: warning: exported type I should have comment or be unexported (golint)
    • Line 9: warning: exported type T should have comment or be unexported (golint)
    • Line 14: warning: exported method T.M should have comment or be unexported (golint)
    • Line 22: warning: exported function Hello should have comment or be unexported (golint)
    • x-go/std/sort.go
    • Line 9: warning: exported type Hero should have comment or be unexported (golint)
    • Line 15: warning: exported type YearMonth should have comment or be unexported (golint)
    • Line 20: warning: exported function PrintSortedHeroes should have comment or be unexported (golint)
    • Line 44: warning: exported function PrintSortedYearMonths should have comment or be unexported (golint)
    • x-go/system/chapter3.go
    • Line 17: warning: comment on exported type Chapter3 should be of the form "Chapter3 ..." (with optional leading article) (golint)
    • x-go/code/code.go
    • Line 8: warning: exported function IsPalindrome should have comment or be unexported (golint)
    • Line 22: warning: exported function ThreeSum should have comment or be unexported (golint)
    • x-go/sample/uid.go
    • Line 12: warning: exported function PrintXID should have comment or be unexported (golint)
    • Line 27: warning: exported function PrintULID should have comment or be unexported (golint)
    • x-go/system/chapter2.go
    • Line 20: warning: exported method Chapter2.Q1 should have comment or be unexported (golint)
    • Line 26: warning: exported method Chapter2.Q2 should have comment or be unexported (golint)
    • Line 34: warning: exported method Chapter2.Q3 should have comment or be unexported (golint)
    • Line 61: warning: exported method Chapter2.CreateFile should have comment or be unexported (golint)
    • Line 88: warning: exported method Chapter2.Print should have comment or be unexported (golint)
    • Line 94: warning: exported method Chapter2.PrintByBuffer should have comment or be unexported (golint)
    • Line 105: warning: exported method Chapter2.Connect should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • x-go/protobuf/protobuf.go
    • Line 8: warning: no required module provides package github.com/jnst/x-go/protobuf/internal; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/jnst/x-go/protobuf/internal (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!