Preparing report...

Report for github.com/smartcontractkit/integrations-framework

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


gocyclo100%

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.

No problems detected. Good job!


golint43%

Golint is a linter for Go source code.

    • integrations-framework/contracts/contract_models.go
    • Line 14: warning: exported type FluxAggregatorOptions should have comment or be unexported (golint)
    • Line 24: warning: exported type FluxAggregatorData should have comment or be unexported (golint)
    • Line 31: warning: exported type FluxAggregator should have comment or be unexported (golint)
    • Line 46: warning: exported type LinkToken should have comment or be unexported (golint)
    • Line 52: warning: exported type OffchainOptions should have comment or be unexported (golint)
    • Line 66: warning: comment on exported type OffChainAggregatorConfig should be of the form "OffChainAggregatorConfig ..." (with optional leading article) (golint)
    • Line 82: warning: exported type OffchainAggregatorData should have comment or be unexported (golint)
    • Line 86: warning: exported type OffchainAggregator should have comment or be unexported (golint)
    • Line 102: warning: exported type Storage should have comment or be unexported (golint)
    • Line 107: warning: exported type VRF should have comment or be unexported (golint)
    • Line 112: warning: exported type RoundData should have comment or be unexported (golint)
    • integrations-framework/client/chainlink_models.go
    • Line 170: warning: exported method CronJobSpec.Type should have comment or be unexported (golint)
    • Line 188: warning: exported method DirectRequestJobSpec.Type should have comment or be unexported (golint)
    • Line 214: warning: exported method FluxMonitorJobSpec.Type should have comment or be unexported (golint)
    • Line 243: warning: exported method KeeperJobSpec.Type should have comment or be unexported (golint)
    • Line 267: warning: exported method OCRBootstrapJobSpec.Type should have comment or be unexported (golint)
    • Line 308: warning: exported method OCRTaskJobSpec.Type should have comment or be unexported (golint)
    • Line 345: warning: exported method VRFJobSpec.Type should have comment or be unexported (golint)
    • Line 360: warning: exported method WebhookJobSpec.Type should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign81%

IneffAssign detects ineffectual assignments in Go code.

    • integrations-framework/client/ethereum.go
    • Line 6: warning: package integrations-framework/contracts/ethereum is not in GOROOT (/usr/local/go/src/integrations-framework/contracts/ethereum) (ineffassign)
    • Line 6: warning: could not import integrations-framework/contracts/ethereum (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import integrations-framework/contracts/ethereum (invalid package name: "") (ineffassign)

misspell93%

Misspell Finds commonly misspelled English words