add rego file linter and such #1371
ci.yml
on: push
Matrix: lint
Lint Rego
19s
build_gcs
0s
build
0s
Annotations
25 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/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/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/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
rego compile error: unused argument env. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L214
rego compile error: unused argument items. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L225
rego compile error: unused argument elevation_allowed. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L243
rego compile error: unused argument pattern. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L243
rego compile error: unused argument value. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L391
rego compile error: unused argument containers. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L391
rego compile error: unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L406
rego compile error: unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L445
rego compile error: unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Lint Rego:
pkg/securitypolicy/framework.rego#L571
rego compile error: unused argument allow_elevated. (hint: use _ (wildcard variable) instead)
|
Rego v1 Compatibility
Policy files are not v1 compatible
|
test-windows (windows-2019)
The run was canceled by @helsaawy.
|
test-windows (windows-2022)
The run was canceled by @helsaawy.
|
test-linux
The run was canceled by @helsaawy.
|
test-linux
The operation was canceled.
|
rego parse error:
pkg/securitypolicy/framework.rego#L8
`if` keyword is required before function body
|
rego parse error:
pkg/securitypolicy/framework.rego#L15
`if` keyword is required before rule body
|
rego parse error:
pkg/securitypolicy/framework.rego#L21
`if` keyword is required before rule body
|
rego parse error:
pkg/securitypolicy/framework.rego#L30
`if` keyword is required before rule body
|
rego parse error:
pkg/securitypolicy/framework.rego#L43
`if` keyword is required before rule body
|
rego parse error:
pkg/securitypolicy/framework.rego#L52
`if` keyword is required before function body
|
rego parse error:
pkg/securitypolicy/framework.rego#L62
`if` keyword is required before rule body
|
rego parse error:
pkg/securitypolicy/framework.rego#L66
`if` keyword is required before function body
|
rego parse error:
pkg/securitypolicy/framework.rego#L72
`if` keyword is required before rule body
|
rego parse error:
pkg/securitypolicy/framework.rego#L85
`if` keyword is required before rule body
|