Skip to content

implemented risk and ratings explanation generation #168

implemented risk and ratings explanation generation

implemented risk and ratings explanation generation #168

Triggered via push June 17, 2024 19:53
Status Failure
Total duration 20s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 1 warning
lint: pkg/risks/script/common/compare.go#L92
S1002: should omit comparison to bool constant, can be simplified to `!second.BoolValue()` (gosimple)
lint: pkg/risks/script/common/event.go#L63
S1011: should replace loop with `what.Events = append(what.Events, history...)` (gosimple)
lint: pkg/risks/script/expressions/greater-expression.go#L18
S1034: assigning the result of this type assertion to a variable (switch script := script.(type)) could eliminate type assertions in switch cases (gosimple)
lint: pkg/risks/script/expressions/greater-expression.go#L20
S1034(related information): could eliminate this type assertion (gosimple)
lint: pkg/risks/script/expressions/value-expression.go#L363
printf: fmt.Errorf format %q has arg value of wrong type *github.com/threagile/threagile/pkg/risks/script/common.StringValue (govet)
lint: pkg/risks/script/common/path.go#L26
SA4021: x = append(y) is equivalent to x = y (staticcheck)
lint: pkg/risks/script/expressions/all-expression.go#L90
SA4009: argument inValue is overwritten before first use (staticcheck)
lint: pkg/risks/script/expressions/all-expression.go#L94
SA4009(related information): assignment to inValue (staticcheck)
lint
issues found
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.