Preparing report...

Report for github.com/intel/rmd

A+    Excellent!    Found 20 issues across 114 files

Tweet

gofmt97%

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!


gocyclo89%

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.

    • rmd/utils/bitmap/bitmap.go
    • Line 526: warning: cyclomatic complexity 21 of function genBits() is high (> 15) (gocyclo)
    • Line 27: warning: cyclomatic complexity 17 of function NewBitmap() is high (> 15) (gocyclo)
    • rmd/modules/workload/workload.go
    • Line 116: warning: cyclomatic complexity 49 of function validate() is high (> 15) (gocyclo)
    • Line 648: warning: cyclomatic complexity 49 of function update() is high (> 15) (gocyclo)
    • Line 901: warning: cyclomatic complexity 31 of function populateEnforceRequest() is high (> 15) (gocyclo)
    • Line 1220: warning: cyclomatic complexity 21 of function Init() is high (> 15) (gocyclo)
    • Line 254: warning: cyclomatic complexity 19 of function enforceCache() is high (> 15) (gocyclo)
    • Line 552: warning: cyclomatic complexity 18 of function Release() is high (> 15) (gocyclo)
    • Line 50: warning: cyclomatic complexity 17 of function fillWorkloadByPolicy() 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!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.

    • rmd/utils/bitmap/bitmap.go
    • Line 110: warning: ineffectual assignment to maxc (ineffassign)
    • Line 112: warning: ineffectual assignment to minl (ineffassign)
    • Line 134: warning: ineffectual assignment to maxc (ineffassign)
    • Line 136: warning: ineffectual assignment to maxl (ineffassign)
    • Line 157: warning: ineffectual assignment to maxc (ineffassign)
    • Line 159: warning: ineffectual assignment to minl (ineffassign)
    • Line 181: warning: ineffectual assignment to maxc (ineffassign)
    • rmd/utils/resctrl/resctrl.go
    • Line 169: warning: ineffectual assignment to err (ineffassign)
    • Line 188: warning: ineffectual assignment to err (ineffassign)
    • Line 192: warning: ineffectual assignment to err (ineffassign)
    • Line 239: warning: ineffectual assignment to err (ineffassign)
    • Line 257: warning: ineffectual assignment to err (ineffassign)
    • Line 261: warning: ineffectual assignment to err (ineffassign)

misspell98%

Misspell Finds commonly misspelled English words