Preparing report...

Report for forge.chapril.org/dune/sdk

(v0.0.0-20211213111828-c7e683d9f0b6)

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


gocyclo93%

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.

    • client/config.go
    • Line 32: warning: cyclomatic complexity 16 of function (*Config).validate() is high (> 15) (gocyclo)

golint25%

Golint is a linter for Go source code.

    • factory/workflow.go
    • Line 15: warning: exported type Workflow should have comment or be unexported (golint)
    • Line 20: warning: exported method Workflow.SetID should have comment or be unexported (golint)
    • Line 25: warning: exported method Workflow.SetType should have comment or be unexported (golint)
    • Line 30: warning: exported method Workflow.SetDescription should have comment or be unexported (golint)
    • Line 35: warning: exported method Workflow.SetOrigin should have comment or be unexported (golint)
    • Line 40: warning: exported method Workflow.SetPriority should have comment or be unexported (golint)
    • Line 45: warning: exported method Workflow.SetPriorityNone should have comment or be unexported (golint)
    • Line 50: warning: exported method Workflow.SetPriorityLow should have comment or be unexported (golint)
    • Line 55: warning: exported method Workflow.SetPriorityMedium should have comment or be unexported (golint)
    • Line 60: warning: exported method Workflow.SetPriorityHigh should have comment or be unexported (golint)
    • Line 65: warning: exported method Workflow.SetPriorityCritical should have comment or be unexported (golint)
    • Line 70: warning: exported method Workflow.SetData should have comment or be unexported (golint)
    • Line 75: warning: exported method Workflow.SetExternalID should have comment or be unexported (golint)
    • Line 80: warning: exported method Workflow.CreateWorkflow should have comment or be unexported (golint)
    • workers/workers.go
    • Line 15: warning: exported type Workers should have comment or be unexported (golint)
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 38: warning: exported method Workers.Start should have comment or be unexported (golint)
    • Line 42: warning: exported method Workers.AddOneWorker should have comment or be unexported (golint)
    • Line 46: warning: exported method Workers.StopOneWorker should have comment or be unexported (golint)
    • Line 50: warning: exported method Workers.Dashboard should have comment or be unexported (golint)
    • Line 54: warning: exported method Workers.Stop should have comment or be unexported (golint)
    • client/client.go
    • Line 21: warning: exported type Client should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 70: warning: exported method Client.CreateJob should have comment or be unexported (golint)
    • Line 100: warning: exported method Client.NextJob should have comment or be unexported (golint)
    • Line 104: warning: exported method Client.UpdateJob should have comment or be unexported (golint)
    • Line 108: warning: exported method Client.CreateWorkflow should have comment or be unexported (golint)
    • client/config.go
    • Line 18: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 25: warning: exported type Config should have comment or be unexported (golint)
    • runner/handler.go
    • Line 9: warning: exported type JobHandler should have comment or be unexported (golint)
    • Line 13: warning: exported type JHF should have comment or be unexported (golint)
    • Line 15: warning: exported method JHF.Run should have comment or be unexported (golint)
    • sdk.go
    • Line 16: warning: exported const ErrStorage should have comment or be unexported (golint)
    • Line 18: warning: exported type JobsRunning should have comment or be unexported (golint)
    • Line 20: warning: exported type JobsToRun should have comment or be unexported (golint)
    • Line 24: warning: exported type SelectNextJob should have comment or be unexported (golint)
    • Line 26: warning: exported type Dashboard should have comment or be unexported (golint)
    • Line 43: warning: exported type Storage should have comment or be unexported (golint)
    • Line 63: warning: exported type Logger should have comment or be unexported (golint)
    • Line 72: warning: exported type Model should have comment or be unexported (golint)
    • Line 79: warning: exported type Runner should have comment or be unexported (golint)
    • factory/factory.go
    • Line 15: warning: exported type Factory should have comment or be unexported (golint)
    • Line 19: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method Factory.NewJob should have comment or be unexported (golint)
    • Line 32: warning: exported method Factory.NewWorkflow should have comment or be unexported (golint)
    • factory/job.go
    • Line 17: warning: exported type Job should have comment or be unexported (golint)
    • Line 22: warning: exported method Job.SetID should have comment or be unexported (golint)
    • Line 27: warning: exported method Job.SetName should have comment or be unexported (golint)
    • Line 32: warning: exported method Job.SetOrigin should have comment or be unexported (golint)
    • Line 37: warning: exported method Job.SetPriority should have comment or be unexported (golint)
    • Line 42: warning: exported method Job.SetPriorityNone should have comment or be unexported (golint)
    • Line 47: warning: exported method Job.SetPriorityLow should have comment or be unexported (golint)
    • Line 52: warning: exported method Job.SetPriorityMedium should have comment or be unexported (golint)
    • Line 57: warning: exported method Job.SetPriorityHigh should have comment or be unexported (golint)
    • Line 62: warning: exported method Job.SetPriorityCritical should have comment or be unexported (golint)
    • Line 67: warning: exported method Job.SetPublic should have comment or be unexported (golint)
    • Line 72: warning: exported method Job.SetPrivate should have comment or be unexported (golint)
    • Line 77: warning: exported method Job.SetRunAfter should have comment or be unexported (golint)
    • Line 82: warning: exported method Job.SetExclusivity should have comment or be unexported (golint)
    • Line 87: warning: exported method Job.SetExclusivityNo should have comment or be unexported (golint)
    • Line 92: warning: exported method Job.SetExclusivityItself should have comment or be unexported (golint)
    • Line 97: warning: exported method Job.SetExclusivityNamespace should have comment or be unexported (golint)
    • Line 102: warning: exported method Job.SetMaxOccurences should have comment or be unexported (golint)
    • Line 107: warning: exported method Job.SetMaxAttempts should have comment or be unexported (golint)
    • Line 112: warning: exported method Job.SetCategory should have comment or be unexported (golint)
    • Line 117: warning: exported method Job.CreateJob should have comment or be unexported (golint)
    • workers/config.go
    • Line 17: warning: exported type Logger should have comment or be unexported (golint)
    • Line 23: warning: exported type Config should have comment or be unexported (golint)
    • runner/runner.go
    • Line 20: warning: exported type PanicHandler should have comment or be unexported (golint)
    • Line 22: warning: exported type Runner should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 40: warning: exported method Runner.Namespace should have comment or be unexported (golint)
    • Line 44: warning: exported method Runner.Model should have comment or be unexported (golint)
    • Line 48: warning: exported method Runner.SetPanicHandler should have comment or be unexported (golint)
    • Line 88: warning: exported method Runner.RunJob should have comment or be unexported (golint)
    • Line 100: warning: exported method Runner.AddJobHandler 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!