PMD-Intellij icon indicating copy to clipboard operation
PMD-Intellij copied to clipboard

Cannot add ruleset with JSP/PLSQL rules.

Open gbq6 opened this issue 4 months ago • 0 comments

When trying to add the below ruleset, I'm getting the following error:

The selected file/URL is not valid for PMD 7. PMD: Cannot load ruleset category/plsql/bestpractices.xml: cannot resolve rule/ruleset reference 'category/plsql/bestpractices.xml'. Make sure the resource is a valid file or URL
<?xml version="1.0" encoding="UTF-8"?>

<ruleset name="My Rules"
         xmlns="http://pmd.sourceforge.net/ruleset/2.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://pmd.sourceforge.net/ruleset/2.0.0 http://pmd.sourceforge.net/ruleset_2_0_0.xsd">

    <rule ref="category/plsql/bestpractices.xml" />
    <rule ref="category/plsql/codestyle.xml" />
    <rule ref="category/plsql/design.xml" />
    <rule ref="category/plsql/errorprone.xml" />

    <rule ref="category/jsp/bestpractices.xml" />
    <rule ref="category/jsp/codestyle.xml" />
    <rule ref="category/jsp/design.xml" />
    <rule ref="category/jsp/errorprone.xml" />
    <rule ref="category/jsp/security.xml" />

</ruleset>

Note: I have tried without the first reported rule, without PL/SQL rules and with single rules as well, but got the same result.

Plugin version: 2.0.9 IntelliJ version: 2025.2.2

gbq6 avatar Sep 22 '25 10:09 gbq6