Preparing report...

Report for github.com/Nesvilab/philosopher

A+    Excellent!    Found 32 issues across 113 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!


gocyclo71%

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.

    • philosopher/lib/fil/fdr.go
    • Line 223: warning: cyclomatic complexity 44 of function RazorFilter() is high (> 15) (gocyclo)
    • Line 453: warning: cyclomatic complexity 32 of function ProtXMLFilter() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 22 of function PepXMLFDRFilter() is high (> 15) (gocyclo)
    • philosopher/lib/qua/lfq.go
    • Line 188: warning: cyclomatic complexity 25 of function calculateIntensities() is high (> 15) (gocyclo)
    • Line 36: warning: cyclomatic complexity 19 of function peakIntensity() is high (> 15) (gocyclo)
    • philosopher/lib/qua/iso.go
    • Line 143: warning: cyclomatic complexity 55 of function prepareLabelStructureWithMS2() is high (> 15) (gocyclo)
    • Line 279: warning: cyclomatic complexity 55 of function prepareLabelStructureWithMS3() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 22 of function calculateIonPurity() is high (> 15) (gocyclo)
    • philosopher/lib/rep/peptide.go
    • Line 135: warning: cyclomatic complexity 35 of function (Evidence).MetaPeptideReport() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 19 of function (*Evidence).AssemblePeptideReport() is high (> 15) (gocyclo)
    • philosopher/lib/qua/qua.go
    • Line 248: warning: cyclomatic complexity 35 of function assignLabelNames() is high (> 15) (gocyclo)
    • Line 434: warning: cyclomatic complexity 23 of function classification() is high (> 15) (gocyclo)
    • philosopher/lib/rep/protein.go
    • Line 21: warning: cyclomatic complexity 39 of function (*Evidence).AssembleProteinReport() is high (> 15) (gocyclo)
    • Line 235: warning: cyclomatic complexity 35 of function (Evidence).MetaProteinReport() is high (> 15) (gocyclo)
    • philosopher/lib/rep/updater.go
    • Line 338: warning: cyclomatic complexity 20 of function (*Evidence).UpdateSupportingSpectra() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 20 of function (*Evidence).UpdateIonStatus() is high (> 15) (gocyclo)
    • philosopher/lib/fil/fil.go
    • Line 505: warning: cyclomatic complexity 21 of function processProteinInferenceIdentifications() is high (> 15) (gocyclo)
    • Line 27: warning: cyclomatic complexity 19 of function Run() is high (> 15) (gocyclo)
    • Line 258: warning: cyclomatic complexity 16 of function ptmBasedPSMFiltering() is high (> 15) (gocyclo)
    • philosopher/lib/rep/modification.go
    • Line 18: warning: cyclomatic complexity 33 of function (*Evidence).MapMods() is high (> 15) (gocyclo)
    • Line 162: warning: cyclomatic complexity 20 of function (*Evidence).AssembleModificationReport() 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!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words