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.
Golint is a linter for Go source code.
-
cloud-instance-dns/server/config.go
- Line 25: warning: exported type CommonConfig should have comment or be unexported (golint)
- Line 33: warning: exported type AwsConfig should have comment or be unexported (golint)
- Line 37: warning: exported type GcpConfig should have comment or be unexported (golint)
- Line 43: warning: comment on exported function ParseConfig should be of the form "ParseConfig ..." (golint)
- Line 57: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
-
cloud-instance-dns/server/store.go
- Line 20: warning: exported type CloudVendor should have comment or be unexported (golint)
- Line 22: warning: exported type LookupTable should have comment or be unexported (golint)
- Line 25: warning: exported const TTL should have comment (or a comment on this block) or be unexported (golint)
- Line 29: warning: exported const CacheName should have comment (or a comment on this block) or be unexported (golint)
- Line 35: warning: exported type Store should have comment or be unexported (golint)
- Line 42: warning: exported type Record should have comment or be unexported (golint)
- Line 50: warning: exported method Store.Lookup should have comment or be unexported (golint)
- Line 80: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
- Line 162: warning: exported method Record.TTL should have comment or be unexported (golint)
- Line 171: warning: exported function NewStore 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!