-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since 0.41: False positive errors, seems to ignore my .swiftlint.yml #3485
Comments
Did you mean that you use the If that isn't the issue and you just confused
Thanks in advance! |
Thank you @fredpi :) Our structure is basically
I'm running the script from inside App. My
When trying other combinations of the flags I'm not getting a result as well:
Happy for any thoughts on your end. We reverted to 0.40.3 for the time being. |
@freak4pc Thanks for the detailed information! The correct command for your use case would be Now, I tried to reproduce why this command doesn't work for you (saying that no lintable files could be found) and figured out that SwiftLint puts the I will validate if this is indeed the issue and, if true, try to come up with a fix for it. |
@freak4pc #3491 will probably fix this issue. Would you mind trying it out by using the specific branch? Until the next release is here, here's a funny workaround that I found while fixing this:
|
I had to revert the fix because it caused other breakages: b66f7c7 |
New Issue Checklist
Describe the bug
We've recently updated from 0.39.2 to the latest (0.42) and started getting thousands of errors and warnings in files we excluded with rules we excluded in our config file:
I believe this might be related to the fact we're using the
--path
flag to direct to our config file, like so:I've tracked this back to 0.41, since running 0.40.3 doesn't exhibit this issue.
Complete output when running
swiftlint --path ../
0.41:
0.40.3:
Environment
swiftlint version
to be sure)? 0.41Proprietary, but happy to paste specific portions you think might be an issue.
No
xcodebuild -version
)? 12.3The text was updated successfully, but these errors were encountered: