Preparing report...

Report for github.com/opencars/operations

A+    Excellent!    Found 19 issues across 43 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!


gocyclo100%

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!


golint55%

Golint is a linter for Go source code.

    • operations/pkg/store/sqlstore/resource_repository.go
    • Line 16: warning: exported method ResourceRepository.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method ResourceRepository.Update should have comment or be unexported (golint)
    • Line 57: warning: exported method ResourceRepository.FindByUID should have comment or be unexported (golint)
    • Line 78: warning: exported method ResourceRepository.All should have comment or be unexported (golint)
    • operations/pkg/domain/parsing/algorithm.go
    • Line 15: warning: exported const DefaultMappers should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type MapReduce should have comment or be unexported (golint)
    • Line 36: warning: exported function NewMapReduce should have comment or be unexported (golint)
    • Line 49: warning: exported method MapReduce.Parse should have comment or be unexported (golint)
    • operations/pkg/domain/parsing/types.go
    • Line 9: warning: exported type Entity should have comment or be unexported (golint)
    • Line 11: warning: exported type Mapper should have comment or be unexported (golint)
    • Line 15: warning: exported type Reducer should have comment or be unexported (golint)
    • Line 19: warning: exported type Shuffler should have comment or be unexported (golint)
    • operations/pkg/domain/error.go
    • Line 3: warning: exported type Error should have comment or be unexported (golint)
    • Line 7: warning: exported function NewError should have comment or be unexported (golint)
    • Line 18: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • operations/pkg/domain/store.go
    • Line 5: warning: exported type Store should have comment or be unexported (golint)
    • Line 10: warning: exported type ResourceRepository should have comment or be unexported (golint)
    • Line 17: warning: exported type OperationRepository should have comment or be unexported (golint)
    • Line 22: warning: exported type ReadOperationRepository should have comment or be unexported (golint)
    • Line 26: warning: exported type WriteOperationRepository should have comment or be unexported (golint)
    • operations/pkg/domain/user/service.go
    • Line 11: warning: exported type Service should have comment or be unexported (golint)
    • Line 15: warning: exported function NewService should have comment or be unexported (golint)
    • Line 21: warning: exported method Service.FindByNumber should have comment or be unexported (golint)
    • operations/pkg/bulkreader/bulkreader.go
    • Line 7: warning: exported type Reader should have comment or be unexported (golint)
    • Line 11: warning: exported type BulkReader should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 21: warning: exported method BulkReader.ReadBulk should have comment or be unexported (golint)
    • operations/pkg/domain/parsing/options.go
    • Line 3: warning: exported method MapReduce.WithMapper should have comment or be unexported (golint)
    • Line 8: warning: exported method MapReduce.WithReducer should have comment or be unexported (golint)
    • Line 13: warning: exported method MapReduce.WithsShuffler 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!