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.
-
cuckoohash-go/map.go
- Line 16: warning: comment on exported type Map should be of the form "Map ..." (with optional leading article) (golint)
- Line 128: warning: comment on exported function NewMap should be of the form "NewMap ..." (golint)
- Line 269: warning: comment on exported method Map.ContainsKey should be of the form "ContainsKey ..." (golint)
- Line 276: warning: comment on exported method Map.ContainsValue should be of the form "ContainsValue ..." (golint)
- Line 356: warning: comment on exported method Map.Count should be of the form "Count ..." (golint)
- Line 362: warning: comment on exported method Map.IsEmpty should be of the form "IsEmpty ..." (golint)
- Line 367: warning: comment on exported method Map.MemoryInBytes should be of the form "MemoryInBytes ..." (golint)
- Line 375: warning: comment on exported method Map.LoadFactor should be of the form "LoadFactor ..." (golint)
- Line 602: warning: comment on exported method Map.Del should be of the form "Del ..." (golint)
-
cuckoohash-go/set.go
- Line 13: warning: exported type Set should have comment or be unexported (golint)
- Line 25: warning: exported function NewSet should have comment or be unexported (golint)
- Line 35: warning: exported method Set.Clear should have comment or be unexported (golint)
- Line 39: warning: exported method Set.Count should have comment or be unexported (golint)
- Line 43: warning: exported method Set.IsEmpty should have comment or be unexported (golint)
- Line 47: warning: exported method Set.MemoryInBytes should have comment or be unexported (golint)
- Line 51: warning: exported method Set.LoadFactor should have comment or be unexported (golint)
- Line 55: warning: exported method Set.Contains should have comment or be unexported (golint)
- Line 59: warning: comment on exported method Set.Del should be of the form "Del ..." (golint)
- Line 66: warning: comment on exported method Set.Put should be of the form "Put ..." (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!