Preparing report...

Report for github.com/stitchfix/codeowners-validator

(v0.6.14)

A+    Excellent!    Found 17 issues across 35 files

Tweet

gofmt88%

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.


golint60%

Golint is a linter for Go source code.

    • internal/check/api.go
    • Line 20: warning: exported type Issue should have comment or be unexported (golint)
    • Line 26: warning: exported type Input should have comment or be unexported (golint)
    • Line 31: warning: exported type Output should have comment or be unexported (golint)
    • Line 35: warning: exported type OutputBuilder should have comment or be unexported (golint)
    • Line 41: warning: exported type ReportIssueOpt should have comment or be unexported (golint)
    • Line 43: warning: exported function WithSeverity should have comment or be unexported (golint)
    • Line 49: warning: exported function WithEntry should have comment or be unexported (golint)
    • Line 55: warning: exported method OutputBuilder.ReportIssue should have comment or be unexported (golint)
    • Line 76: warning: exported method OutputBuilder.Output should have comment or be unexported (golint)
    • Line 83: warning: exported type SeverityType should have comment or be unexported (golint)
    • Line 86: warning: exported const Error should have comment (or a comment on this block) or be unexported (golint)
    • internal/check/not_owned_file.go
    • Line 18: warning: exported type NotOwnedFileConfig should have comment or be unexported (golint)
    • Line 22: warning: exported type NotOwnedFile should have comment or be unexported (golint)
    • Line 26: warning: exported function NewNotOwnedFile should have comment or be unexported (golint)
    • Line 37: warning: exported method NotOwnedFile.Check should have comment or be unexported (golint)
    • Line 99: warning: exported method NotOwnedFile.AppendToGitignoreFile should have comment or be unexported (golint)
    • Line 122: warning: exported method NotOwnedFile.GitRemoveIgnoredFiles should have comment or be unexported (golint)
    • Line 138: warning: exported method NotOwnedFile.GitCheckStatus should have comment or be unexported (golint)
    • Line 156: warning: exported method NotOwnedFile.GitResetCurrentBranch should have comment or be unexported (golint)
    • Line 168: warning: exported method NotOwnedFile.GitListFiles should have comment or be unexported (golint)
    • internal/github/client.go
    • Line 14: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 21: warning: exported function NewClient should have comment or be unexported (golint)
    • pkg/version/version.go
    • Line 26: warning: exported function Init should have comment or be unexported (golint)
    • Line 45: warning: exported function ShouldPrintVersion should have comment or be unexported (golint)
    • Line 49: warning: exported function PrintVersion should have comment or be unexported (golint)
    • internal/printer/tty.go
    • Line 18: warning: exported type TTYPrinter should have comment or be unexported (golint)
    • Line 22: warning: exported method TTYPrinter.PrintCheckResult should have comment or be unexported (golint)
    • Line 58: warning: exported method TTYPrinter.PrintSummary should have comment or be unexported (golint)
    • internal/check/file_exists.go
    • Line 15: warning: exported type FileExist should have comment or be unexported (golint)
    • Line 17: warning: exported function NewFileExist should have comment or be unexported (golint)
    • Line 21: warning: exported method FileExist.Check should have comment or be unexported (golint)
    • Line 58: warning: exported method FileExist.Name 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!