- Notifications
You must be signed in to change notification settings - Fork3
Maven plugin for .editorconfig enforcement
License
editorconfig/editorconfig-maven-plugin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Official maven plugin for enforcement of rules defined in the.editorconfig
files.
Example of plugin usage can be seen below. The configuration settings and plugin goal will be explained in the sections below:
<plugin> <groupId>org.editorconfig</groupId> <artifactId>editorconfig-maven-plugin</artifactId> <version>1.0.0-alpha1</version> <executions> <execution> <goals> <goal>check</goal> </goals> <phase>compile</phase> </execution> <configuration> <rootEditorConfigFileLocation>.editorconfig</rootEditorConfigFileLocation> </configuration> </executions></plugin>
The latest version of the plugin can be looked up inMaven Central
Currently, the plugin has the following Maven goals available:
Goal | Default Phase | Description |
---|---|---|
check | validate | This goal checks (by default) all the files in the project for compliance with rules, defined in the appropriate.editorconfig |
The plugin has several configuration parameters
Parameter | Description | Default Value |
---|---|---|
rootEditorConfigFileLocation | The location of theroot.editorconfig from theyour projects Maven basedir | No default |
strictMode | Whether or not to run the plugin execution in thestrict mode. The "strict mode" means that error in the.editorconfig file (invalid options or their values, inlaid glob expressions etc)will NOT be ignored and the plugin executionwill fail in case errors in.editorconfig file parsing are met | true |
This plugin supportsall the key value pairs defined in the officialEditorConfig specification, except for thespelling_language
.The reason for that is that this setting is mostly intended for the use of the code editors and IDEs, rather than the build plugins.
About
Maven plugin for .editorconfig enforcement
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.