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
After I read this proposal I tought it would be nice to have a rule like "if there is more than x parameters in a function/tuple/array/dictionary there must be a newline between".
This rule can also be implemented without this proposal implemented.
The reason for this is makes it easier to review code. So the rule should be opt-in.
There could also be a configuration to state how many parameters there must be before newline is required.
It could also say that the trailing ) should be on a newline.
We could also have a configuration that require the ( to have a trailing newline
New Issue Checklist
New rule request
After I read this proposal I tought it would be nice to have a rule like "if there is more than x parameters in a function/tuple/array/dictionary there must be a newline between".
This rule can also be implemented without this proposal implemented.
The reason for this is makes it easier to review code. So the rule should be opt-in.
There could also be a configuration to state how many parameters there must be before newline is required.
It could also say that the trailing
)
should be on a newline.We could also have a configuration that require the
(
to have a trailing newlineExamples:
Not sure if it should be the same rule, but when calling a function we could also require newline.
Examples:
The text was updated successfully, but these errors were encountered: