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.
-
UGCPriorityQueue/maxpq/pq.go
- Line 8: warning: exported type PQ should have comment or be unexported (golint)
- Line 18: warning: comment on exported function New should be of the form "New ..." (golint)
- Line 26: warning: comment on exported method PQ.IsEmpty should be of the form "IsEmpty ..." (golint)
- Line 33: warning: comment on exported method PQ.Size should be of the form "Size ..." (golint)
- Line 40: warning: comment on exported method PQ.Insert should be of the form "Insert ..." (golint)
- Line 53: warning: comment on exported method PQ.Max should be of the form "Max ..." (golint)
- Line 63: warning: comment on exported method PQ.Pop should be of the form "Pop ..." (golint)
-
UGCPriorityQueue/maxpq/pqnode.go
- Line 7: warning: exported type Node should have comment or be unexported (golint)
- Line 12: warning: exported function NewNode should have comment or be unexported (golint)
- Line 20: warning: exported method Node.GetPriority should have comment or be unexported (golint)
- Line 24: warning: exported method Node.GetStringValue should have comment or be unexported (golint)
- Line 28: warning: exported method Node.GetFloat64Value should have comment or be unexported (golint)
- Line 32: warning: exported method Node.GetFloat32Value should have comment or be unexported (golint)
- Line 36: warning: exported method Node.GetIntValue should have comment or be unexported (golint)
- Line 40: warning: exported method Node.GetInt64Value should have comment or be unexported (golint)
- Line 44: warning: exported method Node.GetInt32Value should have comment or be unexported (golint)
- Line 48: warning: exported method Node.GetUIntValue should have comment or be unexported (golint)
- Line 52: warning: exported method Node.GetUInt64Value should have comment or be unexported (golint)
- Line 56: warning: exported method Node.GetUInt32Value should have comment or be unexported (golint)
- Line 60: warning: exported method Node.GetFuncValue should have comment or be unexported (golint)
- Line 64: warning: comment on exported method Node.GetValue should be of the form "GetValue ..." (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!