SwiftLint v0.49.1 Release Notes

  • ๐Ÿ‘• Note: The default branch for the SwiftLint git repository was renamed from โšก๏ธ master to main on September 1st. Please update any code or automation accordingly.

    ๐Ÿ’ฅ Breaking

    • None.


    • None.

    โœจ Enhancements

    • โž• Add new self_binding opt-in rule to enforce that self identifiers are consistently re-bound to a common identifier name. Configure bind_identifier to the name you want to use. Defaults to self.
      JP Simard #2495

    • โž• Add --output option to lint and analyze commands to write to a file instead of to stdout.
      JP Simard #4048

    • โž• Add --progress flag to lint and analyze commands to show a live-updating progress bar instead of each file being processed.
      JP Simard

    • ๐Ÿ–จ --fix now works with --use-stdin, printing the output to to STDOUT instead of crashing.
      SimplyDanny #4127

    ๐Ÿ› Bug Fixes

    • โœ… Migrate empty_xctest_method rule to SwiftSyntax fixing some false positives.
      SimplyDanny #3647 #3691

    • Fix false positives in redundant_discardable_let when using async let.
      Martin Hosna #4142

    • ๐Ÿ–จ Consistently print error/info messages to stderr instead of stdout, which wasn't being done for errors regarding remote configurations.
      JP Simard