| <?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="~.*\.R(\$\w+)?" /> |
| </Match> |
| <!-- Skip the generated Manifest class (including nested classes). --> |
| <Match> |
| <Class name="~.*\.Manifest(\$\w+)?" /> |
| </Match> |
| <Bug pattern="DM_STRING_CTOR" /> |
| <!-- Ignore "reliance on default String encoding" warnings, as we're not multi-platform --> |
| <Bug pattern="DM_DEFAULT_ENCODING" /> |
| <!-- |
| Legacy code, discouraged on Android: |
| https://developer.android.com/reference/java/security/AccessController.html |
| --> |
| <Bug pattern="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED" /> |
| <!-- |
| Ignore unchecked casts. |
| See https://groups.google.com/a/chromium.org/forum/#!topic/java/xfXmNLI4SqM for details. |
| --> |
| <Bug pattern="BC_UNCONFIRMED_CAST" /> |
| |
| <!-- Ignore unused public rules and implementations thereof in instrumentation tests --> |
| <Match> |
| <Class name="~.*\.*Test" /> |
| <Field type="android.support.test.rule.UiThreadTestRule" /> |
| <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" /> |
| </Match> |
| <Match> |
| <Class name="~.*\.*Test" /> |
| <Field type="org.junit.rules.RuleChain" /> |
| <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" /> |
| </Match> |
| <Match> |
| <Class name="~.*\.*Test" /> |
| <Field type="org.junit.rules.TestRule" /> |
| <Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" /> |
| </Match> |
| |
| </FindBugsFilter> |