add rego file linter and such #1369
ci.yml
on: push
Matrix: lint
Lint Rego
14s
build_gcs
0s
build
0s
Annotations
31 errors and 10 warnings
Lint Rego:
pkg/securitypolicy/framework.rego#L1
File should be formatted with `opa fmt`. To learn more, see: https://docs.styra.com/regal/rules/style/opa-fmt
|
Lint Rego:
pkg/securitypolicy/open_door.rego#L1
Use `import rego.v1`. To learn more, see: https://docs.styra.com/regal/rules/imports/use-rego-v1
|
Lint Rego:
pkg/securitypolicy/api.rego#L1
Use `import rego.v1`. To learn more, see: https://docs.styra.com/regal/rules/imports/use-rego-v1
|
Lint Rego:
pkg/securitypolicy/framework.rego#L244
Constant condition. To learn more, see: https://docs.styra.com/regal/rules/bugs/constant-condition
|
Lint Rego:
pkg/securitypolicy/framework.rego#L1349
Non-boolean return value unassigned. To learn more, see: https://docs.styra.com/regal/rules/bugs/unassigned-return-value
|
Lint Rego:
pkg/securitypolicy/framework.rego#L1358
Non-boolean return value unassigned. To learn more, see: https://docs.styra.com/regal/rules/bugs/unassigned-return-value
|
Lint Rego:
pkg/securitypolicy/framework.rego#L230
Redundant existence check. To learn more, see: https://docs.styra.com/regal/rules/bugs/redundant-existence-check
|
Lint Rego:
pkg/securitypolicy/framework.rego#L887
Unused output variable. To learn more, see: https://docs.styra.com/regal/rules/bugs/unused-output-variable
|
Lint Rego:
pkg/securitypolicy/framework.rego#L239
Prefer pattern matching in function arguments. To learn more, see: https://docs.styra.com/regal/rules/idiomatic/equals-pattern-matching
|
Lint Rego:
pkg/securitypolicy/framework.rego#L887
Use `some` to declare output variables. To learn more, see: https://docs.styra.com/regal/rules/idiomatic/use-some-for-output-vars
|
Lint Rego:
pkg/securitypolicy/framework.rego#L150
compile error: unused argument env. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L214
compile error: unused argument items. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L225
compile error: unused argument elevation_allowed. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L243
compile error: unused argument pattern. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L243
compile error: unused argument value. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L391
compile error: unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L391
compile error: unused argument containers. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L406
compile error: unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L445
compile error: unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L571
compile error: unused argument allow_elevated. (hint: use _ (wildcard variable) instead)
|
Lint Rego
Process completed with exit code 1.
|
lint (linux, test)
golangci-lint exit with code 3
|
lint (linux)
invalid go:embed: build system did not supply embed configuration"
|
lint (linux)
golangci-lint exit with code 3
|
lint (windows):
pkg/securitypolicy/securitypolicy_marshal.go#L44
pattern policy.rego: no matching files found (typecheck)
|
lint (windows)
lopts declared and not used"
|
lint (windows)
\tprevious case"
|
lint (windows)
cannot infer M1 (C:\\hostedtoolcache\\windows\\go\\1.22.6\\x64\\src\\maps\\maps.go:53:11)"
|
lint (windows)
issues found
|
lint (windows, test)
\tprevious case"
|
lint (windows, test)
golangci-lint exit with code 3
|
parse error:
pkg/securitypolicy/framework.rego#L8
`if` keyword is required before function body
|
parse error:
pkg/securitypolicy/framework.rego#L15
`if` keyword is required before rule body
|
parse error:
pkg/securitypolicy/framework.rego#L21
`if` keyword is required before rule body
|
parse error:
pkg/securitypolicy/framework.rego#L30
`if` keyword is required before rule body
|
parse error:
pkg/securitypolicy/framework.rego#L43
`if` keyword is required before rule body
|
parse error:
pkg/securitypolicy/framework.rego#L52
`if` keyword is required before function body
|
parse error:
pkg/securitypolicy/framework.rego#L62
`if` keyword is required before rule body
|
parse error:
pkg/securitypolicy/framework.rego#L66
`if` keyword is required before function body
|
parse error:
pkg/securitypolicy/framework.rego#L72
`if` keyword is required before rule body
|
parse error:
pkg/securitypolicy/framework.rego#L85
`if` keyword is required before rule body
|