Preparing report...

Report for github.com/cathalgarvey/go-minilock

(v0.0.0-20160315171457-c7289f173516)

A+    Excellent!    Found 8 issues across 30 files

Tweet

gofmt96%

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!


golint76%

Golint is a linter for Go source code.

    • taber/box_encrypt_test.go
    • Line 10: warning: don't use underscores in Go names; var base_nonce should be baseNonce (golint)
    • Line 10: warning: don't use underscores in Go names; var large_plaintext should be largePlaintext (golint)
    • Line 10: warning: don't use underscores in Go names; var large_testcase should be largeTestcase (golint)
    • Line 11: warning: don't use underscores in Go names; var first_6_nonces should be first6Nonces (golint)
    • Line 43: warning: don't use underscores in Go names; var last_nonce should be lastNonce (golint)
    • Line 55: warning: don't use underscores in Go names; var base_nonce should be baseNonce (golint)
    • taber/harden.go
    • Line 8: warning: exported function Harden should have comment or be unexported (golint)
    • Line 9: warning: don't use underscores in Go names; var pp_blake should be ppBlake (golint)
    • taber/keys_gen_test.go
    • Line 20: warning: don't use underscores in Go names; var gen_key should be genKey (golint)
    • Line 30: warning: don't use underscores in Go names; var gen_id should be genID (golint)
    • Line 37: warning: don't use underscores in Go names; var pub_from_id should be pubFromID (golint)
    • binary_samples/mye.go
    • Line 3: warning: exported type MyError should have comment or be unexported (golint)
    • Line 4: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • godochdr.go
    • Line 1: warning: package comment should be of the form "Package minilock ..." (golint)
    • taber/box_encrypt.go
    • Line 10: warning: don't use underscores in Go names; func parameter base_nonce should be baseNonce (golint)
    • Line 10: warning: don't use underscores in Go names; func parameter chunk_number should be chunkNumber (golint)
    • Line 15: warning: don't use underscores in Go names; var chunk_num_b should be chunkNumB (golint)
    • Line 27: warning: don't use underscores in Go names; func parameter base_nonce should be baseNonce (golint)
    • Line 29: warning: don't use underscores in Go names; var chunk_nonce should be chunkNonce (golint)
    • Line 36: warning: don't use underscores in Go names; var bl_len should be blLen (golint)
    • Line 53: warning: don't use underscores in Go names; var fn_bytes should be fnBytes (golint)
    • Line 57: warning: don't use underscores in Go names; var padded_name should be paddedName (golint)
    • Line 64: warning: don't use underscores in Go names; func parameter base_nonce should be baseNonce (golint)
    • Line 64: warning: don't use underscores in Go names; func parameter file_data should be fileData (golint)
    • Line 64: warning: don't use underscores in Go names; func parameter block_chan should be blockChan (golint)
    • Line 71: warning: don't use underscores in Go names; var filename_chunk should be filenameChunk (golint)
    • Line 75: warning: don't use underscores in Go names; var fn_block should be fnBlock (golint)
    • Line 82: warning: don't use underscores in Go names; var num_chunks should be numChunks (golint)
    • Line 85: warning: don't use underscores in Go names; var block_number should be blockNumber (golint)
    • Line 114: warning: don't use underscores in Go names; func parameter base_nonce should be baseNonce (golint)
    • Line 114: warning: don't use underscores in Go names; func parameter file_data should be fileData (golint)
    • Line 119: warning: don't use underscores in Go names; var num_chunks should be numChunks (golint)
    • Line 124: warning: don't use underscores in Go names; var max_length should be maxLength (golint)
    • Line 127: warning: don't use underscores in Go names; var block_chan should be blockChan (golint)
    • Line 128: warning: don't use underscores in Go names; var done_chan should be doneChan (golint)
    • Line 133: warning: don't use underscores in Go names; var this_block should be thisBlock (golint)
    • Line 167: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 167: warning: don't use underscores in Go names; method parameter file_data should be fileData (golint)
    • Line 178: warning: comment on exported function Encrypt should be of the form "Encrypt ..." (golint)
    • Line 182: warning: don't use underscores in Go names; func parameter file_data should be fileData (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!