Skip to content

Commit

Permalink
Upgraded Ktlint to 1.2.1 (#603)
Browse files Browse the repository at this point in the history
Keeping up with the latest version.
  • Loading branch information
freemanjp committed Mar 10, 2024
1 parent 8af1ce3 commit 9e0e394
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -425,3 +425,6 @@ $RECYCLE.BIN/

# To reduce churn
.idea/kotlinc.xml

# Devpod
.devpod-internal
20 changes: 19 additions & 1 deletion pom.xml
Expand Up @@ -54,7 +54,7 @@
<java.require.version>11</java.require.version>
<jdeps.multiRelease>11</jdeps.multiRelease>
<kotlin.version>1.9.22</kotlin.version>
<ktlint.version>1.1.1</ktlint.version>
<ktlint.version>1.2.1</ktlint.version>
<license-maven-plugin.version>1.20</license-maven-plugin.version>
<maven-plugin-plugin.version>3.6.4</maven-plugin-plugin.version>
<maven.compiler.release>8</maven.compiler.release>
Expand Down Expand Up @@ -414,6 +414,24 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-api-meta</artifactId>
<version>4.0.0-alpha-9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-api-xml</artifactId>
<version>4.0.0-alpha-9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-xml-impl</artifactId>
<version>4.0.0-alpha-9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.pinterest.ktlint</groupId>
<artifactId>ktlint-cli-reporter-baseline</artifactId>
Expand Down
Expand Up @@ -64,7 +64,7 @@ class FormatMojoTest {

verify(atLeast = 1) { log.isDebugEnabled }
verify { log.debug("checking format: $source") }
verify { log.debug("Format fixed > $source:1:1: Unnecessary semicolon") }
verify { log.debug("Format fixed > $source:30:39: Unnecessary semicolon") }
verify {
log.debug(
"Format fixed > $source:29:13: Argument should be on a separate line " +
Expand Down Expand Up @@ -98,7 +98,7 @@ class FormatMojoTest {

verify(atLeast = 1) { log.isDebugEnabled }
verify { log.debug("checking format: $scriptSource") }
verify { log.debug("Format fixed > $scriptSource:1:1: Unnecessary semicolon") }
verify { log.debug("Format fixed > $scriptSource:30:39: Unnecessary semicolon") }
verify {
log.debug(
"Format fixed > $scriptSource:29:13: Argument should be on a separate line " +
Expand Down

0 comments on commit 9e0e394

Please sign in to comment.