Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
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.
-
vidx2pidx/utils.go
- Line 13: warning: exported function AnyErr should have comment or be unexported (golint)
- Line 23: warning: exported function ExitOnError should have comment or be unexported (golint)
- Line 30: warning: exported function ReadURL should have comment or be unexported (golint)
- Line 51: warning: exported function ReadXML should have comment or be unexported (golint)
- Line 80: warning: exported function WriteXML should have comment or be unexported (golint)
-
vidx2pidx/version.go
- Line 3: warning: exported const Version should have comment or be unexported (golint)
- Line 5: warning: exported const License should have comment or be unexported (golint)
-
vidx2pidx/vidx.go
- Line 7: warning: comment on exported type VidxXML should be of the form "VidxXML ..." (with optional leading article) (golint)
- Line 30: warning: exported type VendorPidx should have comment or be unexported (golint)
- Line 37: warning: exported function NewVidx should have comment or be unexported (golint)
- Line 41: warning: exported method VidxXML.Init should have comment or be unexported (golint)
- Line 45: warning: exported method VidxXML.ListPidx should have comment or be unexported (golint)
- Line 49: warning: exported method VidxXML.ListPdsc should have comment or be unexported (golint)
- Line 53: warning: exported method VidxXML.PidxLength should have comment or be unexported (golint)
- Line 57: warning: exported method VidxXML.PdscLength should have comment or be unexported (golint)
-
vidx2pidx/logger.go
- Line 9: warning: exported type LevelType should have comment or be unexported (golint)
- Line 12: warning: exported const ERROR should have comment (or a comment on this block) or be unexported (golint)
- Line 21: warning: exported type LoggerType should have comment or be unexported (golint)
- Line 32: warning: exported method LoggerType.Debug should have comment or be unexported (golint)
- Line 36: warning: exported method LoggerType.Info should have comment or be unexported (golint)
- Line 44: warning: exported method LoggerType.SetLevel should have comment or be unexported (golint)
- Line 48: warning: exported method LoggerType.SetFile should have comment or be unexported (golint)
- Line 52: warning: exported var Logger should have comment or be unexported (golint)
-
vidx2pidx/pidx.go
- Line 10: warning: comment on exported type PidxXML should be of the form "PidxXML ..." (with optional leading article) (golint)
- Line 26: warning: exported type Pdsc should have comment or be unexported (golint)
- Line 35: warning: exported function NewPidx should have comment or be unexported (golint)
- Line 51: warning: exported method PidxXML.ListPdsc should have comment or be unexported (golint)
- Line 75: warning: exported method PidxXML.Update 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!