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.
-
key-resolver-go/internal/reservation/mock.go
- Line 38: warning: exported function NewMockRepository should have comment or be unexported (golint)
- Line 45: warning: comment on exported method MockRepository.AddEntry should be of the form "AddEntry ..." (golint)
- Line 55: warning: comment on exported method MockRepository.AddDNS should be of the form "AddDNS ..." (golint)
-
key-resolver-go/internal/address/repository.go
- Line 44: warning: exported type KeyStatus should have comment or be unexported (golint)
- Line 47: warning: exported const KSNormal should have comment (or a comment on this block) or be unexported (golint)
- Line 56: warning: exported method KeyStatus.ToString should have comment or be unexported (golint)
- Line 60: warning: exported function StringToKeyStatus should have comment or be unexported (golint)
- Line 112: warning: comment on exported function SetDefaultRepository should be of the form "SetDefaultRepository ..." (golint)
-
key-resolver-go/internal/handler/routing.go
- Line 39: warning: exported function GetRoutingHash should have comment or be unexported (golint)
- Line 62: warning: exported function PostRoutingHash should have comment or be unexported (golint)
- Line 118: warning: exported function DeleteRoutingHash should have comment or be unexported (golint)
-
key-resolver-go/internal/address/sqlite.go
- Line 35: warning: exported type SqliteDbResolver should have comment or be unexported (golint)
- Line 42: warning: comment on exported function NewSqliteResolver should be of the form "NewSqliteResolver ..." (golint)
- Line 76: warning: exported method SqliteDbResolver.Update should have comment or be unexported (golint)
- Line 101: warning: exported method SqliteDbResolver.Create should have comment or be unexported (golint)
- Line 121: warning: exported method SqliteDbResolver.Get should have comment or be unexported (golint)
- Line 150: warning: exported method SqliteDbResolver.Delete should have comment or be unexported (golint)
- Line 166: warning: exported method SqliteDbResolver.SoftDelete should have comment or be unexported (golint)
- Line 188: warning: exported method SqliteDbResolver.SoftUndelete should have comment or be unexported (golint)
- Line 209: warning: exported method SqliteDbResolver.GetKeyStatus should have comment or be unexported (golint)
- Line 226: warning: exported method SqliteDbResolver.SetKeyStatus should have comment or be unexported (golint)
-
key-resolver-go/internal/handler/address.go
- Line 53: warning: exported var MinimumProofBitsAddress should have comment or be unexported (golint)
- Line 57: warning: exported function GetAddressHash should have comment or be unexported (golint)
- Line 81: warning: exported function PostAddressHash should have comment or be unexported (golint)
- Line 127: warning: exported function DeleteAddressHash should have comment or be unexported (golint)
- Line 152: warning: exported function SoftDeleteAddressHash should have comment or be unexported (golint)
- Line 175: warning: exported function SoftUndeleteAddressHash should have comment or be unexported (golint)
- Line 202: warning: exported function GetKeyStatus should have comment or be unexported (golint)
- Line 227: warning: exported function SetKeyStatus should have comment or be unexported (golint)
-
key-resolver-go/internal/handler/organisation.go
- Line 37: warning: exported var MinimumProofBitsOrganisation should have comment or be unexported (golint)
- Line 46: warning: exported function GetOrganisationHash should have comment or be unexported (golint)
- Line 70: warning: exported function PostOrganisationHash should have comment or be unexported (golint)
- Line 98: warning: exported function DeleteOrganisationHash should have comment or be unexported (golint)
- Line 169: warning: exported function SoftDeleteOrganisationHash should have comment or be unexported (golint)
- Line 173: warning: exported function SoftUndeleteOrganisationHash should have comment or be unexported (golint)
-
key-resolver-go/internal/organisation/sqlite.go
- Line 34: warning: exported type SqliteDbResolver should have comment or be unexported (golint)
- Line 40: warning: comment on exported function NewSqliteResolver should be of the form "NewSqliteResolver ..." (golint)
- Line 65: warning: exported method SqliteDbResolver.Update should have comment or be unexported (golint)
- Line 87: warning: exported method SqliteDbResolver.Create should have comment or be unexported (golint)
- Line 104: warning: exported method SqliteDbResolver.Get should have comment or be unexported (golint)
- Line 134: warning: exported method SqliteDbResolver.Delete should have comment or be unexported (golint)
- Line 144: warning: exported method SqliteDbResolver.SoftDelete should have comment or be unexported (golint)
- Line 161: warning: exported method SqliteDbResolver.SoftUndelete should have comment or be unexported (golint)
-
key-resolver-go/internal/routing/sqlite.go
- Line 33: warning: exported type SqliteDbResolver should have comment or be unexported (golint)
- Line 39: warning: comment on exported function NewSqliteResolver should be of the form "NewSqliteResolver ..." (golint)
- Line 64: warning: exported method SqliteDbResolver.Update should have comment or be unexported (golint)
- Line 81: warning: exported method SqliteDbResolver.Create should have comment or be unexported (golint)
- Line 93: warning: exported method SqliteDbResolver.Get should have comment or be unexported (golint)
- Line 114: warning: exported method SqliteDbResolver.Delete should have comment or be unexported (golint)
-
key-resolver-go/internal/address/token.go
- Line 33: warning: exported var TimeNow should have comment or be unexported (golint)
- Line 35: warning: exported function GenerateToken should have comment or be unexported (golint)
- Line 43: warning: exported function VerifyInviteToken should have comment or be unexported (golint)
-
key-resolver-go/internal/http/http.go
- Line 35: warning: exported type Headers should have comment or be unexported (golint)
- Line 39: warning: exported function NewHeaders should have comment or be unexported (golint)
- Line 45: warning: exported method Headers.Set should have comment or be unexported (golint)
- Line 49: warning: exported method Headers.Get should have comment or be unexported (golint)
- Line 53: warning: exported method Headers.Has should have comment or be unexported (golint)
- Line 59: warning: exported type Request should have comment or be unexported (golint)
- Line 67: warning: exported function NewRequest should have comment or be unexported (golint)
- Line 77: warning: exported type Response should have comment or be unexported (golint)
- Line 83: warning: exported function NewResponse should have comment or be unexported (golint)
- Line 91: warning: exported type JsonOut should have comment or be unexported (golint)
- Line 92: warning: exported type RawJSONOut should have comment or be unexported (golint)
- Line 114: warning: comment on exported function CreateOutput should be of the form "CreateOutput ..." (golint)
- Line 124: warning: exported function GenerateAuthenticationToken should have comment or be unexported (golint)
- Line 130: warning: comment on exported method Request.ValidateAuthenticationToken should be of the form "ValidateAuthenticationToken ..." (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!