Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
rdmamap/rdma_map.go
- Line 17: warning: exported const RdmaClassName should have comment (or a comment on this block) or be unexported (golint)
- Line 48: warning: comment on exported function GetRdmaDeviceList should be of the form "GetRdmaDeviceList ..." (golint)
- Line 156: warning: comment on exported function GetRdmaCharDevices should be of the form "GetRdmaCharDevices ..." (golint)
- Line 186: warning: comment on exported function GetPorts should be of the form "GetPorts ..." (golint)
- Line 336: warning: comment on exported function GetRdmaDeviceForNetdevice should be of the form "GetRdmaDeviceForNetdevice ..." (golint)
- Line 352: warning: comment on exported function IsRDmaDeviceForNetdevice should be of the form "IsRDmaDeviceForNetdevice ..." (golint)
- Line 359: warning: comment on exported function GetRdmaDevicesForPcidev should be of the form "GetRdmaDevicesForPcidev ..." (golint)
-
rdmamap/rdma_stats.go
- Line 18: warning: exported type RdmaStatEntry should have comment or be unexported (golint)
- Line 23: warning: exported type RdmaPortStats should have comment or be unexported (golint)
- Line 29: warning: exported type RdmaStats should have comment or be unexported (golint)
- Line 80: warning: comment on exported function GetRdmaSysfsStats should be of the form "GetRdmaSysfsStats ..." (golint)
- Line 90: warning: comment on exported function GetRdmaSysfsHwStats should be of the form "GetRdmaSysfsHwStats ..." (golint)
- Line 100: warning: comment on exported function GetRdmaSysfsAllStats should be of the form "GetRdmaSysfsAllStats ..." (golint)
- Line 120: warning: comment on exported function GetRdmaSysfsAllPortsStats should be of the form "GetRdmaSysfsAllPortsStats ..." (golint)
- Line 168: warning: comment on exported function GetDockerContainerRdmaStats should be of the form "GetDockerContainerRdmaStats ..." (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!