All Downloads are FREE. Search and download functionalities are using the official Maven repository.

global-build-tools.spotbugs-exclude.xml Maven / Gradle / Ivy

There is a newer version: 31
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  wcm.io
  %%
  Copyright (C) 2017 wcm.io
  %%
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  #L%
  -->

<FindBugsFilter
    xmlns="https://github.com/spotbugs/filter/3.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="https://github.com/spotbugs/filter/3.0.0 https://raw.githubusercontent.com/spotbugs/spotbugs/3.1.0/spotbugs/etc/findbugsfilter.xsd">

  <!-- see http://spotbugs.readthedocs.io/en/latest/filter.html -->

  <!-- Disable some specifc spotbugs checks -->
  <Match>

    <Bug pattern="
        BC_IMPOSSIBLE_INSTANCEOF,
        BC_UNCONFIRMED_CAST,
        BC_VACUOUS_INSTANCEOF,
        DLS_DEAD_LOCAL_STORE,
        DM_CONVERT_CASE,
        EI_EXPOSE_REP,
        EI_EXPOSE_REP2,
        NM_SAME_SIMPLE_NAME_AS_INTERFACE,
        NM_SAME_SIMPLE_NAME_AS_SUPERCLASS,
        SE_INNER_CLASS,
        SIC_INNER_SHOULD_BE_STATIC_ANON,
        UR_UNINIT_READ,
        UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR,
        VA_FORMAT_STRING_USES_NEWLINE
    "/>

  </Match>

  <Match>

    <!-- Ignore unit tes classs -->
    <Class name="~.*\.*Test" />

    <Not>
      <Bug code="IJU" /> <!-- 'IJU' is the code for bugs related to JUnit test code -->
    </Not>

  </Match>

</FindBugsFilter>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy