Autocorrect for redundant_void_return
can cause code breakage
#5609
Labels
acceptable-false-positive
False positives caused by rules that are unavoidable due to missing type information.
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
After upgrading to SwiftLint to
0.55.1
code like this (below) breaks when applying--fix
. Reverting to version0.53.0
makes it work. I found some easy workarounds but I don't think it's good to break existing code.Complete output when running SwiftLint, including the stack trace and command used
main.swift
This code works but after
swiftlint --fix
,swift main.swift
causes error:Environment
SwiftLint version (run
swiftlint version
to be sure)? 0.55.1.Installation method used (Homebrew, CocoaPods, building from source, etc)? Homebrew.
Paste your configuration file: n/a.
Are you using nested configurations? No.
Which Xcode version are you using (check
xcodebuild -version
)? 15.4.Do you have a sample that shows the issue? Yes, above.
The text was updated successfully, but these errors were encountered: