Preparing report...

Report for github.com/zricethezav/gitleaks

(v1.25.1)

A+    Excellent!    Found 5 issues across 11 files

Tweet

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!


gofmt100%

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

No problems detected. Good job!


gocyclo63%

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.

    • src/options.go
    • Line 97: warning: cyclomatic complexity 21 of function (*Options).guard() is high (> 15) (gocyclo)
    • src/core.go
    • Line 40: warning: cyclomatic complexity 21 of function Run() is high (> 15) (gocyclo)
    • src/repo.go
    • Line 107: warning: cyclomatic complexity 37 of function (*RepoInfo).audit() is high (> 15) (gocyclo)
    • src/github.go
    • Line 94: warning: cyclomatic complexity 24 of function auditGithubRepos() is high (> 15) (gocyclo)

ineffassign72%

IneffAssign detects ineffectual assignments in Go code.

    • src/core.go
    • Line 72: warning: ineffectual assignment to err (ineffassign)
    • Line 72: warning: ineffectual assignment to err (ineffassign)
    • src/github.go
    • Line 211: warning: ineffectual assignment to err (ineffassign)
    • Line 216: warning: ineffectual assignment to err (ineffassign)
    • Line 224: warning: ineffectual assignment to err (ineffassign)
    • Line 211: warning: ineffectual assignment to err (ineffassign)
    • Line 216: warning: ineffectual assignment to err (ineffassign)
    • Line 224: warning: ineffectual assignment to err (ineffassign)
    • src/repo.go
    • Line 135: warning: ineffectual assignment to err (ineffassign)
    • Line 288: warning: ineffectual assignment to err (ineffassign)
    • Line 135: warning: ineffectual assignment to err (ineffassign)
    • Line 288: warning: ineffectual assignment to err (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell81%

Misspell Finds commonly misspelled English words

    • src/gitleaks_test.go
    • Line 783: warning: "gaurd" is a misspelling of "guard" (misspell)
    • Line 791: warning: "gaurd" is a misspelling of "guard" (misspell)
    • Line 805: warning: "Gaurd" is a misspelling of "Guard" (misspell)