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.
-
go-max7219/device.go
- Line 11: warning: comment on exported type Font should be of the form "Font ..." (with optional leading article) (golint)
- Line 24: warning: exported type Max7219Reg should have comment or be unexported (golint)
- Line 27: warning: exported const MAX7219_REG_NOOP should have comment (or a comment on this block) or be unexported (golint)
- Line 44: warning: exported const MAX7219_DIGIT_COUNT should have comment or be unexported (golint)
- Line 47: warning: exported type Device should have comment or be unexported (golint)
- Line 53: warning: exported function NewDevice should have comment or be unexported (golint)
- Line 59: warning: exported method Device.GetCascadeCount should have comment or be unexported (golint)
- Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 63: warning: exported method Device.GetLedLineCount should have comment or be unexported (golint)
- Line 63: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 67: warning: exported method Device.Open should have comment or be unexported (golint)
- Line 67: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 84: warning: exported method Device.Close should have comment or be unexported (golint)
- Line 84: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 88: warning: exported method Device.Brightness should have comment or be unexported (golint)
- Line 88: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 92: warning: exported method Device.Command should have comment or be unexported (golint)
- Line 92: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 103: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 121: warning: exported method Device.SetBufferLine should have comment or be unexported (golint)
- Line 121: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 133: warning: exported method Device.Flush should have comment or be unexported (golint)
- Line 133: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 143: warning: exported method Device.Clear should have comment or be unexported (golint)
- Line 143: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 162: warning: exported method Device.ClearAll should have comment or be unexported (golint)
- Line 162: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 172: warning: exported method Device.ScrollLeft should have comment or be unexported (golint)
- Line 172: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 184: warning: exported method Device.ScrollRight should have comment or be unexported (golint)
- Line 184: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
-
go-max7219/fonts.go
- Line 9: warning: exported var FontCP437 should have comment or be unexported (golint)
- Line 12: warning: comment on exported var FontTiny should be of the form "FontTiny ..." (golint)
- Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 294: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 304: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 569: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 578: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 1122: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 1131: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 1396: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 1405: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 1670: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 1679: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 1944: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 1955: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
-
go-max7219/matrix.go
- Line 13: warning: exported type Matrix should have comment or be unexported (golint)
- Line 17: warning: exported function NewMatrix should have comment or be unexported (golint)
- Line 23: warning: exported method Matrix.Open should have comment or be unexported (golint)
- Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 27: warning: exported method Matrix.Close should have comment or be unexported (golint)
- Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 128: warning: comment on exported method Matrix.OutputChar should be of the form "OutputChar ..." (golint)
- Line 131: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 150: warning: comment on exported method Matrix.OutputAsciiCode should be of the form "OutputAsciiCode ..." (golint)
- Line 151: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
- Line 182: warning: comment on exported method Matrix.SlideMessage should be of the form "SlideMessage ..." (golint)
- Line 183: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (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!