Preparing report...

Report for github.com/shenwei356/seqkit

A+    Excellent!    Found 18 issues across 48 files

Tweet

gofmt89%

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!


gocyclo81%

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.

    • seqkit/seqkit/cmd/amplicon.go
    • Line 645: warning: cyclomatic complexity 21 of function SubLocationInner() is high (> 15) (gocyclo)
    • Line 721: warning: cyclomatic complexity 21 of function SubLocationFlanking() is high (> 15) (gocyclo)
    • Line 783: warning: cyclomatic complexity 20 of function (*AmpliconFinder).Locate() is high (> 15) (gocyclo)
    • seqkit/seqkit/cmd/bam.go
    • Line 1133: warning: cyclomatic complexity 27 of function Bam2Bundles() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 24 of function CountReads() is high (> 15) (gocyclo)
    • seqkit/seqkit/cmd/sana.go
    • Line 446: warning: cyclomatic complexity 25 of function streamFasta() is high (> 15) (gocyclo)
    • Line 345: warning: cyclomatic complexity 25 of function streamFastq() is high (> 15) (gocyclo)
    • seqkit/seqkit/cmd/scat.go
    • Line 311: warning: cyclomatic complexity 51 of function NewFxWatcher() is high (> 15) (gocyclo)
    • Line 126: warning: cyclomatic complexity 28 of function LaunchFxWatchers() is high (> 15) (gocyclo)
    • seqkit/seqkit/cmd/bam_toolbox.go
    • Line 514: warning: cyclomatic complexity 34 of function GetSamDump() is high (> 15) (gocyclo)
    • Line 398: warning: cyclomatic complexity 19 of function GetSamAlnDetails() is high (> 15) (gocyclo)
    • Line 763: warning: cyclomatic complexity 19 of function GetSamAcc() is high (> 15) (gocyclo)
    • Line 232: warning: cyclomatic complexity 18 of function BamToolAlnContext() is high (> 15) (gocyclo)
    • seqkit/seqkit/cmd/subseq.go
    • Line 357: warning: cyclomatic complexity 26 of function subseqByGTFFile() is high (> 15) (gocyclo)
    • Line 467: warning: cyclomatic complexity 21 of function subSeqByBEDFile() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign83%

IneffAssign detects ineffectual assignments in Go code.

    • seqkit/seqkit/cmd/bam_toolbox.go
    • Line 85: warning: ineffectual assignment to err (ineffassign)
    • Line 91: warning: ineffectual assignment to err (ineffassign)
    • Line 125: warning: ineffectual assignment to err (ineffassign)
    • Line 132: warning: ineffectual assignment to err (ineffassign)
    • Line 251: warning: ineffectual assignment to stranded (ineffassign)
    • Line 258: warning: ineffectual assignment to err (ineffassign)
    • Line 367: warning: ineffectual assignment to err (ineffassign)
    • Line 465: warning: ineffectual assignment to err (ineffassign)

misspell85%

Misspell Finds commonly misspelled English words