-
Notifications
You must be signed in to change notification settings - Fork 50
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
Allow disabling of [standard:discouraged-comment-location] #351
Comments
According to https://pinterest.github.io/ktlint/1.0.1/rules/configuration-ktlint/#disabled-rules a proper syntax is: ktlint_standard_discouraged-comment-location = disabled and not (make sure you kill the gradle daemon ( |
Thanks for the quick feedback! Seem to be getting this after changing it and re-running:
|
Thanks for the assist @mateuszkwiecinski! |
@jeremymailen did you see that I responded and the suggestion didn't work before you closed this? I get this error now when running setting this doesn't help either: |
@thejeff77 this is a different problem. ktlint is seeing your specification, but certain rules are dependent on others. |
@jeremymailen I read that, I'm not sure what the resolution is. Do you have any recommendations? I'd argue that if a solution doesn't solve the issue and in-fact breaks the tool, it isn't a full solution.. |
Here's my full config if it helps, and the linting is broken:
|
I think the solution is only specifying how to correctly get the setting to "take" and doesn't speak to which other rules are required. |
@jeremymailen ok thanks.. I'll post over there. That's helpful. Appreciate the quick replies. I really need to figure out how to turn this off in a way that actually works. |
I found that setting |
The new v4 cannot auto-fix, nor will support/allow disabling the rule for this:
[standard:discouraged-comment-location] A comment in a 'value_parameter_list' is only allowed when placed on a separate line
Suffice to say, its annoying as s***.
Kindly allow an option to disable this in config. When adding to
.editorconfig
, it doesn't work and gives a warning it is not supported:The text was updated successfully, but these errors were encountered: