You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[apex] Failing PMD scans on rulesets with reference to category/apex/performance.xml/OperationWithHighCostInLoop #4737
Description:
We're running pmd scans on the apex default ruleset and the scan fails
Exception Stacktrace:
<rule ref="category/apex/performance.xml/OperationWithHighCostInLoop" message="Avoid operations in loops that can impact performances">
^^^^^ Unable to find referenced rule OperationWithHighCostInLoop; perhaps the rule name is misspelled?
<priority>3</priority>
</rule>
[main] ERROR net.sourceforge.pmd.cli - Cannot load ruleset /tmp/ruleset: An XML validation error occurred
[main] WARN net.sourceforge.pmd.cli - 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.
undefined:1
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Object.<anonymous> (/app/main.js:3:24)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain]
Steps to reproduce:
run PMD scan with the default apex ruleset on an apex class.
Activity
jsotuyod commentedon Nov 3, 2023
@BrundaSreedhar the referenced rule has just been merged into
masterlast week (see #4677) and is still unreleased. The RC4 doesn't include it.