Preparing report...

Report for github.com/ffurrer2/semver

A+    Excellent!    Found 5 issues across 21 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!


golint76%

Golint is a linter for Go source code.

    • semver/pkg/semver/builder.go
    • Line 1: warning: package comment should be of the form "Package semver ..." (golint)
    • Line 4: warning: exported type Builder should have comment or be unexported (golint)
    • Line 12: warning: exported function NewBuilder should have comment or be unexported (golint)
    • Line 22: warning: exported method Builder.Major should have comment or be unexported (golint)
    • Line 32: warning: exported method Builder.Minor should have comment or be unexported (golint)
    • Line 42: warning: exported method Builder.Patch should have comment or be unexported (golint)
    • Line 52: warning: exported method Builder.PreRelease should have comment or be unexported (golint)
    • Line 62: warning: exported method Builder.PreReleaseField should have comment or be unexported (golint)
    • Line 72: warning: exported method Builder.BuildMetadata should have comment or be unexported (golint)
    • Line 82: warning: exported method Builder.BuildMetadataField should have comment or be unexported (golint)
    • Line 92: warning: exported method Builder.Build should have comment or be unexported (golint)
    • semver/pkg/semver/semver.go
    • Line 1: warning: package comment should be of the form "Package semver ..." (golint)
    • Line 14: warning: exported const MaxMajor should have comment or be unexported (golint)
    • Line 15: warning: exported const MaxMinor should have comment or be unexported (golint)
    • Line 16: warning: exported const MaxPatch should have comment or be unexported (golint)
    • Line 18: warning: exported const NamedGroupsPattern should have comment or be unexported (golint)
    • Line 28: warning: exported type SemVer should have comment or be unexported (golint)
    • Line 36: warning: exported type BySemVer should have comment or be unexported (golint)
    • Line 50: warning: exported function Parse should have comment or be unexported (golint)
    • Line 75: warning: exported function MustParse should have comment or be unexported (golint)
    • Line 83: warning: exported function IsValid should have comment or be unexported (golint)
    • Line 87: warning: exported function Sort should have comment or be unexported (golint)
    • Line 91: warning: exported method SemVer.SetMajor should have comment or be unexported (golint)
    • Line 95: warning: exported method SemVer.SetMinor should have comment or be unexported (golint)
    • Line 99: warning: exported method SemVer.SetPatch should have comment or be unexported (golint)
    • Line 103: warning: exported method SemVer.SetPreRelease should have comment or be unexported (golint)
    • Line 107: warning: exported method SemVer.SetBuildMetadata should have comment or be unexported (golint)
    • Line 111: warning: exported method SemVer.NextMajor should have comment or be unexported (golint)
    • Line 133: warning: exported method SemVer.NextMinor should have comment or be unexported (golint)
    • Line 155: warning: exported method SemVer.NextPatch should have comment or be unexported (golint)
    • Line 177: warning: exported method SemVer.IsValid should have comment or be unexported (golint)
    • Line 181: warning: exported method SemVer.CompareTo should have comment or be unexported (golint)
    • Line 235: warning: exported method SemVer.PreReleaseString should have comment or be unexported (golint)
    • Line 239: warning: exported method SemVer.BuildMetadataString should have comment or be unexported (golint)
    • Line 243: warning: exported method SemVer.Equal should have comment or be unexported (golint)
    • semver/internal/pkg/app/version.go
    • Line 1: warning: package comment should be of the form "Package app ..." (golint)
    • Line 10: warning: exported function BuildVersion should have comment or be unexported (golint)
    • Line 14: warning: exported function BuildDate should have comment or be unexported (golint)
    • Line 18: warning: exported function CommitHash should have comment or be unexported (golint)
    • semver/internal/pkg/number/number.go
    • Line 1: warning: package comment should be of the form "Package number ..." (golint)
    • Line 18: warning: exported function ParseUint should have comment or be unexported (golint)
    • Line 26: warning: exported function MustParseUint should have comment or be unexported (golint)
    • Line 34: warning: exported function IsNumeric should have comment or be unexported (golint)
    • Line 38: warning: exported function CompareUint should have comment or be unexported (golint)
    • Line 48: warning: exported function MinInt should have comment or be unexported (golint)
    • semver/internal/pkg/cli/cli.go
    • Line 1: warning: package comment should be of the form "Package cli ..." (golint)
    • Line 10: warning: exported function Apply should have comment or be unexported (golint)
    • Line 25: warning: exported function Map should have comment or be unexported (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!