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.
-
haystack/pinboard/client.go
- Line 21: warning: exported function CLI should have comment or be unexported (golint)
- Line 70: warning: exported type Client should have comment or be unexported (golint)
- Line 74: warning: exported function NewClient should have comment or be unexported (golint)
- Line 81: warning: exported method Client.SetToken should have comment or be unexported (golint)
- Line 87: warning: exported method Client.SetUsernamePassword should have comment or be unexported (golint)
- Line 91: warning: exported method Client.SearchTags should have comment or be unexported (golint)
- Line 102: warning: exported method Client.TagsLike should have comment or be unexported (golint)
- Line 133: warning: exported type TagCount should have comment or be unexported (golint)
- Line 142: warning: exported method Client.GetTags should have comment or be unexported (golint)
- Line 155: warning: exported method Client.SearchPosts should have comment or be unexported (golint)
- Line 166: warning: exported method Client.GetPosts should have comment or be unexported (golint)
- Line 178: warning: exported type RawAllPostsResponse should have comment or be unexported (golint)
- Line 190: warning: exported method RawAllPostsResponse.ToPosts should have comment or be unexported (golint)
- Line 209: warning: exported type Post should have comment or be unexported (golint)
- Line 217: warning: exported method Client.Query should have comment or be unexported (golint)
- Line 237: warning: exported var Template 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!