Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
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.
-
rabbit-amazon-forwarder/connector/connector.go
- Line 16: warning: exported type FileReader should have comment or be unexported (golint)
- Line 20: warning: exported type IOFileReader should have comment or be unexported (golint)
- Line 23: warning: exported method IOFileReader.ReadFile should have comment or be unexported (golint)
- Line 27: warning: exported type CertPoolMaker should have comment or be unexported (golint)
- Line 31: warning: exported type X509CertPoolMaker should have comment or be unexported (golint)
- Line 34: warning: exported method X509CertPoolMaker.NewCertPoolWithAppendedCa should have comment or be unexported (golint)
- Line 40: warning: exported type KeyLoader should have comment or be unexported (golint)
- Line 44: warning: exported type X509KeyPairLoader should have comment or be unexported (golint)
- Line 47: warning: exported method X509KeyPairLoader.LoadKeyPair should have comment or be unexported (golint)
- Line 51: warning: exported type RabbitDialer should have comment or be unexported (golint)
- Line 55: warning: exported type BasicRabbitDialer should have comment or be unexported (golint)
- Line 58: warning: exported method BasicRabbitDialer.Dial should have comment or be unexported (golint)
- Line 62: warning: exported type TlsRabbitDialer should have comment or be unexported (golint)
- Line 66: warning: exported type X509TlsDialer should have comment or be unexported (golint)
- Line 69: warning: exported method X509TlsDialer.DialTLS should have comment or be unexported (golint)
- Line 73: warning: exported type RabbitConnector should have comment or be unexported (golint)
- Line 77: warning: exported type BasicRabbitConnector should have comment or be unexported (golint)
- Line 81: warning: exported method BasicRabbitConnector.CreateConnection should have comment or be unexported (golint)
- Line 86: warning: exported type TlsRabbitConnector should have comment or be unexported (golint)
- Line 94: warning: exported method TlsRabbitConnector.CreateConnection should have comment or be unexported (golint)
- Line 120: warning: exported function CreateBasicRabbitConnector should have comment or be unexported (golint)
- Line 126: warning: exported function CreateTlsRabbitConnector should have comment or be unexported (golint)
- Line 136: warning: exported function CreateConnector should have comment or be unexported (golint)
- Line 139: warning: if block ends with a return statement, so drop this else and outdent its block (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!