Skip to content

Commit 2273595

Browse files
committed
-
1 parent 5bbdc47 commit 2273595

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

src/sonar-sql-plugin/pom.xml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<artifactId>antlr4-runtime</artifactId>
9595
<version>4.11.1</version>
9696
</dependency>
97-
97+
9898
</dependencies>
9999

100100
<build>
@@ -103,6 +103,38 @@
103103
<groupId>com.diffplug.spotless</groupId>
104104
<artifactId>spotless-maven-plugin</artifactId>
105105
<version>2.27.1</version>
106+
<configuration>
107+
<!-- optional: limit format enforcement to just the files changed by this feature branch -->
108+
109+
<formats>
110+
<!-- you can define as many formats as you want, each is independent -->
111+
<format>
112+
<!-- define the files to apply to -->
113+
<includes>
114+
<include>*.md</include>
115+
<include>*.java</include>
116+
<include>.gitignore</include>
117+
</includes>
118+
<!-- define the steps to apply to those files -->
119+
<trimTrailingWhitespace />
120+
<endWithNewline />
121+
<indent>
122+
<tabs>true</tabs>
123+
<spacesPerTab>4</spacesPerTab>
124+
</indent>
125+
</format>
126+
</formats>
127+
<!-- define a language-specific format -->
128+
<java>
129+
<!-- no need to specify files, inferred automatically, but you can if you want -->
130+
131+
<!-- apply a specific flavor of google-java-format and reflow long strings -->
132+
<googleJavaFormat>
133+
<style>AOSP</style>
134+
<reflowLongStrings>true</reflowLongStrings>
135+
</googleJavaFormat>
136+
</java>
137+
</configuration>
106138
</plugin>
107139
<plugin>
108140
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)