Preparing report...

Report for tryffel.net/go/virtualpaper

(v0.0.0-20230325080403-00e2d0993bbc)

A+    Excellent!    Found 14 issues across 119 files

Tweet

gofmt94%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo94%

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.

    • process/rule.go
    • Line 524: warning: cyclomatic complexity 22 of function matchTextByDistance() is high (> 15) (gocyclo)
    • Line 129: warning: cyclomatic complexity 18 of function (*DocumentRule).MatchTest() is high (> 15) (gocyclo)
    • Line 297: warning: cyclomatic complexity 17 of function (*DocumentRule).extractDates() is high (> 15) (gocyclo)
    • Line 61: warning: cyclomatic complexity 17 of function (*DocumentRule).Match() is high (> 15) (gocyclo)
    • process/file.go
    • Line 183: warning: cyclomatic complexity 21 of function (*fileProcessor).processDocument() is high (> 15) (gocyclo)
    • Line 726: warning: cyclomatic complexity 17 of function (*fileProcessor).runRules() is high (> 15) (gocyclo)
    • models/rule.go
    • Line 169: warning: cyclomatic complexity 19 of function (*RuleCondition).Validate() is high (> 15) (gocyclo)
    • api/document.go
    • Line 274: warning: cyclomatic complexity 24 of function (*Api).uploadFile() is high (> 15) (gocyclo)
    • Line 696: warning: cyclomatic complexity 16 of function (*Api).bulkEditDocuments() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words