Preparing report...

Report for github.com/opensuse-zh/node-semver

(v0.0.0-20200214151914-1018a6bff0ca)

A    Great!    Found 3 issues across 4 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!


gocyclo75%

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.

    • range.go
    • Line 51: warning: cyclomatic complexity 19 of function (ComparatorSet).Intersect() is high (> 15) (gocyclo)

golint50%

Golint is a linter for Go source code.

    • range.go
    • Line 11: warning: exported type Range should have comment or be unexported (golint)
    • Line 13: warning: exported method Range.Satisfy should have comment or be unexported (golint)
    • Line 34: warning: exported type ComparatorSet should have comment or be unexported (golint)
    • Line 51: warning: exported method ComparatorSet.Intersect should have comment or be unexported (golint)
    • Line 119: warning: exported method ComparatorSet.Satisfy should have comment or be unexported (golint)
    • Line 136: warning: exported type Comparator should have comment or be unexported (golint)
    • Line 141: warning: exported method Comparator.Equal should have comment or be unexported (golint)
    • Line 148: warning: exported method Comparator.IsNil should have comment or be unexported (golint)
    • Line 155: warning: exported method Comparator.Satisfy should have comment or be unexported (golint)
    • Line 180: warning: exported function NewRange should have comment or be unexported (golint)
    • Line 189: warning: exported function NewComparatorSet should have comment or be unexported (golint)
    • Line 243: warning: exported function NewComparator should have comment or be unexported (golint)
    • semver.go
    • Line 11: warning: exported const MAIN_VER should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Collection should have comment or be unexported (golint)
    • Line 101: warning: exported method Semver.GreaterEqualThan should have comment or be unexported (golint)
    • Line 105: warning: exported method Semver.LowerThan should have comment or be unexported (golint)
    • Line 109: warning: exported method Semver.LowerEqualThan should have comment or be unexported (golint)
    • Line 113: warning: exported method Semver.NotEqual 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!