Fix metrics init patch

This commit is contained in:
Gijs de Jong
2024-03-20 10:47:07 +01:00
parent ee0018114d
commit 8b4cba4ac9
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ index 6192b52..8c312b6 100644
<errorprone.version>2.19.1</errorprone.version>
<errorprone.javac.version>9+181-r4173-1</errorprone.javac.version>
-
+ <error-prone-support.flags>-Xplugin:ErrorProne -XepDisableWarningsInGeneratedCode ${error-prone.flags}</error-prone-support.flags>
+ <error-prone-support.flags>-Xplugin:ErrorProne -XepDisableWarningsInGeneratedCode ${error-prone.configuration-args}</error-prone-support.flags>
+ <java.version>8</java.version>
<sonar.projectKey>dropwizard_metrics</sonar.projectKey>
<sonar.organization>dropwizard</sonar.organization>

View File

@@ -14,7 +14,7 @@ fi
do_sync="$([ "${#}" = 0 ] || [ "${1:-}" != '--sync' ] || echo 1)"
report_directory="$([ "${#}" = 0 ] || ([ -z "${do_sync}" ] && echo "${1}") || ([ "${#}" = 1 ] || echo "${2}"))"
# XXX: We exclude the `CollectorMutability` and the `Immutable*|Preconditions*|StringRules.StringIsNullOrEmpty` Rsefaster rules
# XXX: We exclude the `CollectorMutability` and the `Immutable*|Preconditions*|StringRules.StringIsNullOrEmpty` Refaster rules
# as they introduce changes that expect Guava to be on the classpath.
patch_flags="-Xep:CollectorMutability:OFF -XepOpt:Refaster:NamePattern=^((?!(Immutable|Preconditions|StringRules\.StringIsNullOrEmpty)).*)"