blob: 2f7bde57097822e9b9feda85c41eab1b06f1df40 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!--
Documentation: http://findbugs.sourceforge.net/manual/filter.html
In particular, ~ at the start of a string means it's a regex.
-->
<FindBugsFilter>
<!-- Skip the generated resource classes (including nested classes). -->
<Match>
<Class name="~org\.chromium\..*\.R(\$\w+)?" />
</Match>
<Match>
<Class name="~org\.chromium\..*\.Manifest(\$\w+)?" />
</Match>
<!-- Ignore bugs in NativeLibraries.java (the auto-generation confuses findbugs). -->
<Match>
<Class name="~org\.chromium\.content\..*\.NativeLibraries.*?" />
</Match>
<!--
Ignore bugs in CleanupReferenceTest.java (redundant null check)
TODO(joth): Group all GC related tests and filter them out, since the null
check is necessary to make sure the nullification is flushed to memory.
-->
<Match>
<Class name="~org\.chromium\.content\..*\.CleanupReferenceTest.*?" />
</Match>
<!-- Ignore errors in JavaBridge due to reflection. -->
<Match>
<Class name="~.*\.JavaBridge.*"/>
<Bug code="UuF,UrF,UMAC" />
</Match>
<!-- "Struct" like classes expect to have unused public data members -->
<Match>
<Class name="~.*android_webview.*FileChooserParams"/>
<Bug code="UrF" />
</Match>
<!-- Ignore "reliance on default String encoding" warnings, as we're not multi-platform -->
<Bug pattern="DM_DEFAULT_ENCODING" />
<!-- Ignore bugs that are often false-positives in test code -->
<Match>
<Class name="~org\.chromium\..*Test(\$\w+)?" />
<Or>
<Bug code="DLS,UrF" />
<Bug pattern="DM_GC" />
</Or>
</Match>
</FindBugsFilter>