Preparing report...

Report for github.com/aos-dev/noah

A+    Excellent!    Found 10 issues across 13 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!


gocyclo92%

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.


golint30%

Golint is a linter for Go source code.

    • noah/task/copy.go
    • Line 21: warning: exported method Runner.HandleCopyDir should have comment or be unexported (golint)
    • Line 104: warning: exported method Runner.HandleCopyFile should have comment or be unexported (golint)
    • Line 167: warning: exported method Runner.HandleCopySingleFile should have comment or be unexported (golint)
    • Line 202: warning: exported method Runner.HandleCopyMultipartFile should have comment or be unexported (golint)
    • Line 281: warning: exported method Runner.HandleCopyMultipart should have comment or be unexported (golint)
    • noah/task/leader.go
    • Line 16: warning: exported type Leader should have comment or be unexported (golint)
    • Line 28: warning: exported function NewLeader should have comment or be unexported (golint)
    • Line 109: warning: exported method Leader.Handle should have comment or be unexported (golint)
    • Line 124: warning: exported function HandleAsLeader should have comment or be unexported (golint)
    • noah/task/subject.go
    • Line 5: warning: comment on exported function SubjectTasks should be of the form "SubjectTasks ..." (golint)
    • Line 11: warning: comment on exported function SubjectTaskReply should be of the form "SubjectTaskReply ..." (golint)
    • Line 16: warning: comment on exported function SubjectTask should be of the form "SubjectTask ..." (golint)
    • Line 22: warning: comment on exported function SubjectClockin should be of the form "SubjectClockin ..." (golint)
    • Line 27: warning: comment on exported function SubjectClockout should be of the form "SubjectClockout ..." (golint)
    • Line 32: warning: comment on exported function SubjectClockoutNotify should be of the form "SubjectClockoutNotify ..." (golint)
    • Line 37: warning: comment on exported function SubjectJobReply should be of the form "SubjectJobReply ..." (golint)
    • noah/task/worker.go
    • Line 20: warning: exported type Worker should have comment or be unexported (golint)
    • Line 32: warning: exported function NewWorker should have comment or be unexported (golint)
    • Line 98: warning: exported method Worker.Handle should have comment or be unexported (golint)
    • Line 124: warning: exported function HandleAsWorker should have comment or be unexported (golint)
    • noah/task/constants.go
    • Line 4: warning: exported const TypeCopyDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported const JobStatusSucceed should have comment (or a comment on this block) or be unexported (golint)
    • noah/task/manager.go
    • Line 24: warning: exported type Manager should have comment or be unexported (golint)
    • Line 44: warning: exported type ManagerConfig should have comment or be unexported (golint)
    • Line 52: warning: exported method ManagerConfig.GrpcAddr should have comment or be unexported (golint)
    • Line 56: warning: exported method ManagerConfig.QueueAddr should have comment or be unexported (golint)
    • Line 60: warning: exported function NewManager should have comment or be unexported (golint)
    • Line 127: warning: exported method Manager.Register should have comment or be unexported (golint)
    • Line 141: warning: exported method Manager.Elect should have comment or be unexported (golint)
    • noah/task/runner.go
    • Line 16: warning: exported type Runner should have comment or be unexported (golint)
    • Line 29: warning: exported function NewRunner should have comment or be unexported (golint)
    • Line 66: warning: exported method Runner.Handle should have comment or be unexported (golint)
    • Line 110: warning: exported method Runner.Async should have comment or be unexported (golint)
    • Line 130: warning: exported method Runner.Await should have comment or be unexported (golint)
    • Line 141: warning: exported method Runner.Sync should have comment or be unexported (golint)
    • Line 173: warning: exported method Runner.Finish should have comment or be unexported (golint)
    • noah/task/staff.go
    • Line 22: warning: exported type Staff should have comment or be unexported (golint)
    • Line 37: warning: exported type StaffConfig should have comment or be unexported (golint)
    • Line 43: warning: exported function NewStaff should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!