Preparing report...

Report for github.com/digitalocean/go-openvswitch

A+    Excellent!    Found 6 issues across 56 files

Tweet

gofmt98%

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!


golint96%

Golint is a linter for Go source code.

    • go-openvswitch/ovsnl/internal/ovsh/const.go
    • Line 145: warning: don't use underscores in Go names; const __DpAttrMax should be _DpAttrMax (golint)
    • Line 175: warning: don't use underscores in Go names; const __PacketAttrMax should be _PacketAttrMax (golint)
    • Line 201: warning: don't use underscores in Go names; const __VportTypeMax should be _VportTypeMax (golint)
    • Line 219: warning: don't use underscores in Go names; const __VportAttrMax should be _VportAttrMax (golint)
    • Line 228: warning: don't use underscores in Go names; const __VxlanExtMax should be _VxlanExtMax (golint)
    • Line 239: warning: don't use underscores in Go names; const __TunnelAttrMax should be _TunnelAttrMax (golint)
    • Line 288: warning: don't use underscores in Go names; const __KeyAttrMax should be _KeyAttrMax (golint)
    • Line 312: warning: don't use underscores in Go names; const __TunnelKeyAttrMax should be _TunnelKeyAttrMax (golint)
    • Line 323: warning: don't use underscores in Go names; const __FragTypeMax should be _FragTypeMax (golint)
    • Line 335: warning: don't use underscores in Go names; const __NshKeyAttrMax should be _NshKeyAttrMax (golint)
    • Line 355: warning: don't use underscores in Go names; const __FlowAttrMax should be _FlowAttrMax (golint)
    • Line 366: warning: don't use underscores in Go names; const __SampleAttrMax should be _SampleAttrMax (golint)
    • Line 379: warning: don't use underscores in Go names; const __UserspaceAttrMax should be _UserspaceAttrMax (golint)
    • Line 404: warning: don't use underscores in Go names; const __CtAttrMax should be _CtAttrMax (golint)
    • Line 422: warning: don't use underscores in Go names; const __NatAttrMax should be _NatAttrMax (golint)
    • Line 450: warning: don't use underscores in Go names; const __ActionAttrMax should be _ActionAttrMax (golint)
    • Line 480: warning: don't use underscores in Go names; const __MeterAttrMax should be _MeterAttrMax (golint)
    • Line 493: warning: don't use underscores in Go names; const __BandAttrMax should be _BandAttrMax (golint)
    • Line 503: warning: don't use underscores in Go names; const __MeterBandTypeMax should be _MeterBandTypeMax (golint)
    • go-openvswitch/ovsnl/internal/ovsh/struct.go
    • Line 20: warning: exported type Header should have comment or be unexported (golint)
    • Line 24: warning: exported type DPStats should have comment or be unexported (golint)
    • Line 31: warning: exported type DPMegaflowStats should have comment or be unexported (golint)
    • Line 32: warning: don't use underscores in Go names; struct field Mask_hit should be MaskHit (golint)
    • Line 39: warning: exported type VportStats should have comment or be unexported (golint)
    • Line 40: warning: don't use underscores in Go names; struct field Rx_packets should be RxPackets (golint)
    • Line 41: warning: don't use underscores in Go names; struct field Tx_packets should be TxPackets (golint)
    • Line 42: warning: don't use underscores in Go names; struct field Rx_bytes should be RxBytes (golint)
    • Line 43: warning: don't use underscores in Go names; struct field Tx_bytes should be TxBytes (golint)
    • Line 44: warning: don't use underscores in Go names; struct field Rx_errors should be RxErrors (golint)
    • Line 45: warning: don't use underscores in Go names; struct field Tx_errors should be TxErrors (golint)
    • Line 46: warning: don't use underscores in Go names; struct field Rx_dropped should be RxDropped (golint)
    • Line 47: warning: don't use underscores in Go names; struct field Tx_dropped should be TxDropped (golint)
    • Line 50: warning: exported type FlowStats should have comment or be unexported (golint)

gocyclo92%

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.


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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!