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

Add new experimental rule ParameterListSpacingRule #1411

Merged

Conversation

paul-dingemans
Copy link
Collaborator

@paul-dingemans paul-dingemans commented Mar 15, 2022

Description

Ensures consistent spacing inside the parameter list. This rule partly overlaps with other rules like spacing around comma's and colons. However, it does have a more complete view on the higher concept of the parameter-list without interfering of the parameter-list-wrapping rule.

This rule is required for implementing the rewrite function signature rule #1341

Checklist

  • PR description added
  • tests are added
  • CHANGELOG.md is updated

In case of adding a new rule:

  • README.md is updated
  • Rule has been applied on Ktlint itself and violations are fixed

@paul-dingemans paul-dingemans added this to the 0.46.0 milestone Apr 2, 2022
= added 2 commits April 26, 2022 18:58
# Conflicts:
#	CHANGELOG.md
#	ktlint-ruleset-experimental/src/main/kotlin/com/pinterest/ktlint/ruleset/experimental/ExperimentalRuleSetProvider.kt
@paul-dingemans paul-dingemans merged commit 07e1828 into pinterest:master Apr 26, 2022
@paul-dingemans paul-dingemans deleted the 1341-parameter-list-spacing branch April 26, 2022 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant