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.
-
cheap-ruler-go/cheapruler.go
- Line 8: warning: comment on exported type CheapRuler should be of the form "CheapRuler ..." (with optional leading article) (golint)
- Line 16: warning: comment on exported type PointOnLine should be of the form "PointOnLine ..." (with optional leading article) (golint)
- Line 24: warning: comment on exported function NewCheapruler should be of the form "NewCheapruler ..." (golint)
- Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
- Line 67: warning: comment on exported function NewCheaprulerFromTile should be of the form "NewCheaprulerFromTile ..." (golint)
- Line 74: warning: comment on exported method CheapRuler.Distance should be of the form "Distance ..." (golint)
- Line 81: warning: comment on exported method CheapRuler.Bearing should be of the form "Bearing ..." (golint)
- Line 95: warning: comment on exported method CheapRuler.Destination should be of the form "Destination ..." (golint)
- Line 101: warning: comment on exported method CheapRuler.Offset should be of the form "Offset ..." (golint)
- Line 108: warning: comment on exported method CheapRuler.LineDistance should be of the form "LineDistance ..." (golint)
- Line 117: warning: comment on exported method CheapRuler.Area should be of the form "Area ..." (golint)
- Line 141: warning: comment on exported method CheapRuler.Along should be of the form "Along ..." (golint)
- Line 162: warning: comment on exported method CheapRuler.PointOnLine should be of the form "PointOnLine ..." (golint)
- Line 213: warning: comment on exported method CheapRuler.LineSlice should be of the form "LineSlice ..." (golint)
- Line 244: warning: comment on exported method CheapRuler.LineSliceAlong should be of the form "LineSliceAlong ..." (golint)
- Line 273: warning: comment on exported method CheapRuler.BufferPoint should be of the form "BufferPoint ..." (golint)
- Line 286: warning: comment on exported method CheapRuler.BufferBBox should be of the form "BufferBBox ..." (golint)
- Line 298: warning: comment on exported method CheapRuler.InsideBBox should be of the form "InsideBBox ..." (golint)
Checks whether your project has a LICENSE file.
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!