Preparing report...

Report for github.com/danielhavir/go-hpke

A+    Excellent!    Found 1 issues across 3 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!


gocyclo66%

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.


golint66%

Golint is a linter for Go source code.

    • go-hpke/params.go
    • Line 27: warning: don't use underscores in Go names; const mode_base should be modeBase (golint)
    • Line 28: warning: don't use underscores in Go names; const mode_psk should be modePsk (golint)
    • Line 29: warning: don't use underscores in Go names; const mode_auth should be modeAuth (golint)
    • Line 33: warning: exported const BASE_P256_SHA256_AES_GCM_128 should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: don't use underscores in Go names; const BASE_P256_SHA256_ChaCha20Poly1305 should be BASEP256SHA256ChaCha20Poly1305 (golint)
    • Line 36: warning: don't use underscores in Go names; const PSK_P256_SHA256_ChaCha20Poly1305 should be PSKP256SHA256ChaCha20Poly1305 (golint)
    • Line 38: warning: don't use underscores in Go names; const AUTH_P256_SHA256_ChaCha20Poly1305 should be AUTHP256SHA256ChaCha20Poly1305 (golint)
    • Line 40: warning: don't use underscores in Go names; const BASE_X25519_SHA256_ChaCha20Poly1305 should be BASEX25519SHA256ChaCha20Poly1305 (golint)
    • Line 42: warning: don't use underscores in Go names; const PSK_X25519_SHA256_ChaCha20Poly1305 should be PSKX25519SHA256ChaCha20Poly1305 (golint)
    • Line 44: warning: don't use underscores in Go names; const AUTH_X25519_SHA256_ChaCha20Poly1305 should be AUTHX25519SHA256ChaCha20Poly1305 (golint)
    • Line 46: warning: don't use underscores in Go names; const BASE_P521_SHA512_ChaCha20Poly1305 should be BASEP521SHA512ChaCha20Poly1305 (golint)
    • Line 48: warning: don't use underscores in Go names; const PSK_P521_SHA512_ChaCha20Poly1305 should be PSKP521SHA512ChaCha20Poly1305 (golint)
    • Line 50: warning: don't use underscores in Go names; const AUTH_P521_SHA512_ChaCha20Poly1305 should be AUTHP521SHA512ChaCha20Poly1305 (golint)
    • Line 52: warning: don't use underscores in Go names; const BASE_P256_SHA256_XChaCha20Blake2bSIV should be BASEP256SHA256XChaCha20Blake2bSIV (golint)
    • Line 53: warning: don't use underscores in Go names; const PSK_P256_SHA256_XChaCha20Blake2bSIV should be PSKP256SHA256XChaCha20Blake2bSIV (golint)
    • Line 54: warning: don't use underscores in Go names; const AUTH_P256_SHA256_XChaCha20Blake2bSIV should be AUTHP256SHA256XChaCha20Blake2bSIV (golint)
    • Line 55: warning: don't use underscores in Go names; const BASE_X25519_SHA256_XChaCha20Blake2bSIV should be BASEX25519SHA256XChaCha20Blake2bSIV (golint)
    • Line 56: warning: don't use underscores in Go names; const PSK_X25519_SHA256_XChaCha20Blake2bSIV should be PSKX25519SHA256XChaCha20Blake2bSIV (golint)
    • Line 57: warning: don't use underscores in Go names; const AUTH_X25519_SHA256_XChaCha20Blake2bSIV should be AUTHX25519SHA256XChaCha20Blake2bSIV (golint)
    • Line 58: warning: don't use underscores in Go names; const BASE_P521_SHA256_XChaCha20Blake2bSIV should be BASEP521SHA256XChaCha20Blake2bSIV (golint)
    • Line 59: warning: don't use underscores in Go names; const PSK_P521_SHA256_XChaCha20Blake2bSIV should be PSKP521SHA256XChaCha20Blake2bSIV (golint)
    • Line 60: warning: don't use underscores in Go names; const AUTH_P521_SHA256_XChaCha20Blake2bSIV should be AUTHP521SHA256XChaCha20Blake2bSIV (golint)
    • Line 65: warning: exported function GetParams 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!