Preparing report...

Report for github.com/scottdware/go-panos

A+    Excellent!    Found 7 issues across 8 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo25%

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.

    • go-panos/objects.go
    • Line 438: warning: cyclomatic complexity 91 of function (*PaloAlto).RenameObject() is high (> 15) (gocyclo)
    • Line 989: warning: cyclomatic complexity 90 of function (*PaloAlto).TagObject() is high (> 15) (gocyclo)
    • Line 1291: warning: cyclomatic complexity 81 of function (*PaloAlto).RemoveTagFromObject() is high (> 15) (gocyclo)
    • Line 2255: warning: cyclomatic complexity 75 of function (*PaloAlto).CreateObjectsFromCsv() is high (> 15) (gocyclo)
    • Line 1922: warning: cyclomatic complexity 51 of function (*PaloAlto).ApplySecurityProfile() is high (> 15) (gocyclo)
    • Line 342: warning: cyclomatic complexity 25 of function (*PaloAlto).EditGroup() is high (> 15) (gocyclo)
    • Line 1763: warning: cyclomatic complexity 23 of function (*PaloAlto).ApplyLogForwardingProfile() is high (> 15) (gocyclo)
    • Line 737: warning: cyclomatic complexity 20 of function (*PaloAlto).CreateExternalDynamicList() is high (> 15) (gocyclo)
    • Line 1565: warning: cyclomatic complexity 20 of function (*PaloAlto).TagRule() is high (> 15) (gocyclo)
    • Line 1646: warning: cyclomatic complexity 19 of function (*PaloAlto).RemoveTagFromRule() is high (> 15) (gocyclo)
    • Line 230: warning: cyclomatic complexity 19 of function (*PaloAlto).EditURLCategory() is high (> 15) (gocyclo)
    • Line 900: warning: cyclomatic complexity 16 of function (*PaloAlto).CreateTag() is high (> 15) (gocyclo)
    • go-panos/policy.go
    • Line 298: warning: cyclomatic complexity 39 of function (*PaloAlto).CreateRule() is high (> 15) (gocyclo)
    • Line 139: warning: cyclomatic complexity 23 of function (*PaloAlto).Policy() is high (> 15) (gocyclo)
    • go-panos/network.go
    • Line 252: warning: cyclomatic complexity 38 of function (*PaloAlto).CreateInterface() is high (> 15) (gocyclo)
    • Line 1310: warning: cyclomatic complexity 21 of function (*PaloAlto).CreateIKEGateway() is high (> 15) (gocyclo)
    • Line 414: warning: cyclomatic complexity 18 of function (*PaloAlto).DeleteInterface() is high (> 15) (gocyclo)
    • go-panos/address.go
    • Line 232: warning: cyclomatic complexity 19 of function (*PaloAlto).CreateAddressGroup() is high (> 15) (gocyclo)
    • Line 164: warning: cyclomatic complexity 18 of function (*PaloAlto).CreateAddress() is high (> 15) (gocyclo)
    • go-panos/service.go
    • Line 133: warning: cyclomatic complexity 17 of function (*PaloAlto).CreateService() is high (> 15) (gocyclo)
    • Line 190: warning: cyclomatic complexity 16 of function (*PaloAlto).CreateServiceGroup() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.


misspell75%

Misspell Finds commonly misspelled English words

    • go-panos/objects.go
    • Line 28: warning: "Recurrance" is a misspelling of "Recurrence" (misspell)
    • Line 32: warning: "Recurrance" is a misspelling of "Recurrence" (misspell)
    • Line 734: warning: "recurrance" is a misspelling of "recurrence" (misspell)
    • Line 734: warning: "Recurrance" is a misspelling of "Recurrence" (misspell)
    • Line 737: warning: "recurrance" is a misspelling of "recurrence" (misspell)
    • Line 737: warning: "Recurrance" is a misspelling of "Recurrence" (misspell)
    • Line 1913: warning: "teh" is a misspelling of "the" (misspell)