Skip to content

v1.13

Compare
Choose a tag to compare
@NoahTheDuke NoahTheDuke released this 14 Feb 14:12
· 129 commits to main since this release

New Rules

  • lint/prefer-method-values: Prefer (^[] String/toUpperCase "noah") to (.toUpperCase "noah"). Enabled by default.
  • lint/require-explicit-param-tags: Prefer (^[File] File/mkdir (io/file \"a\")) to (File/mkdir (io/file \"a\")). Prefer (^[String String] File/createTempFile \"abc\" \"b\") to (^[_ _] File/createTempFile \"abc\" \"b\"). Has :missing, :wildcard, and :both styles, which check for lack of any :param-tags, usage of _ in a :param-tags, and both. Defaults to :wildcard. Disabled by default.

Changed

  • Add support for lint/prefer-method-values in performance/dot-equals.
  • Switch new_rule.tmpl to use deftest. defexpect is a thin wrapper and has the annoying "if given two non-expect entries, wrap in expect", which doesn't work when we use custom expect macros.