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.
-
aduket/example/simple/auth.go
- Line 11: warning: exported type AuthClient should have comment or be unexported (golint)
- Line 15: warning: exported type Credentials should have comment or be unexported (golint)
- Line 20: warning: exported type Token should have comment or be unexported (golint)
- Line 24: warning: error var NotAuthorizedError should have name of the form ErrFoo (golint)
- Line 24: warning: exported var NotAuthorizedError should have comment or be unexported (golint)
- Line 25: warning: error var InternalAuthServerError should have name of the form ErrFoo (golint)
- Line 25: warning: exported var InternalAuthServerError should have comment or be unexported (golint)
- Line 27: warning: exported method AuthClient.Login should have comment or be unexported (golint)
-
aduket/example/multiroute/cart.go
- Line 11: warning: exported type Cart should have comment or be unexported (golint)
- Line 15: warning: exported type CartItem should have comment or be unexported (golint)
- Line 20: warning: exported type CartDiscount should have comment or be unexported (golint)
- Line 24: warning: exported type Product should have comment or be unexported (golint)
- Line 29: warning: exported type ProductClient should have comment or be unexported (golint)
- Line 34: warning: exported method ProductClient.GetProduct should have comment or be unexported (golint)
- Line 55: warning: exported type ShoppingCartClient should have comment or be unexported (golint)
- Line 60: warning: exported method ShoppingCartClient.GetUserCart should have comment or be unexported (golint)
- Line 78: warning: exported method ShoppingCartClient.GetUserCartDiscount should have comment or be unexported (golint)
- Line 97: warning: exported type ShoppingCart should have comment or be unexported (golint)
- Line 102: warning: exported method ShoppingCart.GetTotalPrice should have comment or be unexported (golint)
-
aduket/assert.go
- Line 33: warning: exported method RequestRecorder.AssertStringBodyEqual should have comment or be unexported (golint)
- Line 48: warning: exported method RequestRecorder.AssertJSONBodyEqual should have comment or be unexported (golint)
- Line 65: warning: exported method RequestRecorder.AssertXMLBodyEqual should have comment or be unexported (golint)
- Line 82: warning: exported method RequestRecorder.AssertParamEqual should have comment or be unexported (golint)
- Line 95: warning: exported method RequestRecorder.AssertQueryParamEqual should have comment or be unexported (golint)
- Line 108: warning: exported method RequestRecorder.AssertFormParamEqual should have comment or be unexported (golint)
- Line 121: warning: exported method RequestRecorder.AssertHeaderContains should have comment or be unexported (golint)
- Line 133: warning: exported method RequestRecorder.AssertNoRequest should have comment or be unexported (golint)
-
aduket/requestrecorder.go
- Line 29: warning: exported type RequestRecorder should have comment or be unexported (golint)
- Line 39: warning: exported type Body should have comment or be unexported (golint)
- Line 41: warning: exported function NewRequestRecorder should have comment or be unexported (golint)
-
aduket/responseoption.go
- Line 10: warning: exported type ResponseRuleOption should have comment or be unexported (golint)
- Line 12: warning: exported function StatusCode should have comment or be unexported (golint)
- Line 18: warning: exported function JSONBody should have comment or be unexported (golint)
- Line 24: warning: exported function XMLBody should have comment or be unexported (golint)
- Line 30: warning: exported function StringBody should have comment or be unexported (golint)
- Line 36: warning: exported function ByteBody should have comment or be unexported (golint)
- Line 42: warning: exported function CorruptedBody should have comment or be unexported (golint)
- Line 48: warning: exported function Header should have comment or be unexported (golint)
- Line 54: warning: exported function Timeout should have comment or be unexported (golint)
-
aduket/server.go
- Line 29: warning: exported type Route should have comment or be unexported (golint)
- Line 42: warning: exported function NewMultiRouteServer should have comment or be unexported (golint)
- Line 56: warning: exported function NewServer should have comment or be unexported (golint)
- Line 92: warning: exported type RequestRecorderBinder should have comment or be unexported (golint)
- Line 94: warning: exported method RequestRecorderBinder.Bind 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!