The following pages and posts are tagged with
Title | Type | Excerpt |
---|---|---|
Ant Task Usage | Page | PMD Description Runs a set of static code analysis rules on some source code files and generates a list of problems found. Installation Before you can use the pmd task in your ant build.xml file, you need to install PMD and its libraries into ant’s... |
Best Practices | Page | Choose the rules that are right for you Running every existing rule will result in a huge number of rule violations, most of which will be unimportant. Having to sort through a thousand line report to find the few you’re really interested in takes all the fun out of... |
Continuous Integrations plugins | Page | Introduction PMD can be integrate through some of the Continuous Integration tools that exist now. Here is a list of known (to us) plugin to do so. Hudson Plugin Hafner Ullrich has developed a PMD plugin for Hudson. Please check the plugin homepage for more info. <h2... |
PMD CLI reference | Page | Full reference for PMD's command-line interface, including options, output formats and supported languages |
Configuring rules | Page | Learn how to configure your rules directly from the ruleset XML. |
Finding duplicated code with CPD | Page | Learn how to use CPD, the copy-paste detector shipped with PMD. |
Defining rule properties | Page | Learn how to define your own properties both for Java and XPath rules. |
The rule designer | Page | Learn about the usage and features of the rule designer. |
Incremental Analysis | Page | Explains how to use incremental analysis to speed up analysis |
Installation and basic CLI usage | Page | Sums up the first steps to set up a CLI installation and get started using PMD |
Making rulesets | Page | A ruleset is an XML configuration file, which describes a collection of rules to be executed in a PMD run. PMD includes built-in rulesets to run quick analys... |
Maven PMD Plugin | Page | Maven 2 and 3 Running the pmd plugin Generating a project report To include the PMD report in the project reports section add the following lines under the reports element in your pom.xml: <project> ... <reporting> <plugins> <plugin> <span... |
Using and defining code metrics for custom rules | Page | Since version 6.0.0, PMD is enhanced with the ability to compute code metrics on Java and Apex source (the so-called Metrics Framework). This framework provi... |
Rule guidelines | Page | Rule Guidelines |
Suppressing warnings | Page | Learn how to suppress some rule violations, from the source code using annotations or comments, or globally from the ruleset |
Testing your rules | Page | Learn how to use PMD's simple test framework for unit testing rules. |
Tools / Integrations | Page | ## Automated Code Review ### Codacy [Codacy](https://www.codacy.com/) automates code reviews and monitors code quality on every commit and pull request. It gives visibility into the technical debt and it can track code style and security issues, code coverage, code duplication, cyclomatic complexity and enforce best practices. Codacy is static analysis... |
Writing a custom rule | Page | Learn how to write a custom rule for PMD |
Writing XPath rules | Page | Writing XPath rules for PMD |