Preparing report...

Report for github.com/scottleedavis/mattermost-plugin-remind

(v1.0.0)

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


gofmt100%

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

No problems detected. Good job!


gocyclo75%

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.

    • server/http.go
    • Line 379: warning: cyclomatic complexity 30 of function (*Plugin).handleSnooze() is high (> 15) (gocyclo)
    • Line 591: warning: cyclomatic complexity 27 of function (*Plugin).handleSnoozeList() is high (> 15) (gocyclo)
    • server/reminder.go
    • Line 73: warning: cyclomatic complexity 23 of function (*Plugin).TriggerRemindersForTick() is high (> 15) (gocyclo)
    • server/list.go
    • Line 132: warning: cyclomatic complexity 19 of function (*Plugin).categorizeOccurrences() is high (> 15) (gocyclo)
    • Line 180: warning: cyclomatic complexity 17 of function (*Plugin).pagedOccurrences() is high (> 15) (gocyclo)
    • server/parse.go
    • Line 493: warning: cyclomatic complexity 77 of function (*Plugin).normalizeDate() is high (> 15) (gocyclo)
    • Line 128: warning: cyclomatic complexity 53 of function (*Plugin).findWhenEN() is high (> 15) (gocyclo)
    • Line 315: warning: cyclomatic complexity 26 of function (*Plugin).normalizeTime() is high (> 15) (gocyclo)
    • Line 14: warning: cyclomatic complexity 17 of function (*Plugin).ParseRequest() is high (> 15) (gocyclo)
    • server/occurrence.go
    • Line 342: warning: cyclomatic complexity 50 of function (*Plugin).inEN() is high (> 15) (gocyclo)
    • Line 593: warning: cyclomatic complexity 33 of function (*Plugin).atEN() is high (> 15) (gocyclo)
    • Line 959: warning: cyclomatic complexity 28 of function (*Plugin).everyEN() is high (> 15) (gocyclo)
    • Line 1249: warning: cyclomatic complexity 19 of function (*Plugin).formatWhenEN() is high (> 15) (gocyclo)
    • Line 817: warning: cyclomatic complexity 18 of function (*Plugin).onEN() is high (> 15) (gocyclo)
    • server/occurrence_test.go
    • Line 294: warning: cyclomatic complexity 43 of function TestOn() is high (> 15) (gocyclo)
    • Line 511: warning: cyclomatic complexity 34 of function TestEvery() is high (> 15) (gocyclo)
    • Line 625: warning: cyclomatic complexity 23 of function TestFreeForm() is high (> 15) (gocyclo)
    • Line 188: warning: cyclomatic complexity 20 of function TestAt() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell91%

Misspell Finds commonly misspelled English words

    • server/occurrence.go
    • Line 61: warning: "occurence" is a misspelling of "occurrence" (misspell)
    • Line 94: warning: "ocurrence" is a misspelling of "occurrence" (misspell)
    • Line 293: warning: "occurence" is a misspelling of "occurrence" (misspell)