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.
-
passcrux/cmd/root.go
- Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
- Line 17: warning: exported var Version should have comment or be unexported (golint)
- Line 20: warning: exported function PrintVersionAndQuit should have comment or be unexported (golint)
-
passcrux/cmd/split.go
- Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
- Line 23: warning: don't use underscores in Go names; var stdin_struct should be stdinStruct (golint)
- Line 57: warning: exported function ParseSplitSettings should have comment or be unexported (golint)
- Line 90: warning: exported function PasscruxSplit should have comment or be unexported (golint)
-
passcrux/common/abc16/abc16.go
- Line 1: warning: package comment should be of the form "Package abc16 ..." (golint)
- Line 65: warning: comment on exported function EncodeAlt should be of the form "EncodeAlt ..." (golint)
- Line 150: warning: comment on exported function EncodeToStringAlt should be of the form "EncodeToStringAlt ..." (golint)
-
passcrux/common/common.go
- Line 15: warning: exported type EncodingType should have comment or be unexported (golint)
- Line 24: warning: exported const EncodeRaw should have comment (or a comment on this block) or be unexported (golint)
- Line 33: warning: exported type SplitSettings should have comment or be unexported (golint)
- Line 37: warning: exported type FormatSettings should have comment or be unexported (golint)
- Line 45: warning: exported type StdInContainer should have comment or be unexported (golint)
- Line 47: warning: don't use underscores in Go names; struct field Has_stdin should be HasStdin (golint)
- Line 50: warning: exported function LogIfFatal should have comment or be unexported (golint)
- Line 56: warning: exported function ParseFormatSettings should have comment or be unexported (golint)
- Line 111: warning: exported function Get_stdin should have comment or be unexported (golint)
- Line 111: warning: don't use underscores in Go names; func Get_stdin should be GetStdin (golint)
- Line 116: warning: don't use underscores in Go names; var out_struct should be outStruct (golint)
- Line 141: warning: comment on exported function ReadPassword should be of the form "ReadPassword ..." (golint)
-
passcrux/common/dencode.go
- Line 14: warning: comment on exported function A85EncodeToString should be of the form "A85EncodeToString ..." (golint)
- Line 21: warning: comment on exported function A85DecodeString should be of the form "A85DecodeString ..." (golint)
- Line 24: warning: don't use underscores in Go names; var n_dst should be nDst (golint)
- Line 24: warning: don't use underscores in Go names; var n_src should be nSrc (golint)
- Line 73: warning: exported function Chunk should have comment or be unexported (golint)
- Line 94: warning: comment on exported function StripSep should be of the form "StripSep ..." (golint)
- Line 104: warning: exported function FormatShards should have comment or be unexported (golint)
- Line 118: warning: exported function DecodeShards should have comment or be unexported (golint)
-
passcrux/cmd/combine.go
- Line 1: warning: package comment should be of the form "Package cmd ..." (golint)
- Line 17: warning: don't use underscores in Go names; func get_shards should be getShards (golint)
- Line 18: warning: don't use underscores in Go names; var stdin_struct should be stdinStruct (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!