Regal v0.15.0 released! #540
anderseknert
started this conversation in
Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This release brings 2 new linter rules, and a few improvements and fixes.
New rule:
deprecated-builtin
Category:
bugs
Calling deprecated built-in functions should always be avoided, and replacing them is usually trivial. Refer to the OPA docs on strict mode for more details on which built-in functions counts as deprecated.
For more information, see the docs on deprecated-builtin.
New rule:
default-over-not
Category:
style
Avoid
Prefer
While both forms are valid, using the
default
keyword to assign a constant value in the fallback case bettercommunicates intent, avoids negation where it isn't needed, and requires less instructions to evaluate. Note that this
rule only covers simple cases where one rule assigns the "happy" path, and another rule assigns on the same condition
negated. This is by design, as using
not
and negation may very well be the right choice for more complex cases!For more information, see the docs on default-over-not.
Other improvements
Bugs fixed
notice
and usenone
instead.Community
See the full changelog, and downloads, here.
Beta Was this translation helpful? Give feedback.
All reactions