Preparing report...

Report for github.com/networkplumbing/go-nft

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


gocyclo87%

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.


golint50%

Golint is a linter for Go source code.

    • go-nft/nft/schema/rule.go
    • Line 27: warning: exported type Rule should have comment or be unexported (golint)
    • Line 37: warning: exported type Statement should have comment or be unexported (golint)
    • Line 42: warning: exported type Verdict should have comment or be unexported (golint)
    • Line 48: warning: exported type SimpleVerdict should have comment or be unexported (golint)
    • Line 55: warning: exported type ToTarget should have comment or be unexported (golint)
    • Line 59: warning: exported type Match should have comment or be unexported (golint)
    • Line 65: warning: exported type Expression should have comment or be unexported (golint)
    • Line 77: warning: exported type Payload should have comment or be unexported (golint)
    • Line 139: warning: exported method Statement.MarshalJSON should have comment or be unexported (golint)
    • Line 171: warning: exported method Statement.UnmarshalJSON should have comment or be unexported (golint)
    • Line 192: warning: exported method Expression.MarshalJSON should have comment or be unexported (golint)
    • Line 212: warning: exported method Expression.UnmarshalJSON should have comment or be unexported (golint)
    • Line 246: warning: exported function Accept should have comment or be unexported (golint)
    • Line 250: warning: exported function Continue should have comment or be unexported (golint)
    • Line 254: warning: exported function Drop should have comment or be unexported (golint)
    • Line 258: warning: exported function Return should have comment or be unexported (golint)
    • go-nft/nft/schema/schema.go
    • Line 26: warning: exported type Root should have comment or be unexported (golint)
    • Line 32: warning: exported type Objects should have comment or be unexported (golint)
    • Line 39: warning: exported method Objects.MarshalJSON should have comment or be unexported (golint)
    • Line 64: warning: exported type Nftable should have comment or be unexported (golint)
    • Line 76: warning: exported type Metainfo should have comment or be unexported (golint)
    • go-nft/nft/chain.go
    • Line 26: warning: exported type ChainType should have comment or be unexported (golint)
    • Line 27: warning: exported type ChainHook should have comment or be unexported (golint)
    • Line 28: warning: exported type ChainPolicy should have comment or be unexported (golint)
    • go-nft/nft/table.go
    • Line 24: warning: exported type AddressFamily should have comment or be unexported (golint)
    • Line 36: warning: exported type TableAction should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!