All Projects → jensgerdes → Sonar Pmd

jensgerdes / Sonar Pmd

Licence: lgpl-3.0
☕️ PMD Plugin for SonarQube

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sonar Pmd

Sonar Dotnet
Code analyzer for C# and VB.NET projects https://redirect.sonarsource.com/plugins/vbnet.html
Stars: ✭ 466 (+235.25%)
Mutual labels:  sonarqube, static-code-analysis, static-analyzer
Sonarjs
SonarSource Static Analyzer for JavaScript and TypeScript
Stars: ✭ 696 (+400.72%)
Mutual labels:  sonarqube, static-code-analysis, static-analyzer
sonarlint4netbeans
SonarLint integration for Apache Netbeans
Stars: ✭ 23 (-83.45%)
Mutual labels:  static-code-analysis, sonarqube, static-analyzer
Sonar Java
☕️ SonarSource Static Analyzer for Java Code Quality and Security
Stars: ✭ 745 (+435.97%)
Mutual labels:  sonarqube, static-code-analysis, static-analyzer
sonar-esql-plugin
Sonar plugin to analyze ESQL-sourcecode of IBM Integration Bus projects
Stars: ✭ 26 (-81.29%)
Mutual labels:  static-code-analysis, sonarqube
Android-CICD
This repo demonstrates how to work on CI/CD for Mobile Apps 📱 using Github Actions 💊 + Firebase Distribution 🎉
Stars: ✭ 37 (-73.38%)
Mutual labels:  static-code-analysis, sonarqube
Phpstan Doctrine
Doctrine extensions for PHPStan
Stars: ✭ 338 (+143.17%)
Mutual labels:  static-code-analysis, static-analyzer
analysis-model
A library to read static analysis reports into a Java object model
Stars: ✭ 74 (-46.76%)
Mutual labels:  static-code-analysis, pmd
Prealloc
prealloc is a Go static analysis tool to find slice declarations that could potentially be preallocated.
Stars: ✭ 419 (+201.44%)
Mutual labels:  static-code-analysis, static-analyzer
Phpdoc Parser
Next-gen phpDoc parser with support for intersection types and generics
Stars: ✭ 569 (+309.35%)
Mutual labels:  static-code-analysis, static-analyzer
Grepbugs
A regex based source code scanner.
Stars: ✭ 118 (-15.11%)
Mutual labels:  static-code-analysis, static-analyzer
Phpstan
PHP Static Analysis Tool - discover bugs in your code without running it!
Stars: ✭ 10,534 (+7478.42%)
Mutual labels:  static-code-analysis, static-analyzer
static-code-analysis-plugin
A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Stars: ✭ 36 (-74.1%)
Mutual labels:  static-code-analysis, pmd
Sonar Php
🐘 SonarPHP: PHP static analyzer for SonarQube & SonarLint
Stars: ✭ 288 (+107.19%)
Mutual labels:  sonarqube, static-code-analysis
sonar-gherkin-plugin
SonarQube Cucumber Gherkin Analyzer
Stars: ✭ 33 (-76.26%)
Mutual labels:  sonarqube, static-analyzer
Sonar Jproperties Plugin
SonarQube Java Properties Analyzer
Stars: ✭ 5 (-96.4%)
Mutual labels:  sonarqube, static-analyzer
Sonarondocker
🐳 📡 Docker way of running SonarQube + any DB
Stars: ✭ 25 (-82.01%)
Mutual labels:  sonarqube, static-analyzer
nakedret
nakedret is a Go static analysis tool to find naked returns in functions greater than a specified function length.
Stars: ✭ 82 (-41.01%)
Mutual labels:  static-code-analysis, static-analyzer
eba
EBA is a static bug finder for C.
Stars: ✭ 14 (-89.93%)
Mutual labels:  static-code-analysis, static-analyzer
Phpinspectionsea
A Static Code Analyzer for PHP (a PhpStorm/Idea Plugin)
Stars: ✭ 1,211 (+771.22%)
Mutual labels:  static-code-analysis, static-analyzer

SonarQube PMD Plugin Maven Central Build Status SonarStatus SonarStatus

Sonar-PMD is a plugin that provides coding rules from PMD.

For a list of all rules and their status, see: RULES.md

Installation

The plugin is available in the SonarQube marketplace and should preferably be installed from within SonarQube (Administration --> Marketplace --> Search pmd).

Alternatively, download the latest JAR file, put it into the plugin directory (./extensions/plugins) and restart SonarQube.

Usage

Usage should be straight forward:

  1. Activate some PMD rules in your quality profile.
  2. Run an analysis.

Troubleshooting

Sonar-PMD analyzes the given source code with the Java source version defined in your Gradle or Maven project. In case you are not using one of these build tools, PMD uses the default Java version - which is 1.6.

If that does not match the version you are using, set the sonar.java.source property to tell PMD which version of Java your source code complies to.

Possible values:

  • 1.4
  • 1.5 or 5
  • 1.6 or 6
  • 1.7 or 7
  • 1.8 or 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

Description / Features

PMD Plugin 2.0 2.1 2.2 2.3 2.4.1 2.5 2.6 3.0.0 3.1.x 3.2.x 3.3.x
PMD 4.3 4.3 5.1.1 5.2.1 5.3.1 5.4.0 5.4.2 5.4.2 6.9.0 6.10.0 6.30.0
Max. supported Java Version 1.7 1.8 1.8 11 15
Min. SonarQube Version 4.5.4 4.5.4 6.6 6.7

A majority of the PMD rules have been rewritten in the Java plugin. Rewritten rules are marked "Deprecated" in the PMD plugin, but a concise summary of replaced rules is available.

Rules on test

PMD tool provides some rules that can check the code of JUnit tests. Please note that these rules (and only these rules) will be applied only on the test files of your project.

License

Sonar-PMD is licensed under the GNU Lesser General Public License, Version 3.0.

Parts of the rule descriptions displayed in SonarQube have been extracted from PMD and are licensed under a BSD-style license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].