You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PER allows both separate and grouped attributes but:
grouped attributes must be on the same line
attributes with multiline arguments must not be grouped
I think it would be nice if such fixer would support there rules.
I wonder what should be done for (1) though. Should we force grouped attributes to be on the same line when they can be and separate them otherwise? Always separate?
I wonder what should be done for (1) though. Should we force grouped attributes to be on the same line when they can be and separate them otherwise? Always separate?
The best would be a configurable strategy (single line vs. multi line). PER ruleset could use the former, while people could reconfigure it to use the latter. For multiline I would use this by default:
#[
Foo(),
Bar(),
]
but probably we could just enforce new line after comma and let separate fixer do the reformatting 🤔?
Feature request
The text was updated successfully, but these errors were encountered: