We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, with the standard ruleset:
class SomeClass() { operator fun set( a: Int, b: Int, c: Int, ) = Unit fun set( a: Double, b: Double, ) = Unit } fun someFunction() { SomeClass() [ 1, 2 ] = 3 // allowed SomeClass().set( 1.0, 2.0 ) // Unexpected spacing after "(" (standard:paren-spacing) SomeClass().set(1.0, 2.0) // allowed }
SomeClass() [ 1, 2 ] = 3
Becomes
SomeClass()[1,2] = 3
I propose square-bracket-spacing have the same behavior as paren-spacing, but with square brackets.
square-bracket-spacing
paren-spacing
The text was updated successfully, but these errors were encountered:
Add rule to check spacing around square brackets 'square-brackets-spa…
ba6dbfb
…cing' Closes #2543
114a776
…cing' (#2555) Closes #2543
Successfully merging a pull request may close this issue.
Currently, with the standard ruleset:
Expected Rule behavior
Becomes
I propose
square-bracket-spacing
have the same behavior asparen-spacing
, but with square brackets.Additional information
The text was updated successfully, but these errors were encountered: