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.
-
pgAuthProxy/auth/auth.go
- Line 16: warning: exported function CreateMd5Credential should have comment or be unexported (golint)
- Line 21: warning: exported function SaltedMd5Credential should have comment or be unexported (golint)
- Line 26: warning: exported function SaltedMd5PasswordCredential should have comment or be unexported (golint)
- Line 38: warning: exported function Exec should have comment or be unexported (golint)
-
pgAuthProxy/utils/io.go
- Line 14: warning: exported type BufferedWriter should have comment or be unexported (golint)
- Line 24: warning: exported function NewBufferedWriter should have comment or be unexported (golint)
- Line 99: warning: exported method BufferedWriter.Flush should have comment or be unexported (golint)
- Line 106: warning: exported method BufferedWriter.Close should have comment or be unexported (golint)
-
pgAuthProxy/utils/logging.go
- Line 6: warning: exported const PropConfigFile should have comment (or a comment on this block) or be unexported (golint)
- Line 9: warning: exported type CustomLoggerHolder should have comment or be unexported (golint)
- Line 13: warning: exported function NewLoggerHolder should have comment or be unexported (golint)
- Line 17: warning: exported method CustomLoggerHolder.SetProperty should have comment or be unexported (golint)
- Line 21: warning: exported method CustomLoggerHolder.Get should have comment or be unexported (golint)
-
pgAuthProxy/proxy/backend.go
- Line 16: warning: exported type ProxyBack should have comment or be unexported (golint)
- Line 26: warning: exported const MaxTcpPayload should have comment or be unexported (golint)
- Line 29: warning: error var MissingRequiredTargetFields should have name of the form ErrFoo (golint)
- Line 29: warning: exported var MissingRequiredTargetFields should have comment or be unexported (golint)
- Line 30: warning: error var BackendAuthenticationError should have name of the form ErrFoo (golint)
- Line 31: warning: error var BackendInvalidMessage should have name of the form ErrFoo (golint)
- Line 34: warning: exported function NewProxyBackend should have comment or be unexported (golint)
- Line 147: warning: exported method ProxyBack.Run should have comment or be unexported (golint)
- Line 164: warning: exported method ProxyBack.Close should have comment or be unexported (golint)
-
pgAuthProxy/proxy/frontend.go
- Line 14: warning: exported type AuthMapper should have comment or be unexported (golint)
- Line 16: warning: error var authError should have name of the form errFoo (golint)
- Line 22: warning: exported type ProxyFront should have comment or be unexported (golint)
- Line 40: warning: exported function NewProxyFront should have comment or be unexported (golint)
- Line 118: warning: exported method ProxyFront.Close should have comment or be unexported (golint)
- Line 124: warning: exported method ProxyFront.Run 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!