Preparing report...

Report for github.com/shenwei356/bio

A+    Excellent!    Found 11 issues across 24 files

Tweet

gofmt91%

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!


gocyclo70%

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.

    • bio/seqio/fastx/reader.go
    • Line 195: warning: cyclomatic complexity 31 of function (*Reader).read() is high (> 15) (gocyclo)
    • Line 338: warning: cyclomatic complexity 20 of function (*Reader).parseRecord() is high (> 15) (gocyclo)
    • bio/seq/codon_tables.go
    • Line 317: warning: cyclomatic complexity 37 of function codonTableFromText() is high (> 15) (gocyclo)
    • Line 205: warning: cyclomatic complexity 28 of function (*CodonTable).Translate() is high (> 15) (gocyclo)
    • Line 47: warning: cyclomatic complexity 24 of function (CodonTable).string() is high (> 15) (gocyclo)
    • bio/seq/seq_test.go
    • Line 49: warning: cyclomatic complexity 20 of function TestSubSeq() is high (> 15) (gocyclo)
    • Line 85: warning: cyclomatic complexity 19 of function TestSubSeqInplace() is high (> 15) (gocyclo)

golint91%

Golint is a linter for Go source code.

    • bio/seq/seq.go
    • Line 18: warning: exported var QUAL_MAP should have comment or be unexported (golint)
    • Line 663: warning: don't use underscores in Go names; method parameter transl_table should be translTable (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words