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 function-spacing #1362

Merged

Conversation

paul-dingemans
Copy link
Collaborator

@paul-dingemans paul-dingemans commented Feb 5, 2022

Lints and formats the spacing after the fun keyword.

Example:

            // Too many space
            fun  foo() = "some-result"
            
            // Unexpected newline
            fun
            foo() = "some-result"

This rule is required to create a rule which can rewrite the function signature automatically as is described in #1341

Checklist

  • tests are added
  • CHANGELOG.md is updated

Paul Dingemans and others added 5 commits February 5, 2022 21:15
Lints and formats the spacing after the fun keyword.

This rule is required to create a rule which can rewrite the function signature automatically as is described in pinterest#1341
@paul-dingemans paul-dingemans merged commit 14c0adf into pinterest:master Mar 9, 2022
@paul-dingemans paul-dingemans deleted the 1341-function-spacing-rule branch March 9, 2022 18:57
@paul-dingemans paul-dingemans added this to the 0.45.0 milestone Mar 9, 2022
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.

None yet

1 participant