openrewrite / rewrite

Automated mass refactoring of source code.
https://docs.openrewrite.org
Apache License 2.0
2.29k stars 340 forks source link

Require recipe names to be fully qualified & unique #17

Closed sambsnyd closed 4 years ago

sambsnyd commented 4 years ago

Recipes are currently called "profiles" until #13 is complete

Right now recipes can have simple names like "mockito" or "spring". With #16 removing the concept of recipes being assembled from multiple pieces based on their name, it becomes an error to have multiple recipes with the same name. To save us all from runtime errors due to name collision, let's go ahead and require recipe names to be fully qualified with a package-prefix.

This applies to all existing recipes as well as all new ones. No special treatment for anything org.openrewrite.

sambsnyd commented 4 years ago

Done in this commit.