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.
-
dynalist-go/api_v1.go
- Line 20: warning: exported type API should have comment or be unexported (golint)
- Line 27: warning: exported function New should have comment or be unexported (golint)
- Line 38: warning: exported method API.FileList should have comment or be unexported (golint)
- Line 46: warning: exported method API.FileEdit should have comment or be unexported (golint)
- Line 61: warning: exported method API.DocRead should have comment or be unexported (golint)
- Line 76: warning: exported method API.DocEdit should have comment or be unexported (golint)
- Line 93: warning: exported method API.InboxAdd should have comment or be unexported (golint)
- Line 136: warning: exported type Limit should have comment or be unexported (golint)
- Line 141: warning: exported method API.LimitFileList should have comment or be unexported (golint)
- Line 148: warning: exported method API.LimitFileEdit should have comment or be unexported (golint)
- Line 155: warning: exported method API.LimitDocRead should have comment or be unexported (golint)
- Line 162: warning: exported method API.LimitDocEdit should have comment or be unexported (golint)
- Line 169: warning: exported method API.LimitChange should have comment or be unexported (golint)
- Line 176: warning: exported method API.LimitInboxAdd should have comment or be unexported (golint)
- Line 183: warning: exported type Change should have comment or be unexported (golint)
- Line 196: warning: exported function NewChange should have comment or be unexported (golint)
- Line 200: warning: exported type Action should have comment or be unexported (golint)
- Line 203: warning: exported const ActionInsert should have comment (or a comment on this block) or be unexported (golint)
- Line 209: warning: exported type Response should have comment or be unexported (golint)
- Line 219: warning: exported type Code should have comment or be unexported (golint)
- Line 222: warning: exported const CodeOK should have comment (or a comment on this block) or be unexported (golint)
- Line 223: warning: comment on exported const CodeInvalid should be of the form "CodeInvalid ..." (golint)
- Line 225: warning: comment on exported const CodeTooManyRequests should be of the form "CodeTooManyRequests ..." (golint)
- Line 227: warning: comment on exported const CodeInvalidToken should be of the form "CodeInvalidToken ..." (golint)
- Line 229: warning: comment on exported const CodeLockFail should be of the form "CodeLockFail ..." (golint)
- Line 231: warning: comment on exported const CodeUnauthorized should be of the form "CodeUnauthorized ..." (golint)
- Line 233: warning: comment on exported const CodeNotFound should be of the form "CodeNotFound ..." (golint)
- Line 235: warning: comment on exported const CodeNodeNotFound should be of the form "CodeNodeNotFound ..." (golint)
- Line 237: warning: comment on exported const CodeNoInbox should be of the form "CodeNoInbox ..." (golint)
- Line 241: warning: exported type File should have comment or be unexported (golint)
- Line 250: warning: exported type Type should have comment or be unexported (golint)
- Line 253: warning: exported const TypeDocument should have comment (or a comment on this block) or be unexported (golint)
- Line 257: warning: exported type Permission should have comment or be unexported (golint)
- Line 260: warning: exported const PermissionNoAccess should have comment (or a comment on this block) or be unexported (golint)
- Line 267: warning: exported type Node 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!