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!
Golint is a linter for Go source code.
-
go-shodan/shodan/alert_triggers.go
- Line 21: warning: exported type AlertTriggerIdent should have comment or be unexported (golint)
- Line 26: warning: exported type AlertTriggerServiceIdent should have comment or be unexported (golint)
- Line 31: warning: comment on exported method Client.GetAlertTriggers should be of the form "GetAlertTriggers ..." (golint)
- Line 83: warning: comment on exported method Client.EnableAlertTrigger should be of the form "EnableAlertTrigger ..." (golint)
- Line 88: warning: comment on exported method Client.DisableAlertTrigger should be of the form "DisableAlertTrigger ..." (golint)
- Line 93: warning: comment on exported method Client.AddServiceToAlertTriggerWhitelist should be of the form "AddServiceToAlertTriggerWhitelist ..." (golint)
- Line 101: warning: comment on exported method Client.RemoveServiceFromAlertTriggerWhitelist should be of the form "RemoveServiceFromAlertTriggerWhitelist ..." (golint)
-
go-shodan/shodan/dns.go
- Line 17: warning: exported type DomainDNSInfo should have comment or be unexported (golint)
- Line 24: warning: exported type SubdomainDNSInfo should have comment or be unexported (golint)
-
go-shodan/shodan/notifiers.go
- Line 14: warning: exported type Notifier should have comment or be unexported (golint)
- Line 21: warning: exported type NotifierProvider should have comment or be unexported (golint)
- Line 123: warning: comment on exported method Client.UpdateNotifierArgs should be of the form "UpdateNotifierArgs ..." (golint)
-
go-shodan/shodan/orgs.go
- Line 40: warning: comment on exported method Client.GetOrganization should be of the form "GetOrganization ..." (golint)
- Line 56: warning: comment on exported method Client.AddMemberToOrganization should be of the form "AddMemberToOrganization ..." (golint)
- Line 77: warning: comment on exported method Client.RemoveMemberFromOrganization should be of the form "RemoveMemberFromOrganization ..." (golint)
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!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Checks whether your project has a LICENSE file.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!