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.
-
virusgotal/vt/vt.go
- Line 37: warning: comment on exported const DefaultURL should be of the form "DefaultURL ..." (golint)
- Line 58: warning: comment on exported type FileSearchResult should be of the form "FileSearchResult ..." (with optional leading article) (golint)
- Line 65: warning: comment on exported type FileDownloadResult should be of the form "FileDownloadResult ..." (with optional leading article) (golint)
- Line 78: warning: exported type FileReportDistrib should have comment or be unexported (golint)
- Line 125: warning: exported type FileDistributionResults should have comment or be unexported (golint)
- Line 142: warning: exported type DetailedFileReport should have comment or be unexported (golint)
- Line 156: warning: exported type AdditionnalInfoResult should have comment or be unexported (golint)
- Line 172: warning: exported type TrustedVerdictResult should have comment or be unexported (golint)
- Line 178: warning: exported type AutoStartEntry should have comment or be unexported (golint)
- Line 183: warning: exported type PEResource should have comment or be unexported (golint)
- Line 190: warning: exported type SigCheck should have comment or be unexported (golint)
- Line 199: warning: exported type SignerDetail should have comment or be unexported (golint)
- Line 331: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 338: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 465: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 475: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 487: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 688: warning: comment on exported method Client.SearchFile should be of the form "SearchFile ..." (golint)
- Line 777: warning: exported method Client.GetFileNetworkTraffic 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.
Misspell Finds commonly misspelled English words
No problems detected. Good job!