v0.4.0
This release brings three new rules related to comments and metadata annotations:
- invalid-metadata-attribute (bugs category) flags custom attributes in metadata annotations not placed under the
custom
attribute. - detached-metadata (style category) flags metadata annotations that are "detached" by whitespace from their package or rule.
- no-whitespace-comment (style category) simply flags comments where the first character following the
#
is not whitespace.
Additionally, new end-to-end tests exposed a few mistakes in a previous refactoring, which have been fixed. This mistake meant that v0.3.0 failed to correctly run the line-length
and function-arg-return
rules... so if you started from that release you're really getting five new rules with v0.4.0... good thing we're keeping a fast paced release cadence! Thanks to @kristiansvalland for reporting on this regression.
Changelog
- 17bc200: Add no-whitespace-comment style rule (@anderseknert)
- 2f68245: Add invalid-metadata-attribute rule (@anderseknert)
- a093ff6: Bump github.com/open-policy-agent/opa from 0.53.1 to 0.54.0 (#189) (@dependabot[bot])
- 00c2455: New style rule: detached-metadata (#190) (@anderseknert)
- 147a373: Add codeql.yml (#184) (@anderseknert)
- cb516a4: Add e2e test of all rules (#192) (@anderseknert)