From cf4d7c46ffdcfac223df11f0d34a7bf87d58c8e2 Mon Sep 17 00:00:00 2001 From: Christian Egli Date: Mon, 1 Nov 2021 09:24:33 +0100 Subject: [PATCH] Add the editorconfig maven plugin so that the editorconfig settings can be checked with Maven Related to #476 --- README.md | 6 ++++++ pom.xml | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/README.md b/README.md index daef2e1f..fec22530 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,12 @@ The nordic migrator can be built with Maven, either directly (with for instance `mvn clean package`), or indirectly with Docker (with for instance `docker build .`). +To check the code conventions use a special Maven plugin: `mvn +editorconfig:check`. The conventions are defined in `.editorconfig` +which is picked up by most editors, see https://editorconfig.org/. You +can also fix the conventions in all files with `mvn +editorconfig:format`. + Releasing --------- diff --git a/pom.xml b/pom.xml index 42391675..5ceb20ef 100644 --- a/pom.xml +++ b/pom.xml @@ -172,6 +172,28 @@ + + org.ec4j.maven + editorconfig-maven-plugin + 0.1.1 + + + check + verify + + check + + + + + + + src/test/**/*.epub + **/*.otf + documentation/*.odg + + +