Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
git-grouping/cmds/version.go
- Line 19: warning: exported method VersionCmd.Name should have comment or be unexported (golint)
- Line 23: warning: exported method VersionCmd.Synopsis should have comment or be unexported (golint)
- Line 27: warning: exported method VersionCmd.Usage should have comment or be unexported (golint)
- Line 32: warning: exported method VersionCmd.SetFlags should have comment or be unexported (golint)
- Line 35: warning: exported method VersionCmd.Execute should have comment or be unexported (golint)
-
git-grouping/cmds/add.go
- Line 23: warning: exported method AddCmd.Name should have comment or be unexported (golint)
- Line 27: warning: exported method AddCmd.Synopsis should have comment or be unexported (golint)
- Line 31: warning: exported method AddCmd.Usage should have comment or be unexported (golint)
- Line 36: warning: exported method AddCmd.SetFlags should have comment or be unexported (golint)
- Line 39: warning: exported method AddCmd.Execute should have comment or be unexported (golint)
-
git-grouping/cmds/git.go
- Line 23: warning: exported method GitCmd.Name should have comment or be unexported (golint)
- Line 27: warning: exported method GitCmd.Synopsis should have comment or be unexported (golint)
- Line 31: warning: exported method GitCmd.Usage should have comment or be unexported (golint)
- Line 36: warning: exported method GitCmd.SetFlags should have comment or be unexported (golint)
- Line 40: warning: exported method GitCmd.Execute should have comment or be unexported (golint)
-
git-grouping/cmds/info.go
- Line 19: warning: exported method InfoCmd.Name should have comment or be unexported (golint)
- Line 23: warning: exported method InfoCmd.Synopsis should have comment or be unexported (golint)
- Line 27: warning: exported method InfoCmd.Usage should have comment or be unexported (golint)
- Line 32: warning: exported method InfoCmd.SetFlags should have comment or be unexported (golint)
- Line 35: warning: exported method InfoCmd.Execute should have comment or be unexported (golint)
-
git-grouping/cmds/ls.go
- Line 41: warning: exported method LsCmd.Name should have comment or be unexported (golint)
- Line 45: warning: exported method LsCmd.Synopsis should have comment or be unexported (golint)
- Line 49: warning: exported method LsCmd.Usage should have comment or be unexported (golint)
- Line 54: warning: exported method LsCmd.SetFlags should have comment or be unexported (golint)
- Line 57: warning: exported method LsCmd.Execute should have comment or be unexported (golint)
-
git-grouping/cmds/rm.go
- Line 20: warning: exported method RmCmd.Name should have comment or be unexported (golint)
- Line 24: warning: exported method RmCmd.Synopsis should have comment or be unexported (golint)
- Line 28: warning: exported method RmCmd.Usage should have comment or be unexported (golint)
- Line 33: warning: exported method RmCmd.SetFlags should have comment or be unexported (golint)
- Line 36: warning: exported method RmCmd.Execute should have comment or be unexported (golint)
-
git-grouping/cmds/rmg.go
- Line 21: warning: exported method RmgCmd.Name should have comment or be unexported (golint)
- Line 25: warning: exported method RmgCmd.Synopsis should have comment or be unexported (golint)
- Line 29: warning: exported method RmgCmd.Usage should have comment or be unexported (golint)
- Line 34: warning: exported method RmgCmd.SetFlags should have comment or be unexported (golint)
- Line 37: warning: exported method RmgCmd.Execute should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!