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.
-
websearch/provider/errs/bad_request.go
- Line 5: warning: comment on exported type BadRequestError should be of the form "BadRequestError ..." (with optional leading article) (golint)
- Line 10: warning: comment on exported function NewBadRequestError should be of the form "NewBadRequestError ..." (golint)
-
websearch/provider/errs/not_implemented.go
- Line 5: warning: comment on exported type NotImplementedError should be of the form "NotImplementedError ..." (with optional leading article) (golint)
- Line 10: warning: comment on exported function NewNotImplemented should be of the form "NewNotImplemented ..." (golint)
-
websearch/provider/errs/ip_banned.go
- Line 5: warning: comment on exported type IPBannedError should be of the form "IPBannedError ..." (with optional leading article) (golint)
- Line 10: warning: comment on exported function NewIPBanned should be of the form "NewIPBanned ..." (golint)
-
websearch/provider/not_implemented.go
- Line 8: warning: comment on exported const ProviderNotImplemented should be of the form "ProviderNotImplemented ..." (golint)
- Line 11: warning: comment on exported type NotImplemented should be of the form "NotImplemented ..." (with optional leading article) (golint)
- Line 14: warning: comment on exported type NotImplementedConfig should be of the form "NotImplementedConfig ..." (with optional leading article) (golint)
- Line 17: warning: comment on exported function NewNotImplemented should be of the form "NewNotImplemented ..." (golint)
- Line 22: warning: comment on exported method NotImplemented.Search should be of the form "Search ..." (golint)
- Line 27: warning: comment on exported method NotImplemented.Name should be of the form "Name ..." (golint)
-
websearch/provider/provider.go
- Line 5: warning: comment on exported type ProviderName should be of the form "ProviderName ..." (with optional leading article) (golint)
- Line 8: warning: comment on exported type Provider should be of the form "Provider ..." (with optional leading article) (golint)
- Line 14: warning: comment on exported type Results should be of the form "Results ..." (with optional leading article) (golint)
- Line 17: warning: comment on exported type Result should be of the form "Result ..." (with optional leading article) (golint)
-
websearch/provider/unofficial_duckduckgo.go
- Line 9: warning: comment on exported const ProviderUnofficialDuckDuckGo should be of the form "ProviderUnofficialDuckDuckGo ..." (golint)
- Line 12: warning: comment on exported type UnofficialDuckDuckGo should be of the form "UnofficialDuckDuckGo ..." (with optional leading article) (golint)
- Line 17: warning: comment on exported type UnofficialDuckDuckGoConfig should be of the form "UnofficialDuckDuckGoConfig ..." (with optional leading article) (golint)
- Line 20: warning: comment on exported function NewUnofficialDuckDuckGo should be of the form "NewUnofficialDuckDuckGo ..." (golint)
- Line 33: warning: comment on exported method UnofficialDuckDuckGo.Search should be of the form "Search ..." (golint)
- Line 65: warning: comment on exported method UnofficialDuckDuckGo.Name should be of the form "Name ..." (golint)
-
websearch/provider/unofficial_qwant.go
- Line 14: warning: comment on exported const ProviderUnofficialQwant should be of the form "ProviderUnofficialQwant ..." (golint)
- Line 17: warning: comment on exported type UnofficialQwant should be of the form "UnofficialQwant ..." (with optional leading article) (golint)
- Line 24: warning: comment on exported type UnofficialQwantConfig should be of the form "UnofficialQwantConfig ..." (with optional leading article) (golint)
- Line 29: warning: comment on exported function NewUnofficialQwant should be of the form "NewUnofficialQwant ..." (golint)
- Line 56: warning: comment on exported method UnofficialQwant.Search should be of the form "Search ..." (golint)
- Line 129: warning: comment on exported method UnofficialQwant.Name should be of the form "Name ..." (golint)
-
websearch/helpers/params.go
- Line 9: warning: comment on exported function ParamsMerge should be of the form "ParamsMerge ..." (golint)
- Line 20: warning: comment on exported function ParamsRender should be of the form "ParamsRender ..." (golint)
-
websearch/error.go
- Line 3: warning: comment on exported type Error should be of the form "Error ..." (with optional leading article) (golint)
- Line 8: warning: comment on exported function NewError should be of the form "NewError ..." (golint)
-
websearch/websearch.go
- Line 7: warning: comment on exported type WebSearch should be of the form "WebSearch ..." (with optional leading article) (golint)
- Line 12: warning: comment on exported function New should be of the form "New ..." (golint)
- Line 19: warning: comment on exported method WebSearch.Search should be of the form "Search ..." (golint)
-
websearch/helpers/request.go
- Line 14: warning: comment on exported function Request should be of the form "Request ..." (golint)
- Line 48: warning: comment on exported function RequestJSON should be of the form "RequestJSON ..." (golint)
- Line 63: warning: comment on exported function RequestHTML should be of the form "RequestHTML ..." (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!