Preparing report...

Report for github.com/bruceauyeung/vcs

(v0.0.0-20250628044335-b3eff852395d)

A+    Excellent!    Found 8 issues across 17 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!


gocyclo70%

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.

    • git_test.go
    • Line 20: warning: cyclomatic complexity 57 of function TestGit() is high (> 15) (gocyclo)
    • Line 362: warning: cyclomatic complexity 28 of function TestGitSubmoduleHandling() is high (> 15) (gocyclo)
    • Line 487: warning: cyclomatic complexity 23 of function TestGitSubmoduleHandling2() is high (> 15) (gocyclo)
    • bzr_test.go
    • Line 20: warning: cyclomatic complexity 51 of function TestBzr() is high (> 15) (gocyclo)
    • hg_test.go
    • Line 18: warning: cyclomatic complexity 50 of function TestHg() is high (> 15) (gocyclo)
    • svn_test.go
    • Line 19: warning: cyclomatic complexity 46 of function TestSvn() is high (> 15) (gocyclo)
    • vcs_remote_lookup.go
    • Line 139: warning: cyclomatic complexity 22 of function detectVcsFromURL() is high (> 15) (gocyclo)
    • Line 267: warning: cyclomatic complexity 17 of function parseImportFromBody() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words

    • bzr.go
    • Line 334: warning: "adres" is a misspelling of "address" (misspell)