Skip to content

Commit 62e3b65

Browse files
committed
Enforce editor config
1 parent 378f29a commit 62e3b65

File tree

2 files changed

+54
-13
lines changed

2 files changed

+54
-13
lines changed

pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,47 @@
8080
</execution>
8181
</executions>
8282
</plugin>
83+
<plugin>
84+
<groupId>com.mycila</groupId>
85+
<artifactId>license-maven-plugin</artifactId>
86+
<!-- mvn license:format adds/updates all license headers -->
87+
<version>4.6</version>
88+
<configuration>
89+
<licenseSets>
90+
<licenseSet>
91+
<header>LICENSE</header>
92+
<excludes>
93+
<exclude>README.md</exclude>
94+
<exclude>target/**</exclude>
95+
<exclude>.vscode/**</exclude>
96+
<exclude>.editorconfig</exclude>
97+
</excludes>
98+
</licenseSet>
99+
</licenseSets>
100+
</configuration>
101+
<executions>
102+
<execution>
103+
<goals>
104+
<goal>check</goal>
105+
</goals>
106+
</execution>
107+
</executions>
108+
</plugin>
109+
<plugin>
110+
<groupId>org.ec4j.maven</groupId>
111+
<artifactId>editorconfig-maven-plugin</artifactId>
112+
<version>0.1.3</version>
113+
<!-- run mvn editorconfig:format to fix errors reported-->
114+
<executions>
115+
<execution>
116+
<id>check</id>
117+
<phase>verify</phase>
118+
<goals>
119+
<goal>check</goal>
120+
</goals>
121+
</execution>
122+
</executions>
123+
</plugin>
83124
</plugins>
84125
</build>
85126

src/test/resources/log4j2-test.xml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Configuration status="warn">
3-
<Appenders>
4-
<Console name="Console" target="SYSTEM_ERR">
5-
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
6-
</Console>
7-
</Appenders>
8-
<Loggers>
9-
<Logger name="engineering.swat.watch" level="info" additivity="false">
10-
<AppenderRef ref="Console"/>
11-
</Logger>
12-
<Root level="error">
13-
<AppenderRef ref="Console"/>
14-
</Root>
15-
</Loggers>
3+
<Appenders>
4+
<Console name="Console" target="SYSTEM_ERR">
5+
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
6+
</Console>
7+
</Appenders>
8+
<Loggers>
9+
<Logger name="engineering.swat.watch" level="info" additivity="false">
10+
<AppenderRef ref="Console"/>
11+
</Logger>
12+
<Root level="error">
13+
<AppenderRef ref="Console"/>
14+
</Root>
15+
</Loggers>
1616
</Configuration>

0 commit comments

Comments
 (0)