File: findbugs-exclude.xml

package info (click to toggle)
velocity 1.7-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,856 kB
  • sloc: java: 41,240; xml: 15,001; sh: 180; sql: 18; makefile: 2
file content (123 lines) | stat: -rwxr-xr-x 4,704 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!--
 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.    
-->
<!-- TODO: We should be putting findBugs exclusions -->
<!-- as annotations in the source code. But that takes JDK 1.5+. -->

<FindBugsFilter>

    <!-- don't worry about deprecated things -->
    <Match>
        <Or>
            <Package name="org.apache.velocity.app.tools"/>
            <Package name="org.apache.velocity.anakia"/>
            <Package name="org.apache.velocity.convert"/>
            <Package name="org.apache.velocity.servlet"/>
            <Package name="org.apache.velocity.texen"/>
        </Or>
    </Match>

    <!-- ignore the JavaCC generated "bugs" -->
    <Match>
        <Package name="org.apache.velocity.runtime.parser"/>
        <Or>
            <Bug pattern="NM_METHOD_NAMING_CONVENTION"/>
            <Bug pattern="EI_EXPOSE_REP2"/>
            <Bug pattern="MS_PKGPROTECT"/>
            <Bug pattern="MS_OOI_PKGPROTECT"/>
            <Bug pattern="URF_UNREAD_FIELD"/>
            <Bug pattern="MS_MUTABLE_ARRAY"/>
            <Bug pattern="URF_UNREAD_FIELD"/>
            <Bug pattern="BC_UNCONFIRMED_CAST"/>
            <Bug pattern="DB_DUPLICATE_SWITCH_CLAUSES"/>
            <Bug pattern="DLS_DEAD_LOCAL_STORE"/>
        </Or>
    </Match>

    <!-- these just aren't worth changing right now -->
    <Match>
        <Class name="org.apache.velocity.app.event.ReferenceInsertionEventHandler$referenceInsertExecutor"/>
        <Bug pattern="NM_CLASS_NAMING_CONVENTION"/>
    </Match>
    <Match>
        <Or>
            <Class name="org.apache.velocity.runtime.directive.VelocimacroProxy"/>
            <Class name="org.apache.velocity.runtime.parser.ParseException"/>
            <Class name="org.apache.velocity.runtime.parser.Parser"/>
            <Class name="org.apache.velocity.util.introspection.SecureIntrospectorImpl"/>
        </Or>
        <Bug pattern="EI_EXPOSE_REP2"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.runtime.parser.ParseException"/>
        <Or>
            <Bug pattern="SBSC_USE_STRINGBUFFER_CONCATENATION"/>
            <Bug pattern="SE_BAD_FIELD"/>
        </Or>
    </Match>
    <Match>
        <Class name="org.apache.velocity.runtime.RuntimeInstance"/>
        <Bug pattern="UI_INHERITANCE_UNSAFE_GETRESOURCE"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.util.StringUtils"/>
        <Bug pattern="DM_CONVERT_CASE"/>
    </Match>

    <!-- there's actually good reason for these -->
    <Match>
        <Class name="org.apache.velocity.runtime.parser.node.ASTReference"/>
        <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.util.introspection.ClassMap$MethodCache"/>
        <Bug pattern="URF_UNREAD_FIELD"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.runtime.resource.loader.DataSourceResourceLoader"/>
        <Bug pattern="SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.runtime.directive.Define$Block"/>
        <Bug pattern="NP_TOSTRING_COULD_RETURN_NULL"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.runtime.resource.loader.FileResourceLoader"/>
        <Bug pattern="NP_LOAD_OF_KNOWN_NULL_VALUE"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.runtime.log.Log4JLogChute"/>
        <Bug pattern="DLS_DEAD_LOCAL_STORE"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.util.MapFactory"/>
        <Or>
            <Bug pattern="DE_MIGHT_IGNORE"/>
            <Bug pattern="REC_CATCH_EXCEPTION"/>
        </Or>
    </Match>
    <Match>
        <Class name="org.apache.velocity.util.introspection.SecureUberspector"/>
        <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
    </Match>
    <Match>
        <Class name="org.apache.velocity.runtime.VelocimacroFactory"/>
        <Bug pattern="IS2_INCONSISTENT_SYNC"/>
    </Match>

</FindBugsFilter>