All Versions
99
Latest Version
Avg Release Cycle
29 days
Latest Release
-

Changelog History
Page 9

  • v0.9.0 Changes

    ๐Ÿ’ฅ Breaking
    • ๐Ÿ‘• Linter.reporter has been removed and Configuration.reporterFromString(_:) has been renamed to a free function: reporterFromString(_:).
      JP Simard

    • ๐Ÿ”ง _ConfigProviderRule & ConfigurableRule have been removed and their requirements have been moved to Rule.
      JP Simard

    • ๐Ÿ”ง Configuration(path:optional:silent) has been changed to Configuration(path:rootPath:optional:quiet:).
      JP Simard

    • ๐Ÿ”ง The static function Configuration.rulesFromDict(_:ruleList:) has been moved to an instance method: RuleList.configuredRulesWithDictionary(_:).
      JP Simard

    • ๐Ÿ”ง The rules parameter in the Configuration initializer has been renamed to configuredRules.
      JP Simard

    • โœ‚ Removed a large number of declarations from the public SwiftLintFramework API. This is being done to minimize the API surface area in preparation of a 1.0 release. See #507 for a complete record of this change.
      JP Simard #479

    • All instances of the abbreviation "config" in the API have been expanded to "configuration". The --config command line parameter and use_nested_configs configuration key are unaffected.
      JP Simard

    • The use_nested_configs configuration key has been deprecated and its value is now ignored. Nested configuration files are now always considered.
      JP Simard

    โœจ Enhancements
    • ๐Ÿ‘• swiftlint lint now accepts an optional --reporter parameter which overrides existing reporter values in the configuration file. Choose between xcode (default), json, csv or checkstyle.
      JP Simard #440

    • ๐Ÿ‘• swiftlint rules now shows a configuration description for all rules.
      JP Simard

    • ๐Ÿ‘• lint and autocorrect commands now accept a --quiet flag that prevents status messages like 'Linting ' & 'Done linting' from being logged.
      JP Simard #386

    • ๐Ÿ”ง All top-level keys in a configuration file that accept an array now also accept a single value.
      e.g. included: Source is equivalent to included:\n - Source.
      JP Simard #120

    • ๐Ÿ‘Œ Improve performance of FunctionParameterCountRule.
      Norio Nomura

    • ๐Ÿ‘Œ Improve performance of ColonRule.
      Norio Nomura

    ๐Ÿ› Bug Fixes
    • ๐Ÿ›  Fix case sensitivity of keywords for valid_docs.
      Ankit Aggarwal #298

    • ๐Ÿ›  Fixed inconsistencies between violations & corrections in StatementPositionRule.
      JP Simard #466

    • โš  A warning will now be logged when invalid top-level keys are included in the configuration file.
      JP Simard #120

    • ๐Ÿ›  Fixed LegacyConstructorRule from correcting legacy constructors in string literals.
      JP Simard #466

    • Fixed an issue where variable_name or type_name would always report a violation when configured with only a warning value on either min_length or max_length.
      JP Simard #522

  • v0.8.0 Changes

    ๐Ÿ’ฅ Breaking
    • โš  Setting only warning on SeverityLevelsConfig rules now disables the error value.
      Robin Kunde #409

    • enabled_rules has been renamed to opt_in_rules.
      Daniel Beard

    โœจ Enhancements
    • โž• Add whitelist_rules rule whitelists in config files.
      Daniel Beard #256

    • ๐Ÿ‘Œ Improve performance of ColonRule, LineLengthRule & syntaxKindsByLine.
      Norio Nomura

    • โž• Add command to display rule description: swiftlint rules <rule identifier>.
      Tony Li #392

    • โž• Add FunctionParameterCountRule.
      Denis Lebedev #415

    • Measure complexity of nested functions separately in CyclomaticComplexityRule.
      Denis Lebedev #424

    • โž• Added exception for multi-line if/guard/while conditions to allow opening brace to be on a new line in OpeningBraceRule.
      Scott Hoyt #355

    • ๐Ÿ–จ The rules command now prints a table containing values for: identifier, opt-in, correctable, enabled in your config & configuration.
      JP Simard #392

    • โฌ‡๏ธ Reduce maximum memory usage.
      Norio Nomura

    ๐Ÿ› Bug Fixes
    • ๐Ÿ›  Fix more false positives in ValidDocsRule.
      diogoguimaraes #451

    • ๐Ÿ›  Fix trailing_newline autocorrect to handle more than one violation per line.
      Daniel Beard #465

    • ๐Ÿ›  Fix complexity measurement for switch statements in CyclomaticComplexityRule.
      Denis Lebedev #461

  • v0.7.2 Changes

    ๐Ÿ’ฅ Breaking
    • None.
    โœจ Enhancements
    • None.
    ๐Ÿ› Bug Fixes
  • v0.7.1 Changes

    ๐Ÿ’ฅ Breaking
    • None.
    โœจ Enhancements
    • ๐Ÿ‘Œ Improve performance of MissingDocsRule.
      Norio Nomura

    • โž• Added CustomRules.
      Scott Hoyt
      #123

    • โž• Added opt-in ForceUnwrappingRule to issue warnings for all forced unwrappings.
      Benjamin Otto #55

    ๐Ÿ› Bug Fixes
  • v0.7.0 Changes

    ๐Ÿ’ฅ 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

  • v0.6.0 Changes

    ๐Ÿ’ฅ Breaking
    • ๐Ÿ”ง ParameterizedRule is removed. Use ConfigurableRule instead.
      Scott Hoyt #353

    • To activate a Rule, it must be added to the global masterRuleList.
      Scott Hoyt

    โœจ Enhancements
    • ๐Ÿ‘€ ConfigurableRule protocol allows for improved rule configuration. See CONTRIBUTING for more details.
      Scott Hoyt #303

    • ๐Ÿ‘ VariableNameMinLengthRule now supports excluding certain variable names (e.g. "id").
      Scott Hoyt #231

    • ๐Ÿ”ง ViolationLevelRule provides default ConfigurableRule implementation for rules that only need integer error and warning levels.
      Scott Hoyt

    • โž• Add AutoCorrect for StatementPositionRule.
      Raphael Randschau

    • โž• Add AutoCorrect for CommaRule.
      Raphael Randschau

    • โž• Add AutoCorrect for LegacyConstructorRule.
      Raphael Randschau

    • ๐Ÿ‘Œ Improve performance of LineLengthRule.
      Norio Nomura

    • โž• Add ConditionalBindingCascadeRule.
      Aaron McTavish #202

    • ๐Ÿ‘ Opt-in rules are now supported.
      JP Simard #256

    • โž• Add LegacyConstantRule.
      Aaron McTavish #319

    • โž• Add opt-in rule to encourage checking isEmpty over comparing count to zero.
      JP Simard #202

    • โž• Add opt-in "Missing Docs" rule to detect undocumented public declarations.
      JP Simard

    ๐Ÿ› Bug Fixes
    • None.
  • v0.5.6 Changes

    ๐Ÿ’ฅ Breaking
    • None.
    โœจ Enhancements
    • ๐Ÿ‘Œ Improve performance by reducing calls to SourceKit.
      Norio Nomura
    ๐Ÿ› Bug Fixes
    • ๐Ÿ›  Fix homebrew deployment issues.
      Norio Nomura

    • ๐Ÿšš AutoCorrect for TrailingNewlineRule only removes at most one line.
      John Estropia

    • valid_docs did not detect tuple as return value.
      Norio Nomura #324

    • Escape strings when using CSV reporter.
      JP Simard

  • v0.5.5 Changes

    http://www.amazon.com/Magic-Drying-Fluff-Balls-Softening/dp/B001EIW1SG

    ๐Ÿ’ฅ Breaking
    • None.
    โœจ Enhancements
    • None.
    ๐Ÿ› Bug Fixes
    • ๐Ÿ”ง Always fail if a YAML configuration file was found but could not be parsed.
      JP Simard #310

    • ๐Ÿ‘‰ Make commands with modifiers work for violations with line-only locations.
      JP Simard #316

  • v0.5.4 Changes

    ๐Ÿ’ฅ Breaking
    • โœ‚ Remove Location.init(file:offset:) in favor of the more explicit Location.init(file:byteOffset:) & Location.init(file:characterOffset:).
      JP Simard
    โœจ Enhancements
    • โž• Add checkstyle reporter to generate XML reports in the Checkstyle 4.3 format.
      JP Simard #277

    • ๐Ÿ‘Œ Support command comment modifiers (previous, this & next) to limit the command's scope to a single line.
      JP Simard #222

    • โž• Add nested .swiftlint.yml configuration support.
      Scott Hoyt #299

    ๐Ÿ› Bug Fixes
  • v0.5.3 Changes

    ๐Ÿ’ฅ Breaking
    • None.
    โœจ Enhancements
    ๐Ÿ› Bug Fixes