Skip to content
New issue

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

Additional Static Mutator https://refactoring.com/catalog/replaceNestedConditionalWithGuardClauses.html #503

Open
blacelle opened this issue Apr 7, 2023 · 1 comment

Comments

@blacelle
Copy link
Member

blacelle commented Apr 7, 2023

If existing, a reference to the rule from the external system :

Please also provide code examples before -> after.


You want also want to implement a mutator by your self:

  • Consider eu.solven.cleanthat.engine.java.refactorer.mutators.EmptyControlStatement as an example
  • Add tests in eu.solven.cleanthat.engine.java.refactorer.cases.do_not_format_me.EmptyControlStatementCases
  • Wire tests through eu.solven.cleanthat.engine.java.refactorer.cases.TestEmptyControlStatementCases
  • Open a PR from a personal fork, allowing maintainers to edit your PR.
  • Thanks!
@blacelle
Copy link
Member Author

blacelle commented Apr 7, 2023

Refer also to https://www.youtube.com/watch?v=CFRhGnuXG-4

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

No branches or pull requests

1 participant