SwiftLint v0.7.0 Release Notes

  • ๐Ÿ’ฅ Breaking
    • Replaced all uses of XPCDictionary with [String: SourceKitRepresentable].
      JP Simard

    • VariableNameMinLengthRule and VariableNameMaxLengthRule have been removed. VariableNameRule now has this functionality.
      Scott Hoyt

    • ๐Ÿšš ViolationLevelRule has been removed. This functionality is now provided by ConfigProviderRule and SeverityLevelsConfig.
      Scott Hoyt

    โœจ Enhancements
    • TypeBodyLengthRule now does not count comment or whitespace lines.
      Marcelo Fabri #369

    • FunctionBodyLengthRule now does not count comment or whitespace lines.
      Marcelo Fabri #258

    • ๐Ÿ”ง All Rules are now configurable in at least their severity: SeverityConfig.
      Scott Hoyt #371 #130 #268

    • TypeNameRule and VariableNameRule conform to ConfigProviderRule using NameConfig to support min_length, max_length, and excluded names.
      Scott Hoyt #388 #259 #191

    • โž• Add CyclomaticComplexityRule.
      Denis Lebedev

    ๐Ÿ› Bug Fixes
    • ๐Ÿ›  Fix crash caused by infinite recursion when using nested config files.
      JP Simard #368

    • ๐Ÿ›  Fix crash when file contains NULL character.
      Norio Nomura #379