Skip to content

0.4.0: Wrinkle Release

Compare
Choose a tag to compare
@keith keith released this 18 Nov 03:58

Lots of cool new/fixed rules in this release. Thanks to @wfleming & @mmorier for their contributions!

Breaking
  • API: Rename RuleExample to RuleDescription, remove StyleViolationType and
    combine Rule().identifier and Rule().example into Rule.description.
    JP Simard
    #183
Enhancements
  • The VariableNameRule now allows capitalized variable names when they are
    declared static. This allows stylistic usage common in cases like
    OptionSetType subclasses.
    Will Fleming
  • Add VariableNameMaxLengthRule and VariableNameMinLengthRule parameter
    rules. Remove length checks on VariableNameRule.
    Mickael Morier
  • Add trailing semicolon rule.
    JP Simard
  • Add force try rule.
    JP Simard
Bug Fixes
  • All rules now print their identifiers in reports.
    JP Simard
    #180
  • ControlStatementRule now detects all violations.
    Mickael Morier
    #187
  • ControlStatementRule no longer triggers a violation for acceptable use of
    parentheses.
    Mickael Morier
    #189
  • Nesting rule no longer triggers a violation for enums nested one level deep.
    JP Simard
    #190
  • ColonRule now triggers a violation even if equal operator is collapse to
    type and value.
    Mickael Morier
    #135