hrzndhrn / recode

A linter with autocorrection and a refactoring tool.
MIT License
298 stars 15 forks source link

Feature request: Autocorrection for `Credo.Check.Readability.ParenthesesOnZeroArityDefs` #101

Open eksperimental opened 1 week ago

eksperimental commented 1 week ago

It would be nice to have this feature available so Recode would automatically add or remove parentheses as desired.

I find it useful I have use parentheses for zero-arity functions and Phoenix generator would not use them. I would save me some time when starting a project.

References: https://hexdocs.pm/credo/Credo.Check.Readability.ParenthesesOnZeroArityDefs.html

NickNeck commented 6 days ago

That sounds good. I will finish another refactoring for version 0.8.0 and then implement your suggestion.