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
Uh oh!
There was an error while loading. Please reload this page.
-
New Rule: missing-metadata #1131
The new
missing-metadatarule helps ensure policies are documented by requiringMETADATAcomments on public packages and rules. Metadata comments are used to explain functionality and annotate Rego constructs with other data.Note:
missing-metadatais a custom rule and so is not enabled by default for all users.fixer: Automated fixing of
directory-package-mismatchThis 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.barinpolicies/policy.regowould 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=renamemodifying 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