forked from phoedos/pmd
[doc] Add PMD report format page
This commit is contained in:
parent
17c6e30c28
commit
9fd9ebe4a9
@ -55,6 +55,9 @@ entries:
|
||||
- title: PMD CLI reference
|
||||
url: /pmd_userdocs_cli_reference.html
|
||||
output: web, pdf
|
||||
- title: PMD Report formats
|
||||
url: /pmd_userdocs_report_formats.html
|
||||
output: web, pdf
|
||||
- title: null
|
||||
output: web, pdf
|
||||
subfolders:
|
||||
|
@ -198,76 +198,5 @@ Example:
|
||||
## Available Report Formats
|
||||
|
||||
PMD comes with many different renderers.
|
||||
The mnemonics in bold are used to select them on the command line, as
|
||||
arguments to the `-format` option. Some formats accept *properties*,
|
||||
which can be specified with the `-property` option on the command-line.
|
||||
All formats are described at [PMD Report formats](pmd_userdos_report_formats.html)
|
||||
|
||||
* **codeclimate**: Renderer for Code Climate JSON format.
|
||||
|
||||
* **csv**: Comma-separated values tabular format.
|
||||
|
||||
Properties:
|
||||
|
||||
* problem: Include problem column. Default: true.
|
||||
* package: Include package column. Default: true.
|
||||
* file: Include file column. Default: true.
|
||||
* priority: Include priority column. Default: true.
|
||||
* line: Include line column. Default: true.
|
||||
* desc: Include description column. Default: true.
|
||||
* ruleSet: Include Rule set column. Default: true.
|
||||
* rule: Include Rule column. Default: true.
|
||||
|
||||
* **emacs**: GNU Emacs integration.
|
||||
|
||||
* **html**: HTML format.
|
||||
|
||||
Properties:
|
||||
|
||||
* linePrefix: Prefix for line number anchor in the source file.
|
||||
* linkPrefix: Path to HTML source.
|
||||
|
||||
* **ideaj**: IntelliJ IDEA integration.
|
||||
|
||||
Properties:
|
||||
|
||||
* classAndMethodName: Class and method name, pass `.method` when processing a directory.
|
||||
* sourcePath:
|
||||
* fileName:
|
||||
|
||||
* **summaryhtml**: Summary HTML format.
|
||||
|
||||
Properties:
|
||||
|
||||
* linePrefix: Prefix for line number anchor in the source file.
|
||||
* linkPrefix: Path to HTML source.
|
||||
|
||||
* **text**: Text format.
|
||||
|
||||
* **textcolor**: Text format, with color support (requires ANSI console support, e.g. xterm, rxvt, etc.).
|
||||
|
||||
Properties:
|
||||
|
||||
* color: Enables colors with anything other than `false` or `0`. Default: yes.
|
||||
|
||||
* **textpad**: TextPad integration.
|
||||
|
||||
* **vbhtml**: Vladimir Bossicard HTML format.
|
||||
|
||||
* **xml**: XML format.
|
||||
|
||||
Properties:
|
||||
|
||||
* encoding: XML encoding format, defaults to UTF-8.
|
||||
|
||||
* **xslt**: XML with a XSL transformation applied.
|
||||
|
||||
Properties:
|
||||
|
||||
* encoding: XML encoding format, defaults to UTF-8.
|
||||
* xsltFilename: The XSLT file name.
|
||||
|
||||
* **yahtml**: Yet Another HTML format.
|
||||
|
||||
Properties:
|
||||
|
||||
* outputDir: Output directory.
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
title: Report formats for CPD
|
||||
tags: [cpd, userdocs]
|
||||
keywords: [formats, renderers]
|
||||
summary: "Overview of the built-in report formats for CPD"
|
||||
permalink: pmd_userdocs_cpd_report_formats.html
|
||||
author: Andreas Dangel <andreas.dangel@pmd-code.org>
|
||||
|
339
docs/pages/pmd/userdocs/pmd_report_formats.md
Normal file
339
docs/pages/pmd/userdocs/pmd_report_formats.md
Normal file
File diff suppressed because it is too large
Load Diff
67
docs/report-examples/pmd-report-html.html
Normal file
67
docs/report-examples/pmd-report-html.html
Normal file
@ -0,0 +1,67 @@
|
||||
<html><head><title>PMD</title></head><body>
|
||||
<center><h3>PMD report</h3></center><center><h3>Problems found</h3></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<th>#</th><th>File</th><th>Line</th><th>Problem</th></tr>
|
||||
<tr bgcolor="lightgrey">
|
||||
<td align="center">1</td>
|
||||
<td width="*%"><a href="https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/RuleContext.java#L124">pmd-core/src/main/java/net/sourceforge/pmd/RuleContext.java</a></td>
|
||||
<td align="center" width="5%">124</td>
|
||||
<td width="*"><a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_bestpractices.html#guardlogstatement">Logger calls should be surrounded by log level guards.</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">2</td>
|
||||
<td width="*%"><a href="https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java#L58">pmd-core/src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java</a></td>
|
||||
<td align="center" width="5%">58</td>
|
||||
<td width="*"><a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_bestpractices.html#forloopcanbeforeach">This for loop can be replaced by a foreach loop</a></td>
|
||||
</tr>
|
||||
</table><hr/><center><h3>Processing errors</h3></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<th>File</th><th>Problem</th></tr>
|
||||
<tr bgcolor="lightgrey">
|
||||
<td><a href="https://github.com/pmd/pmd/blob/master/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java#">pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java</a></td>
|
||||
<td><pre>net.sourceforge.pmd.PMDException: Error while parsing pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:110)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:89)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:51)
|
||||
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:78)
|
||||
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:24)
|
||||
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
|
||||
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
|
||||
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
|
||||
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
|
||||
at java.base/java.lang.Thread.run(Thread.java:832)
|
||||
Caused by: net.sourceforge.pmd.lang.java.ast.ParseException: Encountered " "-" "- "" at line 6, column 30.
|
||||
Was expecting one of:
|
||||
"extends" ...
|
||||
"implements" ...
|
||||
"{" ...
|
||||
"<" ...
|
||||
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.generateParseException(JavaParser.java:12713)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.jj_consume_token(JavaParser.java:12597)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1554)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:732)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.TypeDeclaration(JavaParser.java:639)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.CompilationUnit(JavaParser.java:373)
|
||||
at net.sourceforge.pmd.lang.java.AbstractJavaParser.parse(AbstractJavaParser.java:62)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.parse(SourceCodeProcessor.java:121)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:185)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:107)
|
||||
... 10 more
|
||||
</pre></td>
|
||||
</tr>
|
||||
</table><hr/><center><h3>Suppressed warnings</h3></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<th>File</th><th>Line</th><th>Rule</th><th>NOPMD or Annotation</th><th>Reason</th></tr>
|
||||
<tr bgcolor="lightgrey">
|
||||
<td align="left"><a href="https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java#L505">pmd-core/src/main/java/net/sourceforge/pmd/PMD.java</a></td>
|
||||
<td align="center">505</td>
|
||||
<td align="center"><a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_errorprone.html#closeresource">CloseResource</a></td>
|
||||
<td align="center">Annotation</td>
|
||||
<td align="center"></td>
|
||||
</tr>
|
||||
</table><hr/><center><h3>Configuration errors</h3></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<th>Rule</th><th>Problem</th></tr>
|
||||
<tr bgcolor="lightgrey">
|
||||
<td><a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_design.html#loosepackagecoupling">LoosePackageCoupling</a></td>
|
||||
<td>No packages or classes specified</td>
|
||||
</tr>
|
||||
</table></body></html>
|
223
docs/report-examples/pmd-report-pmd-nicerhtml.html
Normal file
223
docs/report-examples/pmd-report-pmd-nicerhtml.html
Normal file
@ -0,0 +1,223 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns:pmd="http://pmd.sourceforge.net/report/2.0.0">
|
||||
<head>
|
||||
<title>PMD 6.22.0 Report</title>
|
||||
<style type="text/css">
|
||||
.bannercell {
|
||||
border: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
body {
|
||||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
font:normal 80% arial,helvetica,sanserif;
|
||||
background-color:#FFFFFF;
|
||||
color:#000000;
|
||||
}
|
||||
.a td {
|
||||
background: #efefef;
|
||||
}
|
||||
.b td {
|
||||
background: #fff;
|
||||
}
|
||||
th, td {
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
th {
|
||||
font-weight:bold;
|
||||
background: #ccc;
|
||||
color: black;
|
||||
}
|
||||
table, th, td {
|
||||
font-size:100%;
|
||||
border: none
|
||||
}
|
||||
table.log tr td, tr th {
|
||||
|
||||
}
|
||||
h2 {
|
||||
font-weight:bold;
|
||||
font-size:140%;
|
||||
margin-bottom: 5;
|
||||
}
|
||||
h3 {
|
||||
font-size:100%;
|
||||
font-weight:bold;
|
||||
background: #525D76;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
padding: 5px;
|
||||
margin-right: 2px;
|
||||
margin-left: 2px;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
.p1 { background:#FF9999; }
|
||||
.p2 { background:#FFCC66; }
|
||||
.p3 { background:#FFFF99; }
|
||||
.p4 { background:#99FF99; }
|
||||
.p5 { background:#a6caf0; }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a name="top"/>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td class="bannercell" rowspan="2"/>
|
||||
<td class="text-align:right">
|
||||
<h2>PMD 6.22.0 Report. Generated on 2020-04-11 - 19:23:45</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr size="1"/>
|
||||
<h3>Summary</h3>
|
||||
<table class="log" border="0" cellpadding="5" cellspacing="2" width="100%">
|
||||
<tr>
|
||||
<th style="width:25%">Files</th>
|
||||
<th>Total</th>
|
||||
<th>
|
||||
<div class="p1">Priority 1</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="p2">Priority 2</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="p3">Priority 3</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="p4">Priority 4</div>
|
||||
</th>
|
||||
<th>
|
||||
<div class="p5">Priority 5</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="a">
|
||||
<td>2</td>
|
||||
<td>2</td>
|
||||
<td>0</td>
|
||||
<td>1</td>
|
||||
<td>1</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr size="1" width="100%" align="left"/>
|
||||
<h3>Rules</h3>
|
||||
<table class="log" border="0" cellpadding="5" cellspacing="2" width="100%">
|
||||
<tr>
|
||||
<th style="width:84%">Rule</th>
|
||||
<th style="width:8%">Violations</th>
|
||||
<th style="width:8%">Severity</th>
|
||||
</tr>
|
||||
<tr class="a">
|
||||
<td>
|
||||
[Best Practices] GuardLogStatement</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
<div class="p2"> 2</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="b">
|
||||
<td>
|
||||
[Best Practices] ForLoopCanBeForeach</td>
|
||||
<td>1</td>
|
||||
<td>
|
||||
<div class="p3"> 3</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr size="1" width="100%" align="left"/>
|
||||
<h3>Files</h3>
|
||||
<table class="log" border="0" cellpadding="5" cellspacing="2" width="100%">
|
||||
<tr>
|
||||
<th>File</th>
|
||||
<th style="width:40px">
|
||||
<div class="p5">5</div>
|
||||
</th>
|
||||
<th style="width:40px">
|
||||
<div class="p4">4</div>
|
||||
</th>
|
||||
<th style="width:40px">
|
||||
<div class="p3">3</div>
|
||||
</th>
|
||||
<th style="width:40px">
|
||||
<div class="p2">2</div>
|
||||
</th>
|
||||
<th style="width:40px">
|
||||
<div class="p1">1</div>
|
||||
</th>
|
||||
</tr>
|
||||
<tr class="a">
|
||||
<td>
|
||||
<a href="#f-pmd-core_src_main_java_net_sourceforge_pmd_RuleContext.java">/home/pmd/source/pmd-core/src/main/java/net/sourceforge/pmd/RuleContext.java</a>
|
||||
</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>1</td>
|
||||
<td>0</td>
|
||||
</tr>
|
||||
<tr class="b">
|
||||
<td>
|
||||
<a href="#f-pmd-core_src_main_java_net_sourceforge_pmd_benchmark_Benchmarker.java">/home/pmd/source/pmd-core/src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java</a>
|
||||
</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
<td>1</td>
|
||||
<td>0</td>
|
||||
<td>0</td>
|
||||
</tr>
|
||||
</table>
|
||||
<hr size="1" width="100%" align="left"/>
|
||||
<a name="f-pmd-core_src_main_java_net_sourceforge_pmd_RuleContext.java"/>
|
||||
<h3>File /home/pmd/source/pmd-core/src/main/java/net/sourceforge/pmd/RuleContext.java</h3>
|
||||
<table class="log" border="0" cellpadding="5" cellspacing="2" width="100%">
|
||||
<tr>
|
||||
<th style="width:60px;">Violation</th>
|
||||
<th>Error Description</th>
|
||||
<th style="width:40px;">Line</th>
|
||||
</tr>
|
||||
<tr class="a">
|
||||
<td>
|
||||
<div class="p2">2</div>
|
||||
</td>
|
||||
<td>
|
||||
[Best Practices.GuardLogStatement]
|
||||
-
|
||||
<a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_bestpractices.html#guardlogstatement">
|
||||
Logger calls should be surrounded by log level guards.
|
||||
</a>
|
||||
</td>
|
||||
<td>124 - 125</td>
|
||||
</tr>
|
||||
</table>
|
||||
<a href="#top">Back to top</a>
|
||||
<a name="f-pmd-core_src_main_java_net_sourceforge_pmd_benchmark_Benchmarker.java"/>
|
||||
<h3>File /home/pmd/source/pmd-core/src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java</h3>
|
||||
<table class="log" border="0" cellpadding="5" cellspacing="2" width="100%">
|
||||
<tr>
|
||||
<th style="width:60px;">Violation</th>
|
||||
<th>Error Description</th>
|
||||
<th style="width:40px;">Line</th>
|
||||
</tr>
|
||||
<tr class="a">
|
||||
<td>
|
||||
<div class="p3">3</div>
|
||||
</td>
|
||||
<td>
|
||||
[Best Practices.ForLoopCanBeForeach]
|
||||
-
|
||||
<a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_bestpractices.html#forloopcanbeforeach">
|
||||
This for loop can be replaced by a foreach loop
|
||||
</a>
|
||||
</td>
|
||||
<td>58 - 62</td>
|
||||
</tr>
|
||||
</table>
|
||||
<a href="#top">Back to top</a>
|
||||
<hr size="1" width="100%" align="left"/>
|
||||
</body>
|
||||
</html>
|
74
docs/report-examples/pmd-report-summaryhtml.html
Normal file
74
docs/report-examples/pmd-report-summaryhtml.html
Normal file
@ -0,0 +1,74 @@
|
||||
<html><head><title>PMD</title></head><body>
|
||||
<center><h2>Summary</h2></center>
|
||||
<table align="center" cellspacing="0" cellpadding="3">
|
||||
<tr><th>Rule name</th><th>Number of violations</th></tr>
|
||||
<tr><td>GuardLogStatement</td><td align=center>1</td></tr>
|
||||
<tr><td>ForLoopCanBeForeach</td><td align=center>1</td></tr>
|
||||
</table>
|
||||
<center><h2>Detail</h2></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<center><h3>PMD report</h3></center><center><h3>Problems found</h3></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<th>#</th><th>File</th><th>Line</th><th>Problem</th></tr>
|
||||
<tr bgcolor="lightgrey">
|
||||
<td align="center">1</td>
|
||||
<td width="*%"><a href="https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/RuleContext.java#L124">pmd-core/src/main/java/net/sourceforge/pmd/RuleContext.java</a></td>
|
||||
<td align="center" width="5%">124</td>
|
||||
<td width="*"><a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_bestpractices.html#guardlogstatement">Logger calls should be surrounded by log level guards.</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">2</td>
|
||||
<td width="*%"><a href="https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java#L58">pmd-core/src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java</a></td>
|
||||
<td align="center" width="5%">58</td>
|
||||
<td width="*"><a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_bestpractices.html#forloopcanbeforeach">This for loop can be replaced by a foreach loop</a></td>
|
||||
</tr>
|
||||
</table><hr/><center><h3>Processing errors</h3></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<th>File</th><th>Problem</th></tr>
|
||||
<tr bgcolor="lightgrey">
|
||||
<td><a href="https://github.com/pmd/pmd/blob/master/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java#">pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java</a></td>
|
||||
<td><pre>net.sourceforge.pmd.PMDException: Error while parsing pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:110)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:89)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:51)
|
||||
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:78)
|
||||
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:1)
|
||||
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
|
||||
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
|
||||
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
|
||||
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
|
||||
at java.base/java.lang.Thread.run(Thread.java:834)
|
||||
Caused by: net.sourceforge.pmd.lang.java.ast.ParseException: Encountered " "-" "- "" at line 6, column 30.
|
||||
Was expecting one of:
|
||||
"extends" ...
|
||||
"implements" ...
|
||||
"{" ...
|
||||
"<" ...
|
||||
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.generateParseException(JavaParser.java:12731)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.jj_consume_token(JavaParser.java:12615)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1574)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:779)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.TypeDeclaration(JavaParser.java:686)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.CompilationUnit(JavaParser.java:420)
|
||||
at net.sourceforge.pmd.lang.java.AbstractJavaParser.parse(AbstractJavaParser.java:62)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.parse(SourceCodeProcessor.java:121)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:185)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:107)
|
||||
... 10 more
|
||||
</pre></td>
|
||||
</tr>
|
||||
</table><hr/><center><h3>Suppressed warnings</h3></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<th>File</th><th>Line</th><th>Rule</th><th>NOPMD or Annotation</th><th>Reason</th></tr>
|
||||
<tr bgcolor="lightgrey">
|
||||
<td align="left"><a href="https://github.com/pmd/pmd/blob/master/pmd-core/src/main/java/net/sourceforge/pmd/PMD.java#L505">pmd-core/src/main/java/net/sourceforge/pmd/PMD.java</a></td>
|
||||
<td align="center">505</td>
|
||||
<td align="center"><a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_errorprone.html#closeresource">CloseResource</a></td>
|
||||
<td align="center">Annotation</td>
|
||||
<td align="center"></td>
|
||||
</tr>
|
||||
</table><hr/><center><h3>Configuration errors</h3></center><table align="center" cellspacing="0" cellpadding="3"><tr>
|
||||
<th>Rule</th><th>Problem</th></tr>
|
||||
<tr bgcolor="lightgrey">
|
||||
<td><a href="https://pmd.github.io/pmd-6.22.0/pmd_rules_java_design.html#loosepackagecoupling">LoosePackageCoupling</a></td>
|
||||
<td>No packages or classes specified</td>
|
||||
</tr>
|
||||
</table></tr></table></body></html>
|
42
docs/report-examples/pmd-report-vbhtml.html
Normal file
42
docs/report-examples/pmd-report-vbhtml.html
Normal file
@ -0,0 +1,42 @@
|
||||
<html><head><title>PMD</title></head><style type="text/css"><!--
|
||||
body { background-color: white; font-family:verdana, arial, helvetica, geneva; font-size: 16px; font-style: italic; color: black; }
|
||||
.title { font-family: verdana, arial, helvetica,geneva; font-size: 12px; font-weight:bold; color: white; }
|
||||
.body { font-family: verdana, arial, helvetica, geneva; font-size: 12px; font-weight:plain; color: black; }
|
||||
#TableHeader { background-color: #003366; }
|
||||
#RowColor1 { background-color: #eeeeee; }
|
||||
#RowColor2 { background-color: white; }
|
||||
--></style><body><center><table border="0" width="80%"><tr id=TableHeader><td colspan="2"><font class=title> /home/pmd/source/pmd-core/src/main/java/net/sourceforge/pmd/RuleContext.java</font></tr>
|
||||
<tr id=RowColor2><td width="50" align="right"><font class=body>124 </font></td><td><font class=body>Logger calls should be surrounded by log level guards.</font></td></tr>
|
||||
</table><table border="0" width="80%"><tr id=TableHeader><td colspan="2"><font class=title> /home/pmd/source/pmd-core/src/main/java/net/sourceforge/pmd/benchmark/Benchmarker.java</font></tr>
|
||||
<tr id=RowColor2><td width="50" align="right"><font class=body>58 </font></td><td><font class=body>This for loop can be replaced by a foreach loop</font></td></tr>
|
||||
</table><br><table border="0" width="80%"><tr id=TableHeader><td colspan="2"><font class=title> Problems found</font></td></tr><tr id=RowColor2><td><font class=body>/home/pmd/source/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java</font></td><td><font class=body><pre>net.sourceforge.pmd.PMDException: Error while parsing /home/pmd/source/pmd-core/src/test/resources/net/sourceforge/pmd/cpd/files/file_with_ISO-8859-1_encoding.java
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:110)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:89)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:51)
|
||||
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:78)
|
||||
at net.sourceforge.pmd.processor.PmdRunnable.call(PmdRunnable.java:24)
|
||||
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
|
||||
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
|
||||
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
|
||||
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
|
||||
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
|
||||
at java.base/java.lang.Thread.run(Thread.java:832)
|
||||
Caused by: net.sourceforge.pmd.lang.java.ast.ParseException: Encountered " "-" "- "" at line 6, column 30.
|
||||
Was expecting one of:
|
||||
"extends" ...
|
||||
"implements" ...
|
||||
"{" ...
|
||||
"<" ...
|
||||
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.generateParseException(JavaParser.java:12713)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.jj_consume_token(JavaParser.java:12597)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.ClassOrInterfaceBody(JavaParser.java:1554)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.ClassOrInterfaceDeclaration(JavaParser.java:732)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.TypeDeclaration(JavaParser.java:639)
|
||||
at net.sourceforge.pmd.lang.java.ast.JavaParser.CompilationUnit(JavaParser.java:373)
|
||||
at net.sourceforge.pmd.lang.java.AbstractJavaParser.parse(AbstractJavaParser.java:62)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.parse(SourceCodeProcessor.java:121)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:185)
|
||||
at net.sourceforge.pmd.SourceCodeProcessor.processSourceCodeWithoutCache(SourceCodeProcessor.java:107)
|
||||
... 10 more
|
||||
</pre></font></td></tr></table><table border="0" width="80%"><tr id=TableHeader><td colspan="2"><font class=title> Configuration problems found</font></td></tr><tr id=RowColor2><td><font class=body>LoosePackageCoupling</font></td><td><font class=body>No packages or classes specified</font></td></tr></table></center></body></html>
|
15
docs/report-examples/pmd-report-yahtml/Benchmarker.html
Normal file
15
docs/report-examples/pmd-report-yahtml/Benchmarker.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PMD - Benchmarker</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Class View</h2>
|
||||
<h3 align="center">Class: Benchmarker</h3>
|
||||
<table border="" align="center" cellspacing="0" cellpadding="3">
|
||||
<tr><th>Method</th><th>Violation</th></tr>
|
||||
<tr><td>findBooleanSwitch</td><td><table border="0"><tr><td><b>Rule:</b></td><td>ForLoopCanBeForeach</td></tr><tr><td><b>Description:</b></td><td>This for loop can be replaced by a foreach loop</td></tr><tr><td><b>Line:</b></td><td>58 and 62</td></tr></table></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
15
docs/report-examples/pmd-report-yahtml/RuleContext.html
Normal file
15
docs/report-examples/pmd-report-yahtml/RuleContext.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PMD - RuleContext</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Class View</h2>
|
||||
<h3 align="center">Class: RuleContext</h3>
|
||||
<table border="" align="center" cellspacing="0" cellpadding="3">
|
||||
<tr><th>Method</th><th>Violation</th></tr>
|
||||
<tr><td>setSourceCodeFilename</td><td><table border="0"><tr><td><b>Rule:</b></td><td>GuardLogStatement</td></tr><tr><td><b>Description:</b></td><td>Logger calls should be surrounded by log level guards.</td></tr><tr><td><b>Line:</b></td><td>124 and 125</td></tr></table></td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
20
docs/report-examples/pmd-report-yahtml/index.html
Normal file
20
docs/report-examples/pmd-report-yahtml/index.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PMD</title>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Package View</h2>
|
||||
<table border="1" align="center" cellspacing="0" cellpadding="3">
|
||||
<tr><th>Package</th><th>Class</th><th>#</th></tr>
|
||||
<tr><td><b>Aggregate</b></td> <td>-</td> <td>2</td></tr>
|
||||
<tr><td><b>net</b></td> <td>-</td> <td>2</td></tr>
|
||||
<tr><td><b>net.sourceforge</b></td> <td>-</td> <td>2</td></tr>
|
||||
<tr><td><b>net.sourceforge.pmd</b></td> <td>-</td> <td>2</td></tr>
|
||||
<tr><td><b>net.sourceforge.pmd</b></td> <td><a href="RuleContext.html">RuleContext</a></td> <td>1</td></tr>
|
||||
<tr><td><b>net.sourceforge.pmd.benchmark</b></td> <td>-</td> <td>1</td></tr>
|
||||
<tr><td><b>net.sourceforge.pmd.benchmark</b></td> <td><a href="Benchmarker.html">Benchmarker</a></td> <td>1</td></tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user