Preparing report...

Report for github.com/kyoh86/git-vertag

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


golint36%

Golint is a linter for Go source code.

    • git-vertag/internal/flag.go
    • Line 9: warning: exported type PRVersionFlag should have comment or be unexported (golint)
    • Line 11: warning: exported method PRVersionFlag.Set should have comment or be unexported (golint)
    • Line 24: warning: exported type PreReleaseFlag should have comment or be unexported (golint)
    • Line 26: warning: exported method PreReleaseFlag.IsCumulative should have comment or be unexported (golint)
    • Line 28: warning: exported method PreReleaseFlag.Set should have comment or be unexported (golint)
    • Line 46: warning: exported method PreReleaseFlag.List should have comment or be unexported (golint)
    • Line 50: warning: exported type BuildVersionFlag should have comment or be unexported (golint)
    • Line 52: warning: exported method BuildVersionFlag.Set should have comment or be unexported (golint)
    • Line 65: warning: exported type BuildFlag should have comment or be unexported (golint)
    • Line 67: warning: exported method BuildFlag.IsCumulative should have comment or be unexported (golint)
    • Line 69: warning: exported method BuildFlag.Set should have comment or be unexported (golint)
    • Line 82: warning: exported method BuildFlag.List should have comment or be unexported (golint)
    • git-vertag/internal/git_runner.go
    • Line 8: warning: exported type GitRunner should have comment or be unexported (golint)
    • Line 10: warning: exported function NewGitRunner should have comment or be unexported (golint)
    • Line 14: warning: exported method GitRunner.Run should have comment or be unexported (golint)
    • git-vertag/internal/manager.go
    • Line 9: warning: exported type Manager should have comment or be unexported (golint)
    • Line 68: warning: exported method Manager.GetVer should have comment or be unexported (golint)
    • Line 76: warning: exported method Manager.UpdateMajor should have comment or be unexported (golint)
    • Line 80: warning: exported method Manager.UpdateMinor should have comment or be unexported (golint)
    • Line 84: warning: exported method Manager.UpdatePatch should have comment or be unexported (golint)
    • Line 88: warning: exported method Manager.UpdatePre should have comment or be unexported (golint)
    • Line 122: warning: exported method Manager.Release should have comment or be unexported (golint)
    • Line 126: warning: exported method Manager.Build should have comment or be unexported (golint)
    • git-vertag/internal/mock_runner.go
    • Line 9: warning: exported type MockRunner should have comment or be unexported (golint)
    • Line 14: warning: exported function NewMockRunner should have comment or be unexported (golint)
    • Line 18: warning: exported method MockRunner.Run should have comment or be unexported (golint)
    • git-vertag/internal/tagger.go
    • Line 9: warning: exported type Tagger should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTagger should have comment or be unexported (golint)
    • Line 24: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 29: warning: exported method Tagger.CreateTag should have comment or be unexported (golint)
    • Line 50: warning: exported method Tagger.DeleteTag should have comment or be unexported (golint)
    • Line 63: warning: exported method Tagger.GetTags should have comment or be unexported (golint)
    • git-vertag/internal/updater.go
    • Line 9: warning: exported function NewUpdater should have comment or be unexported (golint)
    • Line 21: warning: exported type UpdatePre should have comment or be unexported (golint)
    • Line 26: warning: exported type UpdateBuild should have comment or be unexported (golint)
    • Line 31: warning: exported type Version 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!