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.
-
tlsutils/tls.go
- Line 24: warning: exported function MakeSubject should have comment or be unexported (golint)
- Line 34: warning: comment on exported type TlsParams should be of the form "TlsParams ..." (with optional leading article) (golint)
- Line 52: warning: comment on exported method TlsParams.Copy should be of the form "Copy ..." (golint)
- Line 66: warning: exported var Day should have comment or be unexported (golint)
- Line 72: warning: comment on exported function DefaultTlsParams should be of the form "DefaultTlsParams ..." (golint)
- Line 86: warning: comment on exported type TlsCert should be of the form "TlsCert ..." (with optional leading article) (golint)
- Line 101: warning: comment on exported method TlsCert.MakeDca should be of the form "MakeDca ..." (golint)
- Line 133: warning: comment on exported method TlsCert.MakeServerCertificate should be of the form "MakeServerCertificate ..." (golint)
- Line 234: warning: exported function AddHostToTemplate should have comment or be unexported (golint)
- Line 245: warning: exported function MakeCertificateDefault should have comment or be unexported (golint)
- Line 271: warning: comment on exported function MakeCertificate should be of the form "MakeCertificate ..." (golint)
- Line 317: warning: comment on exported function VerifyCertificate should be of the form "VerifyCertificate ..." (golint)
- Line 323: warning: exported function VerifyKeyPair should have comment or be unexported (golint)
-
tlsutils/verify.go
- Line 8: warning: comment on exported function VerifyDCA should be of the form "VerifyDCA ..." (golint)
- Line 22: warning: comment on exported function VerifyLow should be of the form "VerifyLow ..." (golint)
- Line 39: warning: comment on exported function VerifyLowNoDca should be of the form "VerifyLowNoDca ..." (golint)
-
tlsutils/mock/tls.go
- Line 10: warning: comment on exported function TemporaryCert should be of the form "TemporaryCert ..." (golint)
- Line 22: warning: comment on exported function TemporaryCertInChain should be of the form "TemporaryCertInChain ..." (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!