Preparing report...

Report for github.com/Dentrax/cocert

A    Great!    Found 9 issues across 18 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!


gocyclo100%

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!


golint55%

Golint is a linter for Go source code.

    • cocert/pkg/signed/types.go
    • Line 23: warning: exported const PemTypePrivate should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type PemType should have comment or be unexported (golint)
    • Line 30: warning: exported type PassFunc should have comment or be unexported (golint)
    • Line 31: warning: exported type PrompterFunc should have comment or be unexported (golint)
    • Line 33: warning: exported type Keys should have comment or be unexported (golint)
    • cocert/pkg/signed/verifier.go
    • Line 12: warning: exported function NewVerifier should have comment or be unexported (golint)
    • Line 49: warning: exported function VerifyKey should have comment or be unexported (golint)
    • cocert/pkg/password/password.go
    • Line 34: warning: exported const CreateNewPasswordMsg should have comment or be unexported (golint)
    • Line 35: warning: exported const MasterPasswordMsg should have comment or be unexported (golint)
    • Line 37: warning: exported function GetPrompterYN should have comment or be unexported (golint)
    • Line 41: warning: exported function GetPass should have comment or be unexported (golint)
    • cocert/pkg/signed/extractors.go
    • Line 39: warning: exported type EncryptPEMFile should have comment or be unexported (golint)
    • Line 44: warning: exported type TUFFunc should have comment or be unexported (golint)
    • Line 46: warning: exported function EncryptPEMsByTUF should have comment or be unexported (golint)
    • Line 80: warning: exported function ExtractPEMsToCurrentDir should have comment or be unexported (golint)
    • Line 101: warning: exported function WriteFile should have comment or be unexported (golint)
    • Line 108: warning: exported function EncodePEMToFileOrOutput should have comment or be unexported (golint)
    • Line 142: warning: exported function ReadFileAndDecodePEMFromPath should have comment or be unexported (golint)
    • Line 156: warning: exported function ReadCustomPrivateKeyFileAndDecodePEMFromPath should have comment or be unexported (golint)
    • Line 168: warning: exported function DecodePEMFromFile should have comment or be unexported (golint)
    • Line 192: warning: exported function DecryptTUFEncryptedPrivateKey should have comment or be unexported (golint)
    • Line 211: warning: exported function DecryptTUFEncryptedKeys should have comment or be unexported (golint)
    • cocert/pkg/signed/generators.go
    • Line 36: warning: exported function GenerateECDSAEllipticP521 should have comment or be unexported (golint)
    • Line 40: warning: exported function GenerateTUFEncryptedKeys should have comment or be unexported (golint)
    • Line 78: warning: exported function GenerateShamirPEMsToMemAsArray should have comment or be unexported (golint)
    • Line 94: warning: exported function GenerateShamirPEMsToMemAsArrayFromCustomPrivateKey should have comment or be unexported (golint)
    • cocert/pkg/signed/loaders.go
    • Line 33: warning: exported type PublicKey should have comment or be unexported (golint)
    • Line 38: warning: exported function LoadPublicKey should have comment or be unexported (golint)
    • Line 52: warning: exported function LoadAndCombinePrivateKeysFromPaths should have comment or be unexported (golint)
    • cocert/pkg/signed/signer.go
    • Line 19: warning: exported type Signer should have comment or be unexported (golint)
    • Line 26: warning: exported function NewKeySigner should have comment or be unexported (golint)
    • Line 34: warning: exported function NewKeylessSigner should have comment or be unexported (golint)
    • Line 57: warning: exported function NewSignerFromShamir should have comment or be unexported (golint)
    • Line 66: warning: exported function NewSignerFromBytes should have comment or be unexported (golint)
    • Line 80: warning: exported function DecideSignerType should have comment or be unexported (golint)
    • Line 103: warning: exported function CreateSigner should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!