-
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
indentation_width warning when preprocessor statements are used #4121
Comments
Works on my machine ... 😄 Are you sure the new option is set to |
@SwiftNativeDeveloper, @phranck: Please try |
My colleague cleaned derived data and restarted Xcode and that worked for him. Next time we have stuck settings I'll share the --no-cache flag. Thanks! |
@SimplyDanny
I have opt in the rule
and I still get the warning: |
Does it work on the plain command line without any Xcode and build scripts involved? |
Are you sure the configuration file is taken into account when running SwiftLint as a build step? Maybe try with an explicit |
This is strange. The Calling the linter in the build phase script with |
Am I the only one still seeing the warnings? 🤔 export PATH="$PATH:/opt/homebrew/bin"
if which swiftlint > /dev/null; then
swiftlint --no-cache --config ${PROJECT_DIR}/.swiftlint.yml
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi |
Let's wait for the next release and reevaluate then. There definitely was a bug in the caching mechanism that is now fixed and will be available with the next version. |
New Issue Checklist
Describe the bug
It was fixed in #4066, unfortunately not completely. Please have a look at: #4030 (comment).
The text was updated successfully, but these errors were encountered: