Preparing report...

Report for github.com/GraphR00t/go-git

(v0.0.0-20240225171423-0db8616cd50a)

A+    Excellent!    Found 37 issues across 435 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!


gofmt95%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo95%

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.

    • worktree.go
    • Line 65: warning: cyclomatic complexity 18 of function (*Worktree).PullContext() is high (> 15) (gocyclo)
    • remote.go
    • Line 103: warning: cyclomatic complexity 32 of function (*Remote).PushContext() is high (> 15) (gocyclo)
    • Line 401: warning: cyclomatic complexity 24 of function (*Remote).fetch() is high (> 15) (gocyclo)
    • Line 1220: warning: cyclomatic complexity 19 of function (*Remote).updateLocalReferenceStorage() is high (> 15) (gocyclo)
    • Line 240: warning: cyclomatic complexity 16 of function (*Remote).addReachableTags() is high (> 15) (gocyclo)
    • plumbing/object/rename.go
    • Line 68: warning: cyclomatic complexity 34 of function (*renameDetector).detectExactRenames() is high (> 15) (gocyclo)
    • Line 408: warning: cyclomatic complexity 21 of function buildSimilarityMatrix() is high (> 15) (gocyclo)
    • repository.go
    • Line 1547: warning: cyclomatic complexity 27 of function (*Repository).ResolveRevision() is high (> 15) (gocyclo)
    • Line 883: warning: cyclomatic complexity 23 of function (*Repository).clone() is high (> 15) (gocyclo)
    • plumbing/object/commit.go
    • Line 186: warning: cyclomatic complexity 23 of function (*Commit).Decode() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 20 of function (*Commit).encode() is high (> 15) (gocyclo)
    • blame.go
    • Line 180: warning: cyclomatic complexity 39 of function (*blame).addBlames() is high (> 15) (gocyclo)
    • Line 409: warning: cyclomatic complexity 16 of function applyNeeds() is high (> 15) (gocyclo)
    • internal/revision/parser.go
    • Line 182: warning: cyclomatic complexity 32 of function (*Parser).validateFullRevision() is high (> 15) (gocyclo)
    • Line 393: warning: cyclomatic complexity 29 of function (*Parser).parseCaretBraces() is high (> 15) (gocyclo)
    • Line 252: warning: cyclomatic complexity 23 of function (*Parser).parseAt() is high (> 15) (gocyclo)
    • Line 602: warning: cyclomatic complexity 19 of function (*Parser).checkRefFormat() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!