Skip to content

Commit

Permalink
Merge pull request #328 from highsource/jt-327
Browse files Browse the repository at this point in the history
[#327] Add .editorconfig definition file
  • Loading branch information
mattrpav authored Aug 28, 2023
2 parents 3bd904a + 00f1d04 commit 276d68c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
max_line_length = 120
trim_trailing_whitespace = true

[*.{json,xml,yaml,yml,xsd,xjb,html}]
indent_size = 2

29 changes: 27 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
<maven-site-plugin.version>3.7.1</maven-site-plugin.version>
<maven-source-plugin.version>3.0.1</maven-source-plugin.version>
<maven-surefire-plugin.version>2.21.0</maven-surefire-plugin.version>

<cxf-codegen-plugin.version>3.3.13</cxf-codegen-plugin.version>
<editorconfig-maven-plugin.version>0.1.1</editorconfig-maven-plugin.version>
</properties>
<profiles>
<profile>
Expand Down Expand Up @@ -170,7 +170,27 @@
</plugins>
</build>
</profile>
</profiles>
<profile>
<id>checks</id>
<build>
<plugins>
<plugin>
<groupId>org.ec4j.maven</groupId>
<artifactId>editorconfig-maven-plugin</artifactId>
<executions>
<execution>
<id>check</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<!--distributionManagement>
<snapshotRepository>
<id>ossrh</id>
Expand Down Expand Up @@ -660,6 +680,11 @@
<artifactId>maven-bundle-plugin</artifactId>
<version>3.5.0</version>
</plugin>
<plugin>
<groupId>org.ec4j.maven</groupId>
<artifactId>editorconfig-maven-plugin</artifactId>
<version>${editorconfig-maven-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
Expand Down

0 comments on commit 276d68c

Please sign in to comment.