realm / SwiftLint

A tool to enforce Swift style and conventions.
https://realm.github.io/SwiftLint
MIT License
18.64k stars 2.22k forks source link

Rule for whitespace in function declaration #3229

Closed tumata closed 2 years ago

tumata commented 4 years ago

I would like to know if there is a rule for when white-spaces are added around the function name such as below: func bind (something: A, somethingElse: B) {

These do not trigger any violation at the moment. Thanks

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!

tumata commented 3 years ago

Up!

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions!

tumata commented 3 years ago

Last up!

SimplyDanny commented 2 years ago

Such a rule only exists for operators where it enforced whitespace around the operator symbol.

Whitespace handling is the expertise of SwiftFormat.

SimplyDanny commented 2 years ago

Feel free to reopen the issue if there are more related questions.