- Notifications
You must be signed in to change notification settings - Fork3
Ant tasks for checking whether project files comply with format rules defined in .editorconfig files and eventually also for fixing the violations
License
ec4j/editorconfig-ant-tasks
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
editorconfig-ant-tasks
providesAnt tasks for checking whether project files comply with format rulesdefined in.editorconfig
files and eventually also for fixing the violations.
editorconfig-ant-tasks are new. Expect issues of all kinds which is not to say that you should notreport them :) |
editorconfig-ant-tasks
requires Java 7+ and Ant 1.8.0+.
wgethttp://central.maven.org/maven2/org/ec4j/ant/editorconfig-ant-tasks/0.0.1/editorconfig-ant-tasks-0.0.1.jarmkdir -p libscd libswgethttp://central.maven.org/maven2/org/antlr/antlr4-runtime/4.7/antlr4-runtime-4.7.jarwgethttp://central.maven.org/maven2/org/ec4j/core/ec4j-core/0.0.1/ec4j-core-0.0.1.jarwgethttp://central.maven.org/maven2/org/ec4j/maven/ec4j-lint-api/0.0.6/ec4j-lint-api-0.0.6.jarwgethttp://central.maven.org/maven2/org/ec4j/maven/ec4j-linters/0.0.6/ec4j-linters-0.0.6.jar
<projectname="editorconfig-example"basedir="."xmlns:ec4j="antlib:org.ec4j.ant"> <taskdefuri="antlib:org.ec4j.ant"resource="org/ec4j/ant/antlib.xml"> <classpath> <filesetdir="..."> <includename="editorconfig-ant-tasks-*.jar"/> <includename="libs/*.jar"/> </fileset> </classpath> </taskdef> <targetname="editorconfigCheck"><!-- This checks whether the source tree complies with the rules defined in the .editorconfig file--> <ec4j:editorconfigCheck /> </target> <targetname="editorconfigFormat"><!-- This fixes any violations against the rules defined in the .editorconfig file--> <ec4j:editorconfigFormat /> </target></project>
To check whether any of your source files does not comply with.editorconfig
rules run
ant editorconfigCheck
In case any violations are detected, you may want to fix them automagically by running
ant editorconfigFormat
Prerequisites:
Java 7+
Optionally Maven 3.5.0+, unless you want to use
./mvnw
ormvnw.bat
delivered by the project
The most common build with unit tests:
./mvnw clean install
On Windows:
.\mvnw.cmd clean install
All code and contributions are underApache License
Issues and Discussions:https://github.com/ec4j/editorconfig-ant-tasks/issues
About
Ant tasks for checking whether project files comply with format rules defined in .editorconfig files and eventually also for fixing the violations
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.