Skip to content
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

Some rules in https://pinterest.github.io/ktlint/latest/rules/standard/ missing "Suppress or disable rule" #2732

Closed
nikclayton opened this issue Jul 3, 2024 · 1 comment · Fixed by #2734

Comments

@nikclayton
Copy link

Browsing the documentation after #2700 was implemented I noticed that the entry for the "Condition wrapping" rule, https://pinterest.github.io/ktlint/latest/rules/standard/#condition-wrapping, does not have the "Suppress or disable rule (+)" paragraph and controls after the "Rule id:" paragraph.

Looking through that page there's the same problem for:

  • standard:ktlint-suppression
  • standard:string-template-indent
  • standard:type-parameter-comment
  • standard:value-argument-comment
  • standard:chain-wrapping
  • standard:condition-wrapping
  • standard:enum-wrapping
  • standard:parameter-list-wrapping
  • standard:property-wrapping
@paul-dingemans
Copy link
Collaborator

Tnx for reporting the rules where this is missing.

standard:ktlint-suppression this is the exception to the rule. This rule can not be suppressed or disabled which was already documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants