@@ -25,19 +25,28 @@ see https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html
2525 xmlns =" https://github.com/spotbugs/filter/3.0.0"
2626 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2727 xsi : schemaLocation =" https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd" >
28+ <!-- <Bug pattern="DLS_DEAD_LOCAL_STORE" />-->
29+
30+ <Match > <!-- Global excludes https://github.com/GoogleCloudPlatform/java-repo-tools/issues/136 -->
31+ <Or >
32+ <Bug pattern =" IMC_IMMATURE_CLASS_NO_TOSTRING" /> <!-- Let me skip toString() -->
33+ <Bug pattern =" CRLF_INJECTION_LOGS" /> <!-- Let me inject /n/r into logs -->
34+ </Or >
35+ </Match >
36+
2837 <Match >
29- <!-- TODO: Remove once SpotBugs fully supports Java 11 (JENKINS-53720) -->
30- <!-- JDK 11 generates a different binary code than expected by SpotBugs -->
31- <!-- https://github.com/spotbugs/spotbugs/issues/756 -->
32- <Bug pattern =" RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE " />
38+ <!-- https://github.com/GoogleCloudPlatform/java-repo-tools/issues/171 -->
39+ <!-- query watch where a callback has to be supplied (sure it could be a separate class from a
40+ type signature standpoint, but that moves the code away from the sample) -->
41+ <Bug pattern =" SIC_INNER_SHOULD_BE_STATIC_ANON " />
3342 </Match >
34- <!-- From https://github.com/GoogleCloudPlatform/java-repo-tools/issues/123 -->
35- <!-- https://github.com/GoogleCloudPlatform/java-docs-samples/pull/2630#issuecomment-612320968 -->
36- <!-- <Bug pattern="IMC_IMMATURE_CLASS_NO_TOSTRING" />-->
37- <!-- <Bug pattern="CRLF_INJECTION_LOGS" />-->
38- <!-- <Bug pattern="LI_LAZY_INIT_STATIC" />-->
39- <!-- <Bug pattern="DLS_DEAD_LOCAL_STORE" />-->
4043
44+ <Match >
45+ <!-- https://github.com/GoogleCloudPlatform/java-repo-tools/issues/171 -->
46+ <!-- code in question is creating the initial dataset to show how queries work, and
47+ necessarily have to call the same methods a few times -->
48+ <Bug pattern =" PRMC_POSSIBLY_REDUNDANT_METHOD_CALLS" />
49+ </Match >
4150 <Match >
4251 <!-- https://github.com/spotbugs/spotbugs/issues/735 -->
4352 <Bug pattern =" UPM_UNCALLED_PRIVATE_METHOD" />
@@ -48,15 +57,36 @@ see https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html
4857 </Match >
4958
5059 <Match >
51- <!-- Samples uses this idiom a lot, so I'm turning it off -->
60+ <!-- Samples uses this idiom a lot -->
5261 <Bug pattern =" CLI_CONSTANT_LIST_INDEX" />
5362 </Match >
54- <Match >
55- <!-- https://github.com/spotbugs/spotbugs/issues/925 -->
56- <Bug pattern =" PCOA_PARTIALLY_CONSTRUCTED_OBJECT_ACCESS" />
57- </Match >
63+
5864 <Match >
5965 <!-- https://github.com/spotbugs/spotbugs/issues/293 -->
6066 <Bug pattern =" OBL_UNSATISFIED_OBLIGATION" />
6167 </Match >
68+ <Match >
69+ <!-- https://github.com/GoogleCloudPlatform/java-repo-tools/issues/136 -->
70+ <Bug pattern =" SE_NO_SERIALVERSIONID" />
71+ </Match >
72+ <Match >
73+ <!-- https://github.com/GoogleCloudPlatform/java-repo-tools/issues/136 -->
74+ <Bug pattern =" SERVLET_PARAMETER" />
75+ </Match >
76+ <Match >
77+ <!-- https://github.com/GoogleCloudPlatform/java-repo-tools/issues/136 -->
78+ <Bug pattern =" WEM_WEAK_EXCEPTION_MESSAGING" />
79+ </Match >
80+ <Match >
81+ <!-- https://github.com/GoogleCloudPlatform/java-repo-tools/issues/136 -->
82+ <Bug pattern =" ODR_OPEN_DATABASE_RESOURCE" />
83+ </Match >
84+ <Match >
85+ <!-- https://github.com/GoogleCloudPlatform/java-repo-tools/issues/136 -->
86+ <Bug pattern =" XSS_SERVLET" />
87+ </Match >
88+ <Match >
89+ <!-- https://github.com/GoogleCloudPlatform/java-repo-tools/issues/136 -->
90+ <Bug pattern =" HARD_CODE_PASSWORD" />
91+ </Match >
6292</FindBugsFilter >
0 commit comments