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.
-
archsugar-cli/dotfiles/dotfiles.go
- Line 16: warning: exported var DefaultURL should have comment or be unexported (golint)
- Line 21: warning: exported type Repo should have comment or be unexported (golint)
- Line 27: warning: exported function NewDefaultRepo should have comment or be unexported (golint)
- Line 35: warning: exported function NewRepo should have comment or be unexported (golint)
- Line 50: warning: exported method Repo.Clone should have comment or be unexported (golint)
- Line 66: warning: exported method Repo.Exists should have comment or be unexported (golint)
- Line 71: warning: exported method Repo.Rm should have comment or be unexported (golint)
-
archsugar-cli/helpers/test.go
- Line 15: warning: exported const MinDigit should have comment (or a comment on this block) or be unexported (golint)
- Line 30: warning: exported function RandomDigit should have comment or be unexported (golint)
- Line 34: warning: exported function RandomScenarioName should have comment or be unexported (golint)
- Line 47: warning: exported function RandomScenarioDesc should have comment or be unexported (golint)
- Line 52: warning: exported function CreateRandomScenario should have comment or be unexported (golint)
-
archsugar-cli/ansible/builder.go
- Line 14: warning: exported const AnsibleBinary should have comment (or a comment on this block) or be unexported (golint)
- Line 21: warning: exported type Builder should have comment or be unexported (golint)
- Line 28: warning: exported function NewBuilder should have comment or be unexported (golint)
- Line 88: warning: comment on exported method Builder.IsCredCacheEnabled should be of the form "IsCredCacheEnabled ..." (golint)
-
archsugar-cli/ansible/playbook.go
- Line 10: warning: exported const DryRunFlag should have comment (or a comment on this block) or be unexported (golint)
- Line 13: warning: exported type Playbook should have comment or be unexported (golint)
- Line 17: warning: exported method Playbook.Run should have comment or be unexported (golint)
- Line 30: warning: exported method Playbook.DryRun should have comment or be unexported (golint)
- Line 39: warning: exported method Playbook.Name should have comment or be unexported (golint)
- Line 43: warning: comment on exported function NewBootstrapPlaybook should be of the form "NewBootstrapPlaybook ..." (golint)
- Line 48: warning: comment on exported function NewChrootPlaybook should be of the form "NewChrootPlaybook ..." (golint)
- Line 53: warning: comment on exported function NewMasterPlaybook should be of the form "NewMasterPlaybook ..." (golint)
-
archsugar-cli/ansible/stage.go
- Line 8: warning: exported var DefaultArgs should have comment or be unexported (golint)
- Line 24: warning: exported const BootstrapStage should have comment (or a comment on this block) or be unexported (golint)
- Line 33: warning: exported method Stage.DefaultEnv should have comment or be unexported (golint)
- Line 42: warning: exported method Stage.DefaultArgs should have comment or be unexported (golint)
-
archsugar-cli/scenario/all.go
- Line 11: warning: exported const MaxLineLen should have comment (or a comment on this block) or be unexported (golint)
- Line 17: warning: exported var Header should have comment or be unexported (golint)
- Line 71: warning: exported function FormatLine should have comment or be unexported (golint)
-
archsugar-cli/scenario/path.go
- Line 5: warning: exported function TasksDir should have comment or be unexported (golint)
- Line 9: warning: exported function VarsDir should have comment or be unexported (golint)
- Line 13: warning: exported function EnabledDir should have comment or be unexported (golint)
-
archsugar-cli/scenario/scenario.go
- Line 14: warning: exported var ErrScenarioAlreadyExists should have comment or be unexported (golint)
- Line 18: warning: exported type Scenario should have comment or be unexported (golint)
- Line 126: warning: exported method Scenario.IsEnabled should have comment or be unexported (golint)
- Line 130: warning: exported method Scenario.Exists 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!