Preparing report...

Report for github.com/zu1k/she

A+    Excellent!    Found 20 issues across 35 files

Tweet

gofmt97%

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


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!


gocyclo97%

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.


golint42%

Golint is a linter for Go source code.

    • she/constant/version.go
    • Line 3: warning: exported const Name should have comment or be unexported (golint)
    • Line 6: warning: exported var Version should have comment or be unexported (golint)
    • she/pkg/source/bleveindex/creator.go
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 15: warning: exported function NewBleveIndex should have comment or be unexported (golint)
    • she/internal/processor/provider.go
    • Line 17: warning: exported function AddSource should have comment or be unexported (golint)
    • Line 26: warning: exported function ReadSourceFromDB should have comment or be unexported (golint)
    • Line 38: warning: comment on exported function SearchAllSource should be of the form "SearchAllSource ..." (golint)
    • she/pkg/source/base.go
    • Line 14: warning: exported type Source should have comment or be unexported (golint)
    • Line 20: warning: exported function Register should have comment or be unexported (golint)
    • Line 31: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • she/pkg/source/type.go
    • Line 3: warning: exported type Type should have comment or be unexported (golint)
    • Line 6: warning: exported const BleveIndex should have comment (or a comment on this block) or be unexported (golint)
    • she/pkg/index/bleveindex/column.go
    • Line 5: warning: exported type ColumnsInfo should have comment or be unexported (golint)
    • Line 7: warning: comment on exported type Column should be of the form "Column ..." (with optional leading article) (golint)
    • Line 14: warning: exported method Column.Parse should have comment or be unexported (golint)
    • she/pkg/tools/file.go
    • Line 14: warning: exported function OpenCSC should have comment or be unexported (golint)
    • Line 23: warning: exported function LineCounter should have comment or be unexported (golint)
    • Line 59: warning: exported function Path2Name should have comment or be unexported (golint)
    • Line 68: warning: exported function Path2Path should have comment or be unexported (golint)
    • she/persistence/source.go
    • Line 12: warning: comment on exported type Source should be of the form "Source ..." (with optional leading article) (golint)
    • Line 21: warning: exported function NewSource should have comment or be unexported (golint)
    • Line 36: warning: exported function FetchAllSource should have comment or be unexported (golint)
    • Line 44: warning: exported function GetSourceSByName should have comment or be unexported (golint)
    • Line 52: warning: exported function DeleteSourceByName should have comment or be unexported (golint)
    • Line 56: warning: exported function DeleteAllSource should have comment or be unexported (golint)
    • she/pkg/source/bleveindex/bleveidx.go
    • Line 14: warning: exported type Bleveidx should have comment or be unexported (golint)
    • Line 23: warning: exported function OpenBleveIdx should have comment or be unexported (golint)
    • Line 33: warning: exported method Bleveidx.Name should have comment or be unexported (golint)
    • Line 37: warning: exported method Bleveidx.Type should have comment or be unexported (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!