Hi Scott
I'm using IC2 2.3.0.3, IJ 2023.3.6 and trying to get PMD 7.0.0 working.
I'm using the quickstart ruleset from the project:
PMD 7.0.0 works from the command line with this ruleset:
C:\git\SMP2>pmd check -R ruleset.xml --file-list file.txt
[WARN] Progressbar rendering conflicts with reporting to STDOUT. No progressbar will be shown. Try running with argument -r <file> to output the report to a file instead.
[WARN] This analysis could be faster, please consider using Incremental Analysis:
https://docs.pmd-code.org/pmd-doc-7.0.0/pmd_userdocs_incremental_analysis.htmlforce-app\main\default\classes\Foo.cls:8: FieldNamingConventions: The constant field name 'leadSelector' doesn't match '[A-Z][A-Z0-9_]*'
C:\git\SMP2>pmd --version
ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê
ΓûêΓûê ΓûêΓûê
ΓûêΓûê ΓûêΓûêΓûêΓûêΓûê Γûê ΓûêΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûê
ΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê
ΓûêΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûê ΓûêΓûêΓûêΓûê ΓûêΓûê ΓûêΓûê ΓûêΓûê ΓûêΓûêΓûê
ΓûêΓûê ΓûêΓûê ΓûêΓûê ΓûêΓûê ΓûêΓûê ΓûêΓûêΓûêΓûêΓûêΓûêΓûê ΓûêΓûê
ΓûêΓûê ΓûêΓûê
ΓûêΓûêΓûêΓûê ΓûêΓûêΓûêΓûê
PMD 7.0.0 (7979570d39909195e173de05450fb1acf8b3eec5, 2024-03-22T07:17:27Z)
Java version: 22, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk-22
I have the IJ inspection set up with
PMD Distribution: C:/Program Files/pmd-bin-7.0.0
PMD ruleset: C:/git/SMP2/ruleset.xml
PMD AppExchange: (unchecked)
The log, which I attached, has this error:
java.lang.Throwable: Failed to execute PMD: net/sourceforge/pmd/RuleSetLoadException
net.sourceforge.pmd.RuleSetLoadException
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
at com.illuminatedcloud.intellij.pmd.inspection.pmd.PMDInspection.checkFile(SourceFile:253)
The IJ inspection works with PMD 6.55.0 and a ruleset without OperationWithHighCostInLoop if I remove the null coalescing operator from the source file.
I couldn't find anyone else with the same issue - do you have any ideas on where to go from here?
Thanks as always!
Peter