Preparing report...

Report for github.com/inexio/cve-alert-manager

A+    Excellent!    Found 6 issues across 10 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!


gocyclo60%

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.

    • cve-alert-manager/cvecase.go
    • Line 696: warning: cyclomatic complexity 48 of function SearchCases() is high (> 15) (gocyclo)
    • Line 480: warning: cyclomatic complexity 23 of function (*CveCase).WriteToDB() is high (> 15) (gocyclo)
    • Line 1249: warning: cyclomatic complexity 19 of function ImportFilter() is high (> 15) (gocyclo)

golint70%

Golint is a linter for Go source code.

    • cve-alert-manager/cvecase.go
    • Line 16: warning: exported const Null should have comment or be unexported (golint)
    • Line 18: warning: comment on exported type CveCase should be of the form "CveCase ..." (with optional leading article) (golint)
    • Line 117: warning: comment on exported type CveCaseComment should be of the form "CveCaseComment ..." (with optional leading article) (golint)
    • Line 155: warning: comment on exported type CveCaseSearchCriteria should be of the form "CveCaseSearchCriteria ..." (with optional leading article) (golint)
    • Line 217: warning: comment on exported type CveCaseSearchResult should be of the form "CveCaseSearchResult ..." (with optional leading article) (golint)
    • Line 233: warning: comment on exported type Filter should be of the form "Filter ..." (with optional leading article) (golint)
    • Line 255: warning: comment on exported type FilterCategory should be of the form "FilterCategory ..." (with optional leading article) (golint)
    • Line 273: warning: comment on exported type Category should be of the form "Category ..." (with optional leading article) (golint)
    • Line 287: warning: comment on exported type Platform should be of the form "Platform ..." (with optional leading article) (golint)
    • Line 1685: warning: exported function ImportCategories should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!