Preparing report...

Report for github.com/dhcgn/gopqexperiment

A    Great!    Found 10 issues across 15 files

Tweet

gofmt93%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint33%

Golint is a linter for Go source code.

    • gopqexperiment/cmd/simple_client_server/main.go
    • Line 28: warning: exported function WaitForCtrlC should have comment or be unexported (golint)
    • Line 29: warning: don't use underscores in Go names; var end_waiter should be endWaiter (golint)
    • Line 31: warning: don't use underscores in Go names; var signal_channel should be signalChannel (golint)
    • gopqexperiment/cmd/simple_use_case_hpke_csidh/main.go
    • Line 77: warning: exported function GenerateKeyPair should have comment or be unexported (golint)
    • Line 192: warning: exported function DeriveSecret should have comment or be unexported (golint)
    • Line 224: warning: exported type HybridKeyPair should have comment or be unexported (golint)
    • Line 229: warning: exported type PublicKeys should have comment or be unexported (golint)
    • Line 235: warning: exported type PrivateKeys should have comment or be unexported (golint)
    • Line 242: warning: exported method WireData.GetJson should have comment or be unexported (golint)
    • Line 250: warning: exported method HybridKeyPair.GetJson should have comment or be unexported (golint)
    • Line 258: warning: exported method PublicKeys.GetJson should have comment or be unexported (golint)
    • Line 266: warning: exported method PrivateKeys.GetJson should have comment or be unexported (golint)
    • Line 274: warning: exported function Println should have comment or be unexported (golint)
    • gopqexperiment/cmd/simple_use_case_hpke/main.go
    • Line 78: warning: exported function GenerateKeyPair should have comment or be unexported (golint)
    • Line 183: warning: exported type KeyPair should have comment or be unexported (golint)
    • Line 188: warning: exported type PublicKeys should have comment or be unexported (golint)
    • Line 192: warning: exported type PrivateKeys should have comment or be unexported (golint)
    • Line 197: warning: exported method WireData.GetJson should have comment or be unexported (golint)
    • Line 205: warning: exported method KeyPair.GetJson should have comment or be unexported (golint)
    • Line 213: warning: exported function Println should have comment or be unexported (golint)
    • gopqexperiment/cmd/simple_client_server/internal/cryptohelper/hpkehelper.go
    • Line 23: warning: exported function GenerateKeyPair should have comment or be unexported (golint)
    • Line 42: warning: exported type EncryptionKeyPair should have comment or be unexported (golint)
    • Line 47: warning: exported type PublicKeys should have comment or be unexported (golint)
    • Line 51: warning: exported type PrivateKeys should have comment or be unexported (golint)
    • Line 56: warning: exported function Decrypt should have comment or be unexported (golint)
    • Line 87: warning: exported function CreateEncryptedMessage should have comment or be unexported (golint)
    • Line 157: warning: exported function VerifyAndDecrypt should have comment or be unexported (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!


misspell86%

Misspell Finds commonly misspelled English words