add rego file linter and such #1374
ci.yml
on: push
Matrix: lint
Lint Rego
28s
protos
3m 6s
verify-vendor
2m 45s
Go Generate
4m 15s
build_gcs
0s
build
0s
Annotations
21 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
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L150
unused argument env. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L214
unused argument items. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L225
unused argument elevation_allowed. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L243
unused argument pattern. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L243
unused argument value. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L391
unused argument containers. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L391
unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L406
unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L445
unused argument privileged. (hint: use _ (wildcard variable) instead)
|
Rego Compile Error:
pkg/securitypolicy/framework.rego#L571
unused argument allow_elevated. (hint: use _ (wildcard variable) instead)
|
Rego v1 Compatibility
Policy files are not v1 compatible
|
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
|