Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The Rule Designer is a graphical tool that helps PMD users develop their custom rules

License

NotificationsYou must be signed in to change notification settings

pmd/pmd-designer

Repository files navigation

Build StatusMaven CentralJoin the chat

The Rule Designer is a graphical tool that helps PMD users develop their customrules. Main features:

testing-designer

Installation

The designer is part of PMD's binary distributions. To install a distribution, see thedocumentation page about installing PMD.

The app needs either Oracle Java 8 (which includes JavaFX) or OpenJDK 11+ and a separately installedOpenJFX distribution. VisitJavaFX - Gluon to download an SDK distribution,extract it, and set theJAVAFX_HOME environment variable.

If thebin directory of your PMD distribution is on your shell's path, then you canlaunch the app with

  • pmd designer on Linux/ OSX
  • pmd.bat designer on Windows

Alternatively, you can launch the program "from source" with Maven.

  • $ ./mvnw -Prunning exec:java will launch the program after compiling it, using the JavaFX distribution of your system
  • $ ./mvnw -Prunning,with-javafx exec:java will also add JavaFX dependencies on your classpath.You can change the version of those dependencies with eg-Dopenjfx.version=21.0.2 for OpenJFX 21.See the list of available versionshere.

Updating

The latest version of the designer currentlyworks with PMD 7.0.0 and above.You can simply replacepmd-designer-7.X.Y.jar with thelatest buildin the installation folder of your PMD distribution.

Usage

Building from source/ contributing

SeeCONTRIBUTING.md for instructions to build the project from source and setup your IDE.

Building a runnable JAR

You can package a runnable jar containing the PMD dependencies with maven. Fornow the only option is to build a jar that contains pmd-core and pmd-java:

./mvnw clean package -Dfat-java -Dpmd.core.version=7.0.0-SNAPSHOT

Thepmd.core.version property selects the version of pmd-coreand pmd-javathat will be included. The built jar can then be found in yourtarget directory.Such a jar cannot be used in a PMD distribution and must be used in astandalone fashion, otherwise classpath conflicts may arise.You can additionally enable the profilewith-javafx to include openjfx as well.

You should never run theinstall goal with the-Dfat-java property! Thiswould install the fat jar in your local repo and may cause dependency conflicts.

About

The Rule Designer is a graphical tool that helps PMD users develop their custom rules

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors10

Languages


[8]ページ先頭

©2009-2025 Movatter.jp