Preparing report...

Report for github.com/raspi/heksa

A    Great!    Found 29 issues across 32 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!


gocyclo90%

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.

    • heksa/main.go
    • Line 37: warning: cyclomatic complexity 24 of function getParams() is high (> 15) (gocyclo)

golint12%

Golint is a linter for Go source code.

    • heksa/pkg/reader/byteFormatters/decimal/dec.go
    • Line 8: warning: exported type DecimalPrinter should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 15: warning: exported method DecimalPrinter.Print should have comment or be unexported (golint)
    • Line 19: warning: exported method DecimalPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 23: warning: exported method DecimalPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/bit/bit.go
    • Line 11: warning: exported type BitPrinter should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 18: warning: exported method BitPrinter.Print should have comment or be unexported (golint)
    • Line 34: warning: exported method BitPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 38: warning: exported method BitPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/offsetFormatters/octal/octal.go
    • Line 14: warning: exported type OctalPrinter should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported method OctalPrinter.GetFormatWidth should have comment or be unexported (golint)
    • Line 40: warning: exported method OctalPrinter.Print should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/hex/hex.go
    • Line 10: warning: exported type HexPrinter should have comment or be unexported (golint)
    • Line 13: warning: exported function New should have comment or be unexported (golint)
    • Line 17: warning: exported method HexPrinter.Print should have comment or be unexported (golint)
    • Line 21: warning: exported method HexPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 25: warning: exported method HexPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/color/config.go
    • Line 14: warning: exported const Clear should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported function GetColorGroupColorDefaults should have comment or be unexported (golint)
    • Line 67: warning: exported function GetColors should have comment or be unexported (golint)
    • heksa/pkg/reader/offsetFormatters/human/human.go
    • Line 11: warning: exported type HumanPrinter should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported method HumanPrinter.GetFormatWidth should have comment or be unexported (golint)
    • Line 41: warning: exported method HumanPrinter.Print should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/decWithAscii/dec_with_ascii.go
    • Line 1: warning: don't use MixedCaps in package name; decWithAscii should be decwithascii (golint)
    • Line 12: warning: exported type DecimalWithAsciiPrinter should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method DecimalWithAsciiPrinter.Print should have comment or be unexported (golint)
    • Line 30: warning: exported method DecimalWithAsciiPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 34: warning: exported method DecimalWithAsciiPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/offsetFormatters/percent/percent.go
    • Line 11: warning: exported type PercentPrinter should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method PercentPrinter.GetFormatWidth should have comment or be unexported (golint)
    • Line 39: warning: exported method PercentPrinter.Print should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/ascii/ascii.go
    • Line 11: warning: exported function PrintSpecial should have comment or be unexported (golint)
    • Line 15: warning: exported type AsciiPrinter should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 22: warning: exported method AsciiPrinter.Print should have comment or be unexported (golint)
    • Line 26: warning: exported method AsciiPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 30: warning: exported method AsciiPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/main.go
    • Line 20: warning: comment on exported var VERSION should be of the form "VERSION ..." (golint)
    • Line 22: warning: exported var BUILD should have comment or be unexported (golint)
    • Line 27: warning: exported const AUTHOR should have comment (or a comment on this block) or be unexported (golint)
    • heksa/pkg/reader/offsetFormatters/hex/hex.go
    • Line 14: warning: exported type HexPrinter should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method HexPrinter.GetFormatWidth should have comment or be unexported (golint)
    • Line 39: warning: exported method HexPrinter.Print should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/block/block.go
    • Line 8: warning: exported type BlockPrinter should have comment or be unexported (golint)
    • Line 12: warning: exported function New should have comment or be unexported (golint)
    • Line 18: warning: exported method BlockPrinter.Print should have comment or be unexported (golint)
    • Line 22: warning: exported method BlockPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 26: warning: exported method BlockPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/offsetFormatters/decimal/decimal.go
    • Line 14: warning: exported type DecimalPrinter should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method DecimalPrinter.GetFormatWidth should have comment or be unexported (golint)
    • Line 39: warning: exported method DecimalPrinter.Print should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/octal/oct.go
    • Line 8: warning: exported type OctalPrinter should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 15: warning: exported method OctalPrinter.Print should have comment or be unexported (golint)
    • Line 19: warning: exported method OctalPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 23: warning: exported method OctalPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/bitWithDecimal/bit_with_dec.go
    • Line 1: warning: don't use MixedCaps in package name; bitWithDecimal should be bitwithdecimal (golint)
    • Line 12: warning: exported type BitWithDecimalPrinter should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method BitWithDecimalPrinter.Print should have comment or be unexported (golint)
    • Line 34: warning: exported method BitWithDecimalPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 38: warning: exported method BitWithDecimalPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/bitWithHex/bit_with_hex.go
    • Line 1: warning: don't use MixedCaps in package name; bitWithHex should be bitwithhex (golint)
    • Line 12: warning: exported type BitWithHexPrinter should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method BitWithHexPrinter.Print should have comment or be unexported (golint)
    • Line 34: warning: exported method BitWithHexPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 38: warning: exported method BitWithHexPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/bitWithAscii/bit_with_ascii.go
    • Line 1: warning: don't use MixedCaps in package name; bitWithAscii should be bitwithascii (golint)
    • Line 12: warning: exported type BitWithAsciiPrinter should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method BitWithAsciiPrinter.Print should have comment or be unexported (golint)
    • Line 30: warning: exported method BitWithAsciiPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 34: warning: exported method BitWithAsciiPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/hexWithAscii/hex_with_ascii.go
    • Line 1: warning: don't use MixedCaps in package name; hexWithAscii should be hexwithascii (golint)
    • Line 12: warning: exported type HexWithAsciiPrinter should have comment or be unexported (golint)
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method HexWithAsciiPrinter.Print should have comment or be unexported (golint)
    • Line 30: warning: exported method HexWithAsciiPrinter.GetPrintSize should have comment or be unexported (golint)
    • Line 34: warning: exported method HexWithAsciiPrinter.UseSplitter should have comment or be unexported (golint)
    • heksa/pkg/reader/byteFormatters/base/iface.go
    • Line 7: warning: exported type ByteFormatter should have comment or be unexported (golint)
    • Line 16: warning: exported type FormatterGroup should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method FormatterGroup.Print should have comment or be unexported (golint)
    • heksa/default_color_config.go
    • Line 3: warning: comment on exported const DefaultByteColorGroups should be of the form "DefaultByteColorGroups ..." (golint)
    • Line 16: warning: comment on exported const DefaultGroupColors should be of the form "DefaultGroupColors ..." (golint)
    • heksa/pkg/reader/offset.go
    • Line 15: warning: exported type OffsetFormatter should have comment or be unexported (golint)
    • Line 18: warning: exported const OffsetHex should have comment (or a comment on this block) or be unexported (golint)
    • Line 74: warning: exported function GetFromOffsetFormatter should have comment or be unexported (golint)
    • heksa/pkg/reader/reader.go
    • Line 12: warning: exported type ReaderColors should have comment or be unexported (golint)
    • Line 19: warning: exported type Reader should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 160: warning: exported method Reader.GetReadBytes should have comment or be unexported (golint)
    • heksa/pkg/reader/viewers.go
    • Line 21: warning: exported type ByteFormatter should have comment or be unexported (golint)
    • Line 24: warning: exported const ViewHex should have comment (or a comment on this block) or be unexported (golint)
    • Line 52: warning: comment on exported function GetViewers should be of the form "GetViewers ..." (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!