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.
-
go-version/pkg/part/empty.go
- Line 3: warning: exported type Empty should have comment or be unexported (golint)
- Line 7: warning: exported function NewEmpty should have comment or be unexported (golint)
- Line 11: warning: exported method Empty.Compare should have comment or be unexported (golint)
- Line 18: warning: exported method Empty.IsNull should have comment or be unexported (golint)
- Line 22: warning: exported method Empty.IsAny should have comment or be unexported (golint)
- Line 26: warning: exported method Empty.IsEmpty should have comment or be unexported (golint)
-
go-version/pkg/part/infinity.go
- Line 3: warning: exported var Infinity should have comment or be unexported (golint)
- Line 5: warning: exported type InfinityType should have comment or be unexported (golint)
- Line 7: warning: exported method InfinityType.Compare should have comment or be unexported (golint)
- Line 16: warning: exported method InfinityType.IsNull should have comment or be unexported (golint)
- Line 20: warning: exported method InfinityType.IsAny should have comment or be unexported (golint)
- Line 24: warning: exported method InfinityType.IsEmpty should have comment or be unexported (golint)
- Line 28: warning: exported var NegativeInfinity should have comment or be unexported (golint)
- Line 30: warning: exported type NegativeInfinityType should have comment or be unexported (golint)
- Line 32: warning: exported method NegativeInfinityType.Compare should have comment or be unexported (golint)
- Line 41: warning: exported method NegativeInfinityType.IsNull should have comment or be unexported (golint)
- Line 45: warning: exported method NegativeInfinityType.IsAny should have comment or be unexported (golint)
- Line 49: warning: exported method NegativeInfinityType.IsEmpty should have comment or be unexported (golint)
-
go-version/pkg/part/int.go
- Line 7: warning: exported const Zero should have comment or be unexported (golint)
- Line 9: warning: exported type Uint64 should have comment or be unexported (golint)
- Line 11: warning: exported function NewUint64 should have comment or be unexported (golint)
- Line 19: warning: exported method Uint64.Compare should have comment or be unexported (golint)
- Line 48: warning: exported method Uint64.IsNull should have comment or be unexported (golint)
- Line 52: warning: exported method Uint64.IsAny should have comment or be unexported (golint)
- Line 56: warning: exported method Uint64.IsEmpty should have comment or be unexported (golint)
-
go-version/pkg/part/list.go
- Line 9: warning: exported type Parts should have comment or be unexported (golint)
- Line 11: warning: exported function NewParts should have comment or be unexported (golint)
- Line 23: warning: exported method Parts.Normalize should have comment or be unexported (golint)
- Line 38: warning: exported method Parts.Padding should have comment or be unexported (golint)
- Line 51: warning: exported method Parts.Compare should have comment or be unexported (golint)
- Line 95: warning: exported method Parts.IsNull should have comment or be unexported (golint)
- Line 99: warning: exported method Parts.IsAny should have comment or be unexported (golint)
- Line 108: warning: exported method Parts.IsEmpty should have comment or be unexported (golint)
- Line 120: warning: exported type ZipTuple should have comment or be unexported (golint)
- Line 125: warning: exported method Parts.Zip should have comment or be unexported (golint)
- Line 143: warning: exported function Uint64SliceToParts should have comment or be unexported (golint)
-
go-version/pkg/part/string.go
- Line 7: warning: exported type String should have comment or be unexported (golint)
- Line 9: warning: exported function NewString should have comment or be unexported (golint)
- Line 13: warning: exported method String.Compare should have comment or be unexported (golint)
- Line 38: warning: exported method String.IsNull should have comment or be unexported (golint)
- Line 42: warning: exported method String.IsAny should have comment or be unexported (golint)
- Line 46: warning: exported method String.IsEmpty should have comment or be unexported (golint)
- Line 54: warning: exported function NewPreString should have comment or be unexported (golint)
- Line 58: warning: exported method PreString.Compare should have comment or be unexported (golint)
- Line 84: warning: exported method PreString.IsNull should have comment or be unexported (golint)
- Line 88: warning: exported method PreString.IsAny should have comment or be unexported (golint)
- Line 92: warning: exported method PreString.IsEmpty should have comment or be unexported (golint)
-
go-version/pkg/semver/constraint_option.go
- Line 8: warning: exported type ConstraintOption should have comment or be unexported (golint)
- Line 12: warning: exported type WithZeroPadding should have comment or be unexported (golint)
- Line 18: warning: exported type WithPreRelease should have comment or be unexported (golint)
-
go-version/pkg/part/any.go
- Line 7: warning: exported type Any should have comment or be unexported (golint)
- Line 9: warning: exported function NewAny should have comment or be unexported (golint)
- Line 16: warning: exported method Any.Compare should have comment or be unexported (golint)
- Line 23: warning: exported method Any.IsNull should have comment or be unexported (golint)
- Line 27: warning: exported method Any.IsAny should have comment or be unexported (golint)
- Line 31: warning: exported method Any.IsEmpty 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!