root/trunk/src/java/org/jcoderz/phoenix/report/ftf/javac.xml

Revision 1498, 4.9 kB (checked in by amandel, 3 years ago)

- Get code line position information by caret as used by the java compiler.
- Support multiline messages in log files.

Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<findingTypeFormatDescription xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../xml/schema/finding-type-format-description.xsd">
3  <staticTypeInfo>
4    <name>javac</name>
5    <version>1.5</version>
6    <findingReportFilenamePattern>javac.log</findingReportFilenamePattern>
7  </staticTypeInfo>
8  <rootType>
9    <symbol>javac-lint</symbol>
10    <pattern>^(((.:)?[^:\n]+):(([0-9]+):)? )?(warning|error): ([\u0000-\uffff]*)\Z</pattern>
11    <severity>code-style</severity>
12    <textPos>7</textPos>
13    <filenamePos>2</filenamePos>
14    <lineStartPos>5</lineStartPos>
15  </rootType>
16  <findingType>
17    <symbol>JavacWarning</symbol>
18    <shortDescription>Javac warning.</shortDescription>
19    <description>A generic warning from the java compiler.</description>
20    <pattern>^(.*)$</pattern>
21    <priority>-99</priority>
22    <severity>code-style</severity>
23  </findingType>
24  <findingType>
25    <symbol>JavacUncheckedCall</symbol>
26    <shortDescription>Unchecked call.</shortDescription>
27    <pattern>^\[unchecked\] unchecked call to (.*) as a member of the raw type (.*)$</pattern>
28    <severity>design</severity>
29    <columnStartPos>caret</columnStartPos>
30  </findingType>
31  <findingType>
32    <symbol>JavacUncheckedConversion</symbol>
33    <shortDescription>Unchecked conversion.</shortDescription>
34    <pattern>^\[unchecked\] unchecked conversion\nfound   : (.*)\nrequired: (.*)$</pattern>
35    <severity>design</severity>
36    <columnStartPos>caret</columnStartPos>
37  </findingType>
38  <findingType>
39    <symbol>JavacUncheckedCast</symbol>
40    <shortDescription>Unchecked cast.</shortDescription>
41    <pattern>^\[unchecked\] unchecked cast\nfound   : (.*)\nrequired: (.*)$</pattern>
42    <severity>code-style</severity>
43    <columnStartPos>caret</columnStartPos>
44  </findingType>
45  <findingType>
46    <symbol>JavacUncheckedOverrideReturn</symbol>
47    <shortDescription>Return type requires unchecked conversion.</shortDescription>
48    <pattern>(.*); return type requires unchecked conversion\nfound   : (.*)\nrequired: (.*)$</pattern>
49    <severity>design</severity>
50    <columnStartPos>caret</columnStartPos>
51  </findingType>
52  <findingType>
53    <symbol>JavacUncheckedMethodInvocation</symbol>
54    <shortDescription>Unchecked method invocation.</shortDescription>
55    <pattern>\[unchecked\] unchecked method invocation: (.*) in (.*) is applied to (.*)\((.*)\)</pattern>
56    <severity>design</severity>
57    <columnStartPos>caret</columnStartPos>
58  </findingType>
59  <findingType>
60    <symbol>JavacDeprecationAnnotation</symbol>
61    <shortDescription>Deprecated name is not annotated as such.</shortDescription>
62    <description>
63        A name is marked as deprecated via a javadoc tag, but the equivalent annotation
64        is not set.
65    </description>
66    <pattern>\[dep-ann\] deprecated name isnt annotated with @Deprecated</pattern>
67    <severity>design</severity>
68    <columnStartPos>caret</columnStartPos>
69  </findingType>
70  <findingType>
71    <symbol>JavacDeprecated</symbol>
72    <shortDescription>The used element had been deprecated.</shortDescription>
73    <pattern>(\[deprecation\])? (.*) in (.*) has been deprecated</pattern>
74    <severity>design</severity>
75    <columnStartPos>caret</columnStartPos>
76  </findingType>
77  <findingType>
78    <symbol>JavacSerialMissingSerialVersionUid</symbol>
79    <shortDescription>The class is serializable but has no serialVersionUID defined.</shortDescription>
80    <pattern>\[serial\] serializable class (.*) has no definition of serialVersionUID</pattern>
81    <severity>design</severity>
82    <columnStartPos>caret</columnStartPos>
83  </findingType>
84  <findingType>
85    <symbol>JavacFallThroughPossible</symbol>
86    <shortDescription>Switch block has a possible fall-trough issue.</shortDescription>
87    <pattern>\[fallthrough\] possible fall-through into case</pattern>
88    <severity>design</severity>
89    <columnStartPos>caret</columnStartPos>
90  </findingType>
91  <findingType>
92    <symbol>JavacPathBadDirectoryElement</symbol>
93    <shortDescription>Element on the path was not found.</shortDescription>
94    <global>true</global>
95    <pattern>\[path\] bad path element "(.*)": no such directory</pattern>
96    <severity>design</severity>
97  </findingType>
98  <findingType>
99    <symbol>JavacPathBadElement</symbol>
100    <shortDescription>Element on the path was not found.</shortDescription>
101    <global>true</global>
102    <pattern>\[path\] bad path element "(.*)": no such file or directory</pattern>
103    <severity>design</severity>
104  </findingType>
105  <findingType>
106    <symbol>JavacRedundantCast</symbol>
107    <shortDescription>Redundant cast.</shortDescription>
108    <pattern>\[cast\] redundant cast to (.*)</pattern>
109    <severity>code-style</severity>
110    <columnStartPos>caret</columnStartPos>
111  </findingType>
112</findingTypeFormatDescription>
Note: See TracBrowser for help on using the browser.