Skip to content

Releases: realm/SwiftLint

0.5.6: Bug FixLint

14 Jan 02:36
Compare
Choose a tag to compare
Breaking
  • None.
Enhancements
  • Improve performance by reducing calls to SourceKit.
    Norio Nomura
Bug Fixes

0.5.5: Magic Drying Fluff Balls™

04 Jan 21:53
Compare
Choose a tag to compare

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

0.5.4: Bounce™

03 Jan 00:19
Compare
Choose a tag to compare

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

0.5.3: Mountain Scent

24 Dec 04:59
Compare
Choose a tag to compare
Breaking
  • None.
Enhancements
Bug Fixes
  • Fix false positives in ValidDocsRule.
    JP Simard

0.5.2: Snuggle™

18 Dec 17:34
Compare
Choose a tag to compare

Breaking
  • None.
Enhancements
  • Performance improvements & unicode fixes (via SourceKitten).
    Norio Nomura
Bug Fixes
  • Fix ValidDocsRule false positive when documenting functions with closure
    parameters.
    diogoguimaraes
    #267

0.5.1: Lint Tray Malfunction

14 Dec 01:15
Compare
Choose a tag to compare
Bug Fixes
  • Make linting faster than 0.5.0, but slower than 0.4.0
    Norio Nomura
    #119
  • Re-introduce --use-script-input-files option for lint & autocorrect
    commands. Should also fix some issues when running SwiftLint from an Xcode
    build phase.
    JP Simard
    #264

0.5.0: Downy™

13 Dec 02:18
Compare
Choose a tag to compare

Big thanks to @marcelofabri and @michallaskowski for contributing to this release!

Breaking
  • init() is no longer a member of the Rule protocol.
Enhancements
  • Add legacy constructor rule.
    Marcelo Fabri
    #202
  • The VariableNameRule now allows variable names when the entire name is
    capitalized. This allows stylistic usage common in cases like URL and other
    acronyms.
    Marcelo Fabri
    #161
  • Add autocorrect command to automatically correct certain violations
    (currently only trailing_newline, trailing_semicolon &
    trailing_whitespace).
    JP Simard
    #5
  • Allow to exclude files from included directory with excluded.
    Michal Laskowski
Bug Fixes
  • Statement position rule no longer triggers for non-keyword uses of catch and
    else.
    JP Simard
    #237
  • Fix issues with multi-byte characters.
    JP Simard
    #234

0.4.0: Wrinkle Release

18 Nov 03:58
Compare
Choose a tag to compare

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

0.3.0: Wrinkly Rules

03 Nov 21:18
Compare
Choose a tag to compare

Lots of new rules in this one. Thanks to @S2dentik, @zippy1978, @Tableau-David-Potter for contributing to this release!

Breaking
  • swiftlint rules now just prints a list of all available rules and their
    identifiers.
Enhancements
  • Support for Swift 2.1.
    JP Simard
  • Added StatementPositionRule to make sure that catch, else if and else
    statements are on the same line as closing brace preceding them and after one
    space.
    Alex Culeva
  • Added Comma Rule to ensure there is a single space after a comma.
    Alex Culeva
  • Add rule identifier to all linter reports.
    zippy1978
  • Add OpeningBraceRule to make sure there is exactly a space before opening
    brace and it is on the same line as declaration.
    Alex Culeva
  • Print to stderr for all informational logs. Only reporter outputs is logged to
    stdout.
    JP Simard
  • JSON and CSV reporters now only print at the very end of the linting
    process.
    JP Simard
  • Add support for guard statements to ControlStatementRule.
    David Potter
  • Lint parameter variables.
    JP Simard
Bug Fixes
  • Custom reporters are now supported even when not running with --use-stdin.
    JP Simard
    #151
  • Deduplicate files in the current directory.
    JP Simard
    #154

0.2.0: Tumble Dry

30 Sep 16:58
Compare
Choose a tag to compare
Breaking
  • SwiftLint now exclusively supports Swift 2.0.
    JP Simard
    #77
  • ViolationSeverity now has an associated type of String and two members:
    .Warning and .Error.
    JP Simard
    #113
Enhancements
  • Configure SwiftLint via a YAML file:
    Supports disabled_rules, included, excluded and passing parameters to
    parameterized rules.
    Pass a configuration file path to --config, defaults to .swiftlint.yml.
    JP Simard
    #1
    #3
    #20
    #26
  • Updated TypeNameRule and VariableNameRule to allow private type & variable
    names to start with an underscore.
    JP Simard
  • Disable and re-enable rules from within source code comments using
    // swiftlint:disable $IDENTIFIER and // swiftlint:enable $IDENTIFIER.
    JP Simard
    #4
  • Add --strict lint flag which makes the lint fail if there are any
    warnings.
    Keith Smiley
  • Violations are now printed to stderr.
    Keith Smiley
  • Custom reporters are now supported. Specify a value for the reporter: key in
    your configuration file. Available reporters are xcode (default), json,
    csv.
    JP Simard
    #42
Bug Fixes
  • Improve performance of TrailingWhitespaceRule.
    Keith Smiley
  • Allow newlines in function return arrow.
    JP Simard