Preparing report...

Report for github.com/santhosh-tekuri/jsonschema/v6

(v6.0.0-beta1)

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo75%

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.

    • format.go
    • Line 639: warning: cyclomatic complexity 36 of function validateSemver() is high (> 15) (gocyclo)
    • Line 393: warning: cyclomatic complexity 32 of function validateTime() is high (> 15) (gocyclo)
    • Line 303: warning: cyclomatic complexity 27 of function validateEmail() is high (> 15) (gocyclo)
    • Line 147: warning: cyclomatic complexity 21 of function validateDuration() is high (> 15) (gocyclo)
    • Line 43: warning: cyclomatic complexity 17 of function validateJSONPointer() is high (> 15) (gocyclo)
    • Line 259: warning: cyclomatic complexity 16 of function validateHostname() is high (> 15) (gocyclo)
    • output_test.go
    • Line 15: warning: cyclomatic complexity 28 of function testOutputDir() is high (> 15) (gocyclo)
    • objcompiler.go
    • Line 86: warning: cyclomatic complexity 28 of function (*objCompiler).compileDraft4() is high (> 15) (gocyclo)
    • Line 19: warning: cyclomatic complexity 19 of function (*objCompiler).compile() is high (> 15) (gocyclo)
    • roots.go
    • Line 81: warning: cyclomatic complexity 27 of function (*roots)._collectResources() is high (> 15) (gocyclo)
    • util.go
    • Line 284: warning: cyclomatic complexity 22 of function equals() is high (> 15) (gocyclo)
    • root.go
    • Line 82: warning: cyclomatic complexity 16 of function (*root).collectAnchors() is high (> 15) (gocyclo)
    • validator.go
    • Line 70: warning: cyclomatic complexity 38 of function (*validator).validate() is high (> 15) (gocyclo)
    • Line 198: warning: cyclomatic complexity 38 of function (*validator).objValidate() is high (> 15) (gocyclo)
    • Line 324: warning: cyclomatic complexity 32 of function (*validator).arrValidate() is high (> 15) (gocyclo)
    • Line 552: warning: cyclomatic complexity 23 of function (*validator).condValidate() is high (> 15) (gocyclo)
    • Line 432: warning: cyclomatic complexity 21 of function (*validator).strValidate() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell92%

Misspell Finds commonly misspelled English words

    • root.go
    • Line 60: warning: "resovles" is a misspelling of "resolves" (misspell)