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.
-
brigade-github-gateway/internal/github/mock_check_runs_client.go
- Line 9: warning: exported type MockCheckRunsClientFactory should have comment or be unexported (golint)
- Line 18: warning: exported method MockCheckRunsClientFactory.NewCheckRunsClient should have comment or be unexported (golint)
- Line 27: warning: exported type MockCheckRunsClient should have comment or be unexported (golint)
- Line 43: warning: exported method MockCheckRunsClient.CreateCheckRun should have comment or be unexported (golint)
- Line 52: warning: exported method MockCheckRunsClient.UpdateCheckRun 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.
-
brigade-github-gateway/monitor/config_test.go
- Line 40: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 56: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 57: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 105: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 124: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 142: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 143: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 160: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 161: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 162: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 179: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 180: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
-
brigade-github-gateway/receiver/config_test.go
- Line 48: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 64: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 65: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 111: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 130: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 148: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 168: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 169: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 189: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 209: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 210: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 230: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 246: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 247: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 263: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 264: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 280: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 296: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 297: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 313: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 314: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 352: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 374: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 395: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 428: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 439: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 440: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 451: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 462: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
- Line 473: warning: t.Setenv undefined (type *testing.T has no field or method Setenv) (ineffassign)
Misspell Finds commonly misspelled English words
No problems detected. Good job!