Preparing report...

Report for github.com/viant/datly

(v0.9.7)

A+    Excellent!    Found 95 issues across 680 files

Tweet

gofmt94%

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


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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo90%

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.

    • service/session/state.go
    • Line 306: warning: cyclomatic complexity 32 of function (*Session).ensureValidValue() is high (> 15) (gocyclo)
    • Line 474: warning: cyclomatic complexity 19 of function (*Session).lookupValue() is high (> 15) (gocyclo)
    • Line 552: warning: cyclomatic complexity 17 of function (*Session).adjustValue() is high (> 15) (gocyclo)
    • view/summary.go
    • Line 186: warning: cyclomatic complexity 19 of function (*View).buildRelationField() is high (> 15) (gocyclo)
    • view/view.go
    • Line 592: warning: cyclomatic complexity 38 of function (*View).initView() is high (> 15) (gocyclo)
    • Line 1023: warning: cyclomatic complexity 26 of function (*View).inherit() is high (> 15) (gocyclo)
    • Line 1249: warning: cyclomatic complexity 20 of function (*View).updateColumn() is high (> 15) (gocyclo)
    • view/template.go
    • Line 403: warning: cyclomatic complexity 16 of function (*Template).replacementEntry() is high (> 15) (gocyclo)
    • view/tags/tag.go
    • Line 61: warning: cyclomatic complexity 18 of function (*Tag).UpdateTag() is high (> 15) (gocyclo)
    • view/resource.go
    • Line 381: warning: cyclomatic complexity 18 of function (*Resource).readOptions() is high (> 15) (gocyclo)
    • internal/inference/state.go
    • Line 636: warning: cyclomatic complexity 22 of function NewState() is high (> 15) (gocyclo)
    • Line 207: warning: cyclomatic complexity 20 of function (State).FilterByKind() is high (> 15) (gocyclo)
    • view/state/parameter.go
    • Line 323: warning: cyclomatic complexity 23 of function (*Parameter).initSchema() is high (> 15) (gocyclo)
    • Line 141: warning: cyclomatic complexity 17 of function (*Parameter).Init() is high (> 15) (gocyclo)
    • gateway/async.go
    • Line 15: warning: cyclomatic complexity 16 of function (*Service).watchAsyncJob() is high (> 15) (gocyclo)
    • view/config.go
    • Line 93: warning: cyclomatic complexity 24 of function (*Config).Init() is high (> 15) (gocyclo)
    • internal/translator/output.go
    • Line 279: warning: cyclomatic complexity 19 of function (*Service).adjustCodecType() is high (> 15) (gocyclo)
    • Line 28: warning: cyclomatic complexity 17 of function (*Service).updateOutputParameters() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 16 of function (*Service).adjustParameterSetting() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!