Preparing report...

Report for github.com/chai2010/leetcode-go

A+    Excellent!    Found 4 issues across 13 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!


gocyclo92%

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.


golint69%

Golint is a linter for Go source code.

    • leetcode-go/0004-median-of-two-sorted-arrays/main.go
    • Line 28: warning: exported function SolutionV0 should have comment or be unexported (golint)
    • Line 55: warning: don't use underscores in Go names; var nums1_left should be nums1Left (golint)
    • Line 56: warning: don't use underscores in Go names; var nums1_right should be nums1Right (golint)
    • Line 57: warning: don't use underscores in Go names; var nums1_mid should be nums1Mid (golint)
    • Line 59: warning: don't use underscores in Go names; var nums2_left should be nums2Left (golint)
    • Line 60: warning: don't use underscores in Go names; var nums2_right should be nums2Right (golint)
    • Line 61: warning: don't use underscores in Go names; var nums2_mid should be nums2Mid (golint)
    • leetcode-go/0002-add-two-numbers/list.go
    • Line 11: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 16: warning: exported function NewListNode should have comment or be unexported (golint)
    • Line 26: warning: exported method ListNode.Slice should have comment or be unexported (golint)
    • leetcode-go/0003-longest-substring-without-repeating-characters/main.go
    • Line 35: warning: exported function SolutionV0 should have comment or be unexported (golint)
    • Line 54: warning: exported function SolutionV0_strUniqueLen should have comment or be unexported (golint)
    • Line 54: warning: don't use underscores in Go names; func SolutionV0_strUniqueLen should be SolutionV0StrUniqueLen (golint)
    • Line 63: warning: exported function SolutionV1 should have comment or be unexported (golint)
    • Line 82: warning: exported function SolutionV1_strUniqueLen should have comment or be unexported (golint)
    • Line 82: warning: don't use underscores in Go names; func SolutionV1_strUniqueLen should be SolutionV1StrUniqueLen (golint)
    • Line 93: warning: exported function SolutionV2 should have comment or be unexported (golint)
    • Line 108: warning: exported type FlagMap256 should have comment or be unexported (golint)
    • Line 110: warning: exported method FlagMap256.Get should have comment or be unexported (golint)
    • Line 114: warning: exported method FlagMap256.SetTrue should have comment or be unexported (golint)
    • Line 119: warning: exported function SolutionV2_strUniqueLen should have comment or be unexported (golint)
    • Line 119: warning: don't use underscores in Go names; func SolutionV2_strUniqueLen should be SolutionV2StrUniqueLen (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!