diff --git a/README.md b/README.md index 1fae9dcf52..e07e3518fb 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,59 @@ If you use it and encounter any problems, feel free to open issues on [github](h To run diktat in **only-check** mode use command `$ mvn diktat:check@diktat`. To run diktat in **autocorrect** mode use command `$ mvn diktat:fix@diktat`. +Requesting a specific _Maven_ `executionId` on the command line (the trailing +`diktat` in the above example) may be essential in these cases: + + * In your `pom.xml`, you have multiple executions with different + configurations (e. g.: multiple rule sets): +
+ + ```xml + + + + diktat-basic + + diktat-analysis.yml + + + + + diktat-advanced + + diktat-analysis-advanced.yml + + + + + ``` +
+ * Your YAML file with DiKTat rules has a non-default name and/or resides in a + non-default location: +
+ + ```xml + + + diktat + + /non/default/rule-set-file.yml + + + + ``` +
+ +If you omit the `executionId`: + +```console +$ mvn diktat:check +``` + +— the plug-in will use the default configuration and search for +`diktat-analysis.yml` file in the project directory (you can still customize the +rule sets by editing the YAML file). + ## Run with Gradle using diktat-gradle-plugin Requires a gradle version no lower than 5.3.