Skip to content

Conversation

vrana
Copy link
Contributor

@vrana vrana commented Aug 10, 2025

A similar option should be probably in RequireSingleLineMethodSignature. However, minParametersCount is not there either. I think that the best solution would be to merge these two into one but it seems quite complicated mainly because of BC. If you agree, I'll add withoutPromotedProperties to RequireSingleLineMethodSignature.

@kukulich
Copy link
Contributor

May I suggest something like “forceInConstructor” ?

@vrana
Copy link
Contributor Author

vrana commented Aug 10, 2025

I don't want it to trigger in all constructors, only in those with promoted properties.

@kukulich
Copy link
Contributor

Oh, you’re right

@vrana
Copy link
Contributor Author

vrana commented Aug 27, 2025

Can I get this in? I don't need the change in RequireSingleLineMethodSignature, we decided to ignore it in constructors.

@kukulich
Copy link
Contributor

I will check and merge it probably in the weekend after vacation.

@kukulich kukulich merged commit fad79b8 into slevomat:master Aug 30, 2025
40 checks passed
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.

2 participants