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.
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
-
terraform-provider-servicenow/servicenow/resources/resources_test.go
- Line 7: warning: missing go.sum entry for module providing package github.com/stretchr/testify/assert (imported by github.com/tylerhatton/terraform-provider-servicenow/servicenow/resources); to add: (ineffassign)
- Line 10: warning: missing go.sum entry for module providing package github.com/stretchr/testify/mock (imported by github.com/tylerhatton/terraform-provider-servicenow/servicenow/resources); to add: (ineffassign)
- Line 7: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
- Line 10: warning: could not import github.com/stretchr/testify/mock (invalid package name: "") (ineffassign)
- Line 20: warning: m.Called undefined (type *ClientMock has no field or method Called) (ineffassign)
- Line 25: warning: m.Called undefined (type *ClientMock has no field or method Called) (ineffassign)
- Line 30: warning: m.Called undefined (type *ClientMock has no field or method Called) (ineffassign)
- Line 35: warning: m.Called undefined (type *ClientMock has no field or method Called) (ineffassign)
- Line 40: warning: m.Called undefined (type *ClientMock has no field or method Called) (ineffassign)
- Line 49: warning: m.Called undefined (type *RecordMock has no field or method Called) (ineffassign)
- Line 54: warning: m.Called undefined (type *RecordMock has no field or method Called) (ineffassign)
- Line 59: warning: m.Called undefined (type *RecordMock has no field or method Called) (ineffassign)
- Line 64: warning: m.Called undefined (type *RecordMock has no field or method Called) (ineffassign)
- Line 115: warning: clientMock.On undefined (type *ClientMock has no field or method On) (ineffassign)
- Line 119: warning: clientMock.AssertExpectations undefined (type *ClientMock has no field or method AssertExpectations) (ineffassign)
- Line 129: warning: clientMock.On undefined (type *ClientMock has no field or method On) (ineffassign)
- Line 133: warning: clientMock.AssertExpectations undefined (type *ClientMock has no field or method AssertExpectations) (ineffassign)
- Line 146: warning: clientMock.On undefined (type *ClientMock has no field or method On) (ineffassign)
- Line 150: warning: clientMock.AssertExpectations undefined (type *ClientMock has no field or method AssertExpectations) (ineffassign)
- Line 176: warning: clientMock.On undefined (type *ClientMock has no field or method On) (ineffassign)
- Line 179: warning: clientMock.On undefined (type *ClientMock has no field or method On) (ineffassign)
- Line 183: warning: clientMock.AssertExpectations undefined (type *ClientMock has no field or method AssertExpectations) (ineffassign)
- Line 193: warning: clientMock.On undefined (type *ClientMock has no field or method On) (ineffassign)
- Line 197: warning: clientMock.AssertExpectations undefined (type *ClientMock has no field or method AssertExpectations) (ineffassign)
Misspell Finds commonly misspelled English words
No problems detected. Good job!