Preparing report...

Report for github.com/FuzzyMonkeyCo/monkey

A+    Excellent!    Found 16 issues across 87 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!


gocyclo90%

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.

    • monkey/main.go
    • Line 44: warning: cyclomatic complexity 43 of function actualMain() is high (> 15) (gocyclo)
    • monkey/pkg/starlarktruth/assert_that.go
    • Line 177: warning: cyclomatic complexity 25 of function (*T).containsExactlyElementsIn() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 19 of function isEqualTo() is high (> 15) (gocyclo)
    • Line 99: warning: cyclomatic complexity 16 of function containsExactly() is high (> 15) (gocyclo)

golint90%

Golint is a linter for Go source code.

    • monkey/pkg/modeler/interface.go
    • Line 16: warning: exported var ErrUnparsablePayload should have comment or be unexported (golint)
    • Line 60: warning: exported function NewError should have comment or be unexported (golint)
    • Line 68: warning: exported method Error.SetModelerName should have comment or be unexported (golint)
    • monkey/pkg/cwid/pwd_id.go
    • Line 19: warning: exported function EnvFile should have comment or be unexported (golint)
    • Line 20: warning: exported function LogFile should have comment or be unexported (golint)
    • Line 21: warning: exported function ScriptFile should have comment or be unexported (golint)
    • Line 23: warning: exported function MakePwdID should have comment or be unexported (golint)
    • monkey/pkg/runtime/inputs.go
    • Line 9: warning: exported method Runtime.InputsCount should have comment or be unexported (golint)
    • Line 18: warning: exported method Runtime.WriteAbsoluteReferences should have comment or be unexported (golint)
    • Line 27: warning: exported method Runtime.ValidateAgainstSchema should have comment or be unexported (golint)
    • monkey/pkg/update/github.go
    • Line 1: warning: package comment should be of the form "Package update ..." (golint)
    • Line 25: warning: exported type GithubRelease should have comment or be unexported (golint)
    • Line 31: warning: exported function NewGithubRelease should have comment or be unexported (golint)
    • Line 41: warning: exported method GithubRelease.LatestURL should have comment or be unexported (golint)
    • Line 45: warning: exported method GithubRelease.DownloadURL should have comment or be unexported (golint)
    • Line 49: warning: exported method GithubRelease.PeekLatestRelease should have comment or be unexported (golint)
    • Line 83: warning: comment on exported method GithubRelease.ReplaceCurrentRelease should be of the form "ReplaceCurrentRelease ..." (golint)
    • Line 184: warning: exported method GithubRelease.Executable should have comment or be unexported (golint)
    • monkey/pkg/starlarktruth/module.go
    • Line 55: warning: exported method T.Type should have comment or be unexported (golint)
    • Line 56: warning: exported method T.Freeze should have comment or be unexported (golint)
    • Line 57: warning: exported method T.Truth should have comment or be unexported (golint)
    • Line 58: warning: exported method T.Hash should have comment or be unexported (golint)
    • Line 59: warning: exported method T.Attr should have comment or be unexported (golint)
    • Line 60: warning: exported method T.AttrNames should have comment or be unexported (golint)
    • monkey/pkg/code/codes.go
    • Line 4: warning: exported const OK should have comment (or a comment on this block) or be unexported (golint)
    • Line 6: warning: comment on exported const FailedLint should be of the form "FailedLint ..." (golint)
    • Line 8: warning: comment on exported const FailedUpdate should be of the form "FailedUpdate ..." (golint)
    • Line 10: warning: comment on exported const FailedFmt should be of the form "FailedFmt ..." (golint)
    • Line 12: warning: comment on exported const FailedFuzz should be of the form "FailedFuzz ..." (golint)
    • Line 14: warning: comment on exported const FailedExec should be of the form "FailedExec ..." (golint)
    • Line 16: warning: comment on exported const FailedSchema should be of the form "FailedSchema ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!