Preparing report...

Report for github.com/datadope-io/usts

A+    Excellent!    Found 8 issues across 12 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!


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.

    • usts/timeseries.go
    • Line 505: warning: cyclomatic complexity 32 of function (*USTimeSerie).IterateOnPeriods() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • usts/timeseries.go
    • Line 255: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 415: warning: comment on exported method USTimeSerie.CompactBoundaries should be of the form "CompactBoundaries ..." (golint)
    • usts/timewindow.go
    • Line 10: warning: exported type AddSlotMode should have comment or be unexported (golint)
    • Line 13: warning: exported const Add should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type TimeWindow should have comment or be unexported (golint)
    • Line 26: warning: exported function NewTimeWindow should have comment or be unexported (golint)
    • Line 31: warning: exported method TimeWindow.SetCalendar should have comment or be unexported (golint)
    • Line 35: warning: exported method TimeWindow.SetTimeZone should have comment or be unexported (golint)
    • Line 44: warning: exported method TimeWindow.AddSlot should have comment or be unexported (golint)
    • Line 50: warning: exported function CalendarWindowEvents should have comment or be unexported (golint)
    • Line 56: warning: don't use underscores in Go names; var cron_tpl should be cronTpl (golint)
    • Line 87: warning: exported method TimeWindow.GetTimeEvents should have comment or be unexported (golint)
    • usts/operators.go
    • Line 125: warning: comment on exported method USTimeSerie.MarkPeriods should be of the form "MarkPeriods ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell83%

Misspell Finds commonly misspelled English words