Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbaker committed Dec 17, 2024
1 parent 159ea08 commit cd2c625
Show file tree
Hide file tree
Showing 10 changed files with 390 additions and 724 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
distribution: 'corretto'

- name: Clean, build, test, and javadoc
run: ./gradlew clean build javadoc -Plog-tests --stacktrace
run: ./gradlew clean build javadoc -PnoFormat -Plog-tests --stacktrace

- name: Allow long file names in git for windows
if: matrix.os == 'windows-latest'
Expand Down
1 change: 0 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies {
implementation(libs.spotbugs)
implementation(libs.spotless)
implementation(libs.jmh)

// https://github.com/gradle/gradle/issues/15383
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location))
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import java.util.regex.Pattern

plugins {
checkstyle
id("com.diffplug.spotless")
}

Expand All @@ -17,20 +16,16 @@ spotless {
.onlyIfContentMatches("^((?!SKIPLICENSECHECK)[\\s\\S])*\$")
indentWithSpaces()
endWithNewline()

eclipse().configFile("${project.rootDir}/config/spotless/formatting.xml")

// Fixes for some strange formatting applied by eclipse:
// see: https://github.com/kamkie/demo-spring-jsf/blob/bcacb9dc90273a5f8d2569470c5bf67b171c7d62/build.gradle.kts#L159
custom("Lambda fix") { it.replace("} )", "})").replace("} ,", "},") }
custom("Long literal fix") { Pattern.compile("([0-9_]+) [Ll]").matcher(it).replaceAll("\$1L") }

// Static first, then everything else alphabetically
removeUnusedImports()
importOrder("\\#", "")

// Ignore generated code for formatter check
targetExclude("**/build/**/*.*")
targetExclude("*/build/**/*.*")
}

// Formatting for build.gradle.kts files
Expand Down
6 changes: 0 additions & 6 deletions buildSrc/src/main/kotlin/smithy.java-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ if (project.hasProperty("log-tests")) {
}
}

// ==== CheckStyle ====
// https://docs.gradle.org/current/userguide/checkstyle_plugin.html
tasks.named("checkstyleTest") {
enabled = false
}

// ==== Code coverage ====
// https://docs.gradle.org/current/userguide/jacoco_plugin.html

Expand Down
200 changes: 0 additions & 200 deletions config/checkstyle/checkstyle.xml

This file was deleted.

31 changes: 0 additions & 31 deletions config/checkstyle/suppressions.xml

This file was deleted.

Loading

0 comments on commit cd2c625

Please sign in to comment.