Regal v0.28.0 Released #633
charlieegan3
started this conversation in
Ecosystem
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New Rule: missing-metadata #1131
The new
missing-metadata
rule helps ensure policies are documented by requiringMETADATA
comments on public packages and rules. Metadata comments are used to explain functionality and annotate Rego constructs with other data.Note:
missing-metadata
is a custom rule and so is not enabled by default for all users.fixer: Automated fixing of
directory-package-mismatch
This release brings improvements to
regal fix
, the command to automatically fix supported violations (#1120, #1127).Fixes for the directory-package-mismatch violations involve moving files based on their packages. For example a file with
package foo.bar
inpolicies/policy.rego
would need to be moved tofoo/policy.rego
. In previous versions of Regal, when multiple files in a large code base with the same filename needed to be moved to the same package directory, Regal would output a confusing error message.Regal v0.28.0 outputs a clear error message by default and adds a new
--on-conflict=rename
modifying flag to allow conflicting files to automatically be renamed when this scenario is encountered.Linter Improvements
Language Server Performance Improvements
Read more and download on the release page.
Beta Was this translation helpful? Give feedback.
All reactions