<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You 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.
-->

<!-- Findbugs filtering.

Findbugs is a static code analysis tool run as part of the "check" phase of the build.
This file dictates which categories of bugs and individual false positives that we supress.

For a detailed description of findbugs bug categories, see http://findbugs.sourceforge.net/bugDescriptions.html
-->
<FindBugsFilter>
    <!-- exclude generated code -->
    <Match>
        <Class name="io.confluent.ksql.parser.SqlBaseLexer"/>
    </Match>

    <Match>
        <Class name="~io.confluent.ksql.parser.SqlBaseParser.*"/>
    </Match>

    <Match>
        <Class name="~io.confluent.ksql.benchmark.generated.*"/>
    </Match>

    <!-- false positive in Java 11, see https://github.com/spotbugs/spotbugs/issues/756 -->
    <Match>
        <Bug pattern="RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE"/>
    </Match>

    <!--
      DO NOT USE THIS EXCLUSION FILE FOR NON-GENERATED CODE

      If you really MUST suppress an error warning, do so using the @SuppressFBWarnings annotation.
  -->
</FindBugsFilter>
