소스 검색

Merge pull request #1673 from nextcloud/feature/noid/findbugs-ignore-generated-JsonObjectMapper

Ignore generated JsonObjectMapper
Tim Krueger 3 년 전
부모
커밋
4edd401f21
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      scripts/analysis/findbugs-results.txt
  2. 7 0
      spotbugs-filter.xml

+ 1 - 1
scripts/analysis/findbugs-results.txt

@@ -1 +1 @@
-594
+569

+ 7 - 0
spotbugs-filter.xml

@@ -6,6 +6,8 @@
   ~
   ~ @author Mario Danic
   ~ @author Andy Scherzinger
+  ~ @author Tim Krüger
+  ~ Copyright (C) 2021 Tim Krüger <t@timkrueger.me>
   ~ Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
   ~ Copyright (C) 2017-2019 Mario Danic <mario@lovelyhq.com>
   ~
@@ -60,6 +62,11 @@
         </Or>
     </Match>
 
+    <!-- Ignore generated JsonObjectMapper -->
+    <Match>
+        <Class name="~.*\$\$JsonObjectMapper.*" />
+    </Match>
+
     <Bug pattern="PATH_TRAVERSAL_IN" />
     <Bug pattern="ANDROID_EXTERNAL_FILE_ACCESS" />
     <Bug pattern="BAS_BLOATED_ASSIGNMENT_SCOPE" />