Skip to content

Commit fe70392

Browse files
authored
🧑‍💻 auto-format code (#289)
1 parent 5858e2d commit fe70392

268 files changed

Lines changed: 5433 additions & 6412 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/_static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
cache: "maven"
2121

2222
- name: Check Code Style
23-
run: mvn --update-snapshots --no-transfer-progress checkstyle:check
23+
run: mvn --update-snapshots --no-transfer-progress spotless:check

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ hs_err_pid*
3636
.idea
3737
*.iml
3838
.run
39+
.project
40+
.settings
3941

4042
# Mac OS
4143
.DS_Store

checkstyle.xml

Lines changed: 0 additions & 391 deletions
This file was deleted.

eclipse-formatter.xml

Lines changed: 405 additions & 0 deletions
Large diffs are not rendered by default.

pom.xml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -95,34 +95,24 @@
9595
</configuration>
9696
</plugin>
9797
<plugin>
98-
<groupId>org.apache.maven.plugins</groupId>
99-
<artifactId>maven-checkstyle-plugin</artifactId>
100-
<version>3.2.1</version>
101-
<dependencies>
102-
<dependency>
103-
<groupId>com.puppycrawl.tools</groupId>
104-
<artifactId>checkstyle</artifactId>
105-
<version>10.9.3</version>
106-
</dependency>
107-
</dependencies>
98+
<groupId>com.diffplug.spotless</groupId>
99+
<artifactId>spotless-maven-plugin</artifactId>
100+
<!-- Version 2.x is the last with JRE 11 support -->
101+
<version>2.46.1</version>
108102
<configuration>
109-
<configLocation>checkstyle.xml</configLocation>
110-
<consoleOutput>true</consoleOutput>
111-
<failsOnError>true</failsOnError>
112-
<violationSeverity>error</violationSeverity>
103+
<java>
104+
<importOrder/>
105+
<removeUnusedImports />
106+
<eclipse>
107+
<file>${project.basedir}/eclipse-formatter.xml</file>
108+
</eclipse>
109+
<formatAnnotations />
110+
</java>
113111
</configuration>
114-
<executions>
115-
<execution>
116-
<id>validate</id>
117-
<phase>validate</phase>
118-
<goals>
119-
<goal>check</goal>
120-
</goals>
121-
</execution>
122-
</executions>
123112
</plugin>
124113
</plugins>
125114
</pluginManagement>
115+
126116
<plugins>
127117
<plugin>
128118
<groupId>org.apache.maven.plugins</groupId>

src/main/java/com/mindee/AsyncPollingOptions.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ public class AsyncPollingOptions {
2222
Integer maxRetries;
2323

2424
@Builder
25-
private AsyncPollingOptions(
26-
Double initialDelaySec,
27-
Double intervalSec,
28-
Integer maxRetries
29-
) {
25+
private AsyncPollingOptions(Double initialDelaySec, Double intervalSec, Integer maxRetries) {
3026
this.initialDelaySec = initialDelaySec == null ? 2.0 : initialDelaySec;
3127
this.intervalSec = intervalSec == null ? 1.5 : intervalSec;
3228
this.maxRetries = maxRetries == null ? 80 : maxRetries;

0 commit comments

Comments
 (0)