empty_enum_arguments false positive, --fix command breaks code preventing successful compile #5269
Open
2 tasks done
Labels
bug
Unexpected and reproducible misbehavior.
New Issue Checklist
Describe the bug
The empty_enum_arguments has false positives when using HealthKit types. HealthKit still has a number of types using static functions instead of static vars. The --fix command will remove the required parenthesis and make the code not compile.
https://developer.apple.com/documentation/healthkit/hkunit
Since there are system APIs in the health space and probably other built-in sdks outside of the developers control, this rule should allow a customization to provide an allow list or ignore list.
Complete output when running SwiftLint, including the stack trace and command used
Environment
0.53.0
pkg install
swiftlint version
to be sure)?# insert yaml contents here
empty_enum_arguments is on by default
No
xcodebuild -version
)?Version 15.0 (15A240d)
See screenshot above or sample code below
The text was updated successfully, but these errors were encountered: