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.
-
lib-go-api-types/v1/pkg/apitype/step-create.go
- Line 7: warning: exported type StepCreateRequest should have comment or be unexported (golint)
- Line 12: warning: exported method StepCreateRequest.UnmarshalJSONObject should have comment or be unexported (golint)
- Line 23: warning: exported method StepCreateRequest.NKeys should have comment or be unexported (golint)
- Line 27: warning: exported method StepCreateRequest.MarshalJSONObject should have comment or be unexported (golint)
- Line 32: warning: exported method StepCreateRequest.IsNil should have comment or be unexported (golint)
-
lib-go-api-types/v1/pkg/apitype/task-list.go
- Line 5: warning: exported type TaskList should have comment or be unexported (golint)
- Line 7: warning: exported method TaskList.MarshalJSONArray should have comment or be unexported (golint)
- Line 13: warning: exported method TaskList.IsNil should have comment or be unexported (golint)
- Line 17: warning: exported method TaskList.UnmarshalJSONArray should have comment or be unexported (golint)
-
lib-go-api-types/v1/pkg/apitype/user-create.go
- Line 7: warning: exported type UserCreateRequest should have comment or be unexported (golint)
- Line 13: warning: exported method UserCreateRequest.MarshalJSONObject should have comment or be unexported (golint)
- Line 19: warning: exported method UserCreateRequest.IsNil should have comment or be unexported (golint)
- Line 23: warning: exported method UserCreateRequest.UnmarshalJSONObject should have comment or be unexported (golint)
- Line 36: warning: exported method UserCreateRequest.NKeys should have comment or be unexported (golint)
-
lib-go-api-types/v1/pkg/apitype/user-list.go
- Line 10: warning: exported method UserList.MarshalJSONArray should have comment or be unexported (golint)
- Line 16: warning: exported method UserList.UnmarshalJSONArray should have comment or be unexported (golint)
- Line 27: warning: exported method UserList.IsNil should have comment or be unexported (golint)
-
lib-go-api-types/v1/pkg/apitype/device-details.go
- Line 47: warning: exported method DeviceDetails.UnmarshalJSONObject should have comment or be unexported (golint)
- Line 71: warning: exported method DeviceDetails.NKeys should have comment or be unexported (golint)
- Line 75: warning: exported method DeviceDetails.IsNil should have comment or be unexported (golint)
- Line 79: warning: exported type DeviceTrust should have comment or be unexported (golint)
-
lib-go-api-types/v1/pkg/apitype/device-list.go
- Line 7: warning: exported type DeviceList should have comment or be unexported (golint)
- Line 9: warning: exported method DeviceList.MarshalJSONArray should have comment or be unexported (golint)
- Line 15: warning: exported method DeviceList.UnmarshalJSONArray should have comment or be unexported (golint)
- Line 26: warning: exported method DeviceList.IsNil should have comment or be unexported (golint)
-
lib-go-api-types/v1/pkg/apitype/step-list.go
- Line 7: warning: exported type StepList should have comment or be unexported (golint)
- Line 9: warning: exported method StepList.MarshalJSONArray should have comment or be unexported (golint)
- Line 15: warning: exported method StepList.UnmarshalJSONArray should have comment or be unexported (golint)
- Line 26: warning: exported method StepList.IsNil should have comment or be unexported (golint)
-
lib-go-api-types/v1/pkg/apitype/task-create.go
- Line 7: warning: exported type TaskCreateRequest should have comment or be unexported (golint)
- Line 12: warning: exported method TaskCreateRequest.MarshalJSONObject should have comment or be unexported (golint)
- Line 17: warning: exported method TaskCreateRequest.UnmarshalJSONObject should have comment or be unexported (golint)
- Line 28: warning: exported method TaskCreateRequest.IsNil should have comment or be unexported (golint)
- Line 32: warning: exported method TaskCreateRequest.NKeys 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!