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.
-
go-locales/locales.go
- Line 6: warning: exported const LC_IDENTIFICATION should have comment (or a comment on this block) or be unexported (golint)
-
go-locales/localedata/database.go
- Line 22: warning: exported type LC should have comment or be unexported (golint)
- Line 24: warning: exported type Database should have comment or be unexported (golint)
- Line 29: warning: exported type Locale should have comment or be unexported (golint)
- Line 42: warning: exported type Category should have comment or be unexported (golint)
- Line 61: warning: exported function LoadDatabase should have comment or be unexported (golint)
-
go-locales/fdcc/tokenizer.go
- Line 11: warning: exported type TokenizerError should have comment or be unexported (golint)
- Line 24: warning: exported type TokenType should have comment or be unexported (golint)
- Line 27: warning: exported const TokenTypeIdentifier should have comment (or a comment on this block) or be unexported (golint)
- Line 35: warning: exported type Token should have comment or be unexported (golint)
- Line 44: warning: exported type Tokenizer should have comment or be unexported (golint)
- Line 50: warning: exported function NewTokenizer should have comment or be unexported (golint)
- Line 58: warning: exported method Tokenizer.Next should have comment or be unexported (golint)
- Line 200: warning: exported type Position should have comment or be unexported (golint)
- Line 205: warning: exported type Input should have comment or be unexported (golint)
- Line 212: warning: exported function NewInput should have comment or be unexported (golint)
- Line 216: warning: exported method Input.Peek should have comment or be unexported (golint)
- Line 225: warning: exported method Input.Next should have comment or be unexported (golint)
- Line 247: warning: exported method Input.Prev should have comment or be unexported (golint)
- Line 254: warning: exported method Input.Position 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!