Preparing report...

Report for github.com/RoaringBitmap/roaring

(v1.2.3)

A    Great!    Found 28 issues across 70 files

Tweet

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!


gofmt74%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


gocyclo72%

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.

    • roaring.go
    • Line 645: warning: cyclomatic complexity 18 of function AddOffset64() is high (> 15) (gocyclo)
    • benchmark_test.go
    • Line 17: warning: cyclomatic complexity 20 of function BenchmarkIteratorAlloc() is high (> 15) (gocyclo)
    • roaring64/parallel64.go
    • Line 15: warning: cyclomatic complexity 19 of function ParOr() is high (> 15) (gocyclo)
    • Line 158: warning: cyclomatic complexity 17 of function orOnRange() is high (> 15) (gocyclo)
    • roaringarray.go
    • Line 556: warning: cyclomatic complexity 25 of function (*roaringArray).readFrom() is high (> 15) (gocyclo)
    • runcontainer_test.go
    • Line 2199: warning: cyclomatic complexity 24 of function TestAllContainerMethodsAllContainerTypesWithData067() is high (> 15) (gocyclo)
    • runcontainer.go
    • Line 1533: warning: cyclomatic complexity 22 of function (*runContainer16).isubtract() is high (> 15) (gocyclo)
    • Line 618: warning: cyclomatic complexity 20 of function (*runContainer16).intersect() is high (> 15) (gocyclo)
    • Line 377: warning: cyclomatic complexity 20 of function (*runContainer16).union() is high (> 15) (gocyclo)
    • Line 492: warning: cyclomatic complexity 20 of function (*runContainer16).unionCardinality() is high (> 15) (gocyclo)
    • Line 721: warning: cyclomatic complexity 19 of function (*runContainer16).intersectCardinality() is high (> 15) (gocyclo)
    • Line 2228: warning: cyclomatic complexity 16 of function runArrayUnionToRuns() is high (> 15) (gocyclo)
    • parallel.go
    • Line 337: warning: cyclomatic complexity 20 of function ParOr() is high (> 15) (gocyclo)
    • Line 482: warning: cyclomatic complexity 17 of function lazyOrOnRange() is high (> 15) (gocyclo)
    • BitSliceIndexing/bsi.go
    • Line 277: warning: cyclomatic complexity 69 of function compareValue() is high (> 15) (gocyclo)
    • Line 453: warning: cyclomatic complexity 28 of function (*BSI).minOrMax() is high (> 15) (gocyclo)
    • roaring64/bsi64.go
    • Line 275: warning: cyclomatic complexity 69 of function compareValue() is high (> 15) (gocyclo)
    • Line 452: warning: cyclomatic complexity 28 of function (*BSI).minOrMax() is high (> 15) (gocyclo)
    • serialization_littleendian.go
    • Line 344: warning: cyclomatic complexity 22 of function (*roaringArray).frozenView() is high (> 15) (gocyclo)
    • Line 570: warning: cyclomatic complexity 17 of function (*Bitmap).WriteFrozenTo() is high (> 15) (gocyclo)

ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • roaring_test.go
    • Line 944: warning: ineffectual assignment to pos (ineffassign)
    • Line 1437: warning: ineffectual assignment to pos (ineffassign)
    • Line 2088: warning: ineffectual assignment to n (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell90%

Misspell Finds commonly misspelled English words