xref: /OpenGrok/dev/findbugs_filter.xml (revision 9ac4fa2f823a002b205e02a51e3a1e3fa2ab5f83)
1<?xml version="1.0" encoding="UTF-8"?>
2<FindBugsFilter>
3   <!-- Remove JFlex generated files from output -->
4  <Match>
5      <Field name="zzEOFDone"/>
6      <Bug code="UrF"/>
7  </Match>
8
9  <Match>
10      <Method name="yylex"/>
11      <Bug code="Bx"/>
12  </Match>
13
14  <Match>
15      <Or>
16         <Method name="zzUnpackAction"/>
17         <Method name="zzUnpackAttribute"/>
18         <Method name="zzUnpackRowMap"/>
19         <Method name="zzUnpackTrans"/>
20      </Or>
21      <Bug code="DLS"/>
22  </Match>
23
24  <Match>
25      <Method name="reInit"/>
26      <Bug code="EI2"/>
27  </Match>
28
29  <Match>
30      <Or>
31          <Field name="yychar"/>
32          <Field name="yycolumn"/>
33          <Field name="yyline"/>
34          <Field name="zzAtBOL"/>
35      </Or>
36      <Bug code="UrF"/>
37  </Match>
38
39  <!-- Some of the lex classes rename yylex() to next() -->
40  <Match>
41    <And>
42      <Or>
43        <Class name="org.opengrok.indexer.search.context.PlainLineTokenizer"/>
44        <Class name="org.opengrok.indexer.analysis.tcl.TclSymbolTokenizer"/>
45      </Or>
46      <Method name="yylex"/>
47    </And>
48    <Bug code="SF"/>
49  </Match>
50
51  <!-- ignore generated analysis classes which don't need to override equals or hashcode -->
52  <Match>
53      <Class name="~org\.opengrok\.analysis.*"/>
54      <Bug code="Eq"/>
55  </Match>
56
57</FindBugsFilter>
58