Skip to content

Commit 761a3d8

Browse files
authored
build(flagd): reduce build time by excluding protobug files from spotbugs (#1140)
Signed-off-by: Simon Schrottner <[email protected]>
1 parent 15f8e59 commit 761a3d8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

providers/flagd/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,14 @@
200200
</execution>
201201
</executions>
202202
</plugin>
203-
203+
<plugin>
204+
<groupId>com.github.spotbugs</groupId>
205+
<artifactId>spotbugs-maven-plugin</artifactId>
206+
<version>4.8.6.6</version>
207+
<configuration>
208+
<onlyAnalyze>dev.openfeature.contrib.-</onlyAnalyze>
209+
</configuration>
210+
</plugin>
204211
<plugin>
205212
<artifactId>maven-resources-plugin</artifactId>
206213
<version>3.3.1</version>

spotbugs-exclusions.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
<!-- Ignore generated dev.openfeature.flagd.grpc schemas -->
55
<Match>
6-
<Package name="~dev.openfeature.flagd.grpc.*" />
6+
<Package name="~dev\.openfeature\.flagd\.grpc.*" />
77
</Match>
88

99
<!-- Ignore generated dev.openfeature.flagd.sync schemas -->
1010
<Match>
11-
<Package name="dev.openfeature.flagd.sync.*" />
11+
<Package name="~dev\.openfeature\.flagd\.sync.*" />
1212
</Match>
1313

1414
<!-- Allow predictable random for backoff jitter generation -->
@@ -24,4 +24,4 @@
2424
<Bug code="IJU" />
2525
</Not>
2626
</Match>
27-
</FindBugsFilter>
27+
</FindBugsFilter>

0 commit comments

Comments
 (0)