Preparing report...

Report for github.com/axetroy/fslint

A    Great!    Found 11 issues across 16 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

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!


gocyclo81%

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.

    • fslint/fslint.go
    • Line 19: warning: cyclomatic complexity 32 of function handleMatchFile() is high (> 15) (gocyclo)

golint31%

Golint is a linter for Go source code.

    • fslint/internal/char_state/char.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 16: warning: exported type Char should have comment or be unexported (golint)
    • Line 22: warning: exported method Char.Is should have comment or be unexported (golint)
    • Line 43: warning: exported method Char.IsCommonString should have comment or be unexported (golint)
    • Line 49: warning: exported method Char.Val should have comment or be unexported (golint)
    • Line 53: warning: exported method Char.Index should have comment or be unexported (golint)
    • Line 57: warning: exported method Char.Prev should have comment or be unexported (golint)
    • Line 57: warning: receiver name s should be consistent with previous receiver name c for Char (golint)
    • Line 71: warning: exported method Char.Next should have comment or be unexported (golint)
    • Line 71: warning: receiver name s should be consistent with previous receiver name c for Char (golint)
    • fslint/config.go
    • Line 20: warning: exported type Mode should have comment or be unexported (golint)
    • Line 21: warning: exported type Level should have comment or be unexported (golint)
    • Line 25: warning: exported const ModePascalCase should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported var AllMode should have comment or be unexported (golint)
    • Line 49: warning: exported type Config should have comment or be unexported (golint)
    • Line 54: warning: exported type Selector should have comment or be unexported (golint)
    • Line 182: warning: exported function NewConfig should have comment or be unexported (golint)
    • fslint/result.go
    • Line 5: warning: exported type LintResult should have comment or be unexported (golint)
    • Line 11: warning: exported type Results should have comment or be unexported (golint)
    • Line 15: warning: exported function NewResults should have comment or be unexported (golint)
    • Line 31: warning: exported method Results.Append should have comment or be unexported (golint)
    • Line 37: warning: exported method Results.WarnCount should have comment or be unexported (golint)
    • Line 48: warning: exported method Results.ErrorCount should have comment or be unexported (golint)
    • Line 59: warning: exported method Results.Values should have comment or be unexported (golint)
    • fslint/internal/char_state/state.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 3: warning: exported type State should have comment or be unexported (golint)
    • Line 8: warning: exported method State.PreviewPrev should have comment or be unexported (golint)
    • Line 22: warning: exported method State.Prev should have comment or be unexported (golint)
    • Line 38: warning: exported method State.Next should have comment or be unexported (golint)
    • Line 54: warning: exported method State.PreviewNext should have comment or be unexported (golint)
    • Line 68: warning: exported method State.Index should have comment or be unexported (golint)
    • Line 72: warning: exported method State.Len should have comment or be unexported (golint)
    • Line 76: warning: exported function NewState should have comment or be unexported (golint)
    • fslint/cmd/fslint/main.go
    • Line 82: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!