Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Mar 1, 2024
1 parent e2e9f94 commit 7dab604
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions integration-tests/checkstyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,18 @@ format_goal='com.spotify.fmt:fmt-maven-plugin:2.21.1:format'

error_prone_shared_flags='-XepExcludedPaths:(\Q${project.basedir}${file.separator}src${file.separator}\E(it|test|xdocs-examples)\Q${file.separator}resources\E|\Q${project.build.directory}${file.separator}\E).*'

# XXX: Drop the exclusions once we know how to improve this.
error_prone_patch_flags="${error_prone_shared_flags} -XepPatchLocation:IN_PLACE -XepPatchChecks:$(
find "${error_prone_support_root}" -path "*/META-INF/services/com.google.errorprone.bugpatterns.BugChecker" \
-not -path "*/error-prone-guidelines/*" \
-not -path "*/error-prone-experimental/*" \
-not -path "*/error-prone-{experimental,guidelines}/*" \
-print0 \
| xargs -0 "${grep_command}" -hoP '[^.]+$' \
| "${grep_command}" -v ErrorProneRuntimeClasspath \
| paste -s -d ',' -
)"

# XXX: Drop the exclusions once we know how to improve this.
error_prone_validation_flags="${error_prone_shared_flags} -XepDisableAllChecks $(
find "${error_prone_support_root}" -path "*/META-INF/services/com.google.errorprone.bugpatterns.BugChecker" \
-not -path "*/error-prone-guidelines/*" \
-not -path "*/error-prone-experimental/*" \
-not -path "*/error-prone-{experimental,guidelines}/*" \
-print0 \
| xargs -0 "${grep_command}" -hoP '[^.]+$' \
| "${sed_command}" -r 's,(.*),-Xep:\1:WARN,' \
Expand Down

0 comments on commit 7dab604

Please sign in to comment.