A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.pmd-code.org/latest/pmd_devdocs_building_intellij.html below:

Building PMD with IntelliJ IDEA

Table of Contents Import PMD Project
  1. Download the Community Edition of IntelliJ IDEA from https://www.jetbrains.com/idea/download/other.html.
  2. Install it, that means, extract the archive
  3. Start it with bin/idea.sh
  4. In the startup dialog, choose the button Open and select the folder, into which PMD’s repository has been cloned. Then select “Trust Project”. After that, IJ will automatically detect that PMD is a maven project and import it. Make sure, you have previously built PMD on command line via ./mvnw clean verify, as described in the general info page.
  5. If you are using IJ for the first time, you’ll need to configure the path to your installed Java SDK. You have to use at least Java 11 here. If the dialog doesn’t show automatically, you can open it with menu File > Project Structure (CTRL+ALT+SHIFT+S). On the left, choose “Platform Settings > SDK” and add your Java SDK. Then choose “Project Settings > Project” and select the SDK for PMD.
  6. Finish the wizard and wait a bit, until all PMD modules appear on the left.
Running Unit Tests Running / Debugging PMD Setting up Checkstyle

If you don’t have the Checkstyle plugin:

Once you have the Checkstyle plugin:

Formatter and inspection configuration

Import the code style settings (formatter) so that it conforms with our Checkstyle config. To do that, go to File > Settings (CTLR+ALT+S) then navigate to “Editor > Code Style > Java”. Click on the cogwheel symbol, choose “Import Scheme > IntelliJ IDEA code style XML” and choose the file intellij-idea/PMD-code-style.xml from the build-tools repository.

Take some time to tweak the inspections so that they conform to the code style, for example flagging switch statements with no default case. This takes some time but can make your code much cleaner. To do that, go to File > Settings then navigate to “Inspections > Java”.

Running the designer

The designer lives in a separate repository, that you’ll need to fork and clone first: Designer repository

git clone git@github.com:your_user_name/pmd-designer.git

See Contributing Guide of the Designer for details.

Known Issues

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4