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.
-
resolution-go/zns.go
- Line 57: warning: comment on exported function NewZnsBuilder should be of the form "NewZnsBuilder ..." (golint)
- Line 123: warning: exported method Zns.Records should have comment or be unexported (golint)
- Line 136: warning: exported method Zns.Record should have comment or be unexported (golint)
- Line 144: warning: exported method Zns.Owner should have comment or be unexported (golint)
- Line 153: warning: exported method Zns.Resolver should have comment or be unexported (golint)
- Line 162: warning: exported method Zns.Addr should have comment or be unexported (golint)
- Line 174: warning: exported method Zns.AddrVersion should have comment or be unexported (golint)
- Line 186: warning: exported method Zns.Email should have comment or be unexported (golint)
- Line 195: warning: exported method Zns.AllRecords should have comment or be unexported (golint)
- Line 204: warning: exported method Zns.IpfsHash should have comment or be unexported (golint)
- Line 212: warning: exported method Zns.HTTPUrl should have comment or be unexported (golint)
- Line 220: warning: exported method Zns.DNS should have comment or be unexported (golint)
- Line 237: warning: exported method Zns.IsSupportedDomain should have comment or be unexported (golint)
-
resolution-go/cns.go
- Line 98: warning: exported method Cns.Records should have comment or be unexported (golint)
- Line 110: warning: exported method Cns.Record should have comment or be unexported (golint)
- Line 118: warning: exported method Cns.Addr should have comment or be unexported (golint)
- Line 130: warning: exported method Cns.AddrVersion should have comment or be unexported (golint)
- Line 142: warning: exported method Cns.Email should have comment or be unexported (golint)
- Line 151: warning: exported method Cns.Resolver should have comment or be unexported (golint)
- Line 160: warning: exported method Cns.Owner should have comment or be unexported (golint)
- Line 169: warning: exported method Cns.IpfsHash should have comment or be unexported (golint)
- Line 177: warning: exported method Cns.HTTPUrl should have comment or be unexported (golint)
- Line 185: warning: exported method Cns.AllRecords should have comment or be unexported (golint)
- Line 243: warning: exported method Cns.DNS should have comment or be unexported (golint)
- Line 260: warning: exported method Cns.IsSupportedDomain 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