-
Notifications
You must be signed in to change notification settings - Fork 623
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
Turn off all code-affecting rules by default #1705
Comments
What was the bug? |
@nicklockwood it was my fault, incorrect protocol implementation, I was in a hurry to create an issue. However, I also had a problem: swiftformat replaced |
@dankinsoid understood. The safest option for now is to use But I think the safe ruleset option is a good idea and I will investigate adding that. |
I've spent the whole day debugging a bug and finally figured out that my app delegate function signatures look like this:
because of the
unusedArguments
rule that is enabled by default.There are some absolutely harmless formatting rules like indentation and many rules that can affect code functionality like
unusedArguments
. I believe that by default, only harmless rules should be enabled. Or, at least, some default rule presets should exist, so I could choose asafe
preset as a base and then configure it in my.swiftformat
file.The text was updated successfully, but these errors were encountered: