Preparing report...

Report for github.com/yangwenmai/learning-algorithms

A+    Excellent!    Found 19 issues across 52 files

Tweet

gofmt92%

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!


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.


golint73%

Golint is a linter for Go source code.

    • learning-algorithms/leetcode/leetcode.go
    • Line 151: warning: exported method Leetcode.ProgressTable should have comment or be unexported (golint)
    • Line 155: warning: exported method Leetcode.CompletedTable should have comment or be unexported (golint)
    • Line 159: warning: exported method Leetcode.AvailableTable should have comment or be unexported (golint)
    • Line 163: warning: exported method Leetcode.FavoriteTable should have comment or be unexported (golint)
    • Line 167: warning: exported method Leetcode.FavoriteCount should have comment or be unexported (golint)
    • Line 171: warning: exported method Leetcode.UnavailableList should have comment or be unexported (golint)
    • learning-algorithms/build/problem.go
    • Line 18: warning: exported type ProblemBuilder should have comment or be unexported (golint)
    • Line 25: warning: exported method ProblemBuilder.Build should have comment or be unexported (golint)
    • Line 36: warning: exported function CheckProblemNumValid should have comment or be unexported (golint)
    • learning-algorithms/leetcode/problem.go
    • Line 10: warning: exported type Problem should have comment or be unexported (golint)
    • Line 39: warning: exported method Problem.IsAvailable should have comment or be unexported (golint)
    • Line 46: warning: exported method Problem.SetDir should have comment or be unexported (golint)
    • Line 50: warning: exported method Problem.GetDir should have comment or be unexported (golint)
    • Line 54: warning: exported method Problem.Link should have comment or be unexported (golint)
    • Line 94: warning: exported method Problem.DidaTask should have comment or be unexported (golint)
    • Line 98: warning: exported method Problem.PackageName should have comment or be unexported (golint)
    • learning-algorithms/build/build.go
    • Line 5: warning: exported type Builder should have comment or be unexported (golint)
    • Line 9: warning: exported type Build should have comment or be unexported (golint)
    • Line 13: warning: exported method Builder.Build 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!