Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ant tasks for checking whether project files comply with format rules defined in .editorconfig files and eventually also for fixing the violations

License

NotificationsYou must be signed in to change notification settings

ec4j/editorconfig-ant-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LicenseMaven CentralTravis CI build statusAppVeyor Windows CI build status

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 :)

Basic usage

editorconfig-ant-tasks requires Java 7+ and Ant 1.8.0+.

Basicbuild.xml file:

<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

Configuration

TODO

How to build

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

Misc.

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

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp