Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
76 views

At my job we are using the PMD cpd tool to check for code duplication in our C++ repository. This tool runs once every now and then on the entire repository, but this is quite slow. For in between ...
borisjo's user avatar
  • 194
0 votes
0 answers
62 views

I’m trying to query the EmailTemplate object in Salesforce with WITH SECURITY_ENFORCED to respect CRUD/FLS, but I get an error even though the user has access to Email Templates. List<EmailTemplate&...
Vimalganth D's user avatar
1 vote
1 answer
64 views

I am confused about where PMD looks for ruleset files. I have some rulesets I am trying to reuse from an old project in a set of mavan projects. In that project the ruleset was referenced through a ...
Árpád Magosányi's user avatar
0 votes
1 answer
44 views

I have a code snippet of deeply nested if statements and another code snippet of multiple separated if statements. These 2 cases have same CC point. Follow PMD rule (Project Mistake Detector), could ...
traccy00's user avatar
0 votes
1 answer
37 views

I want to use pmd (v7.11) to calculate the cyclic complexity of a Java file. To this end, I created file ruleset.xml with this content: <?xml version="1.0"?> <ruleset name="...
Michael Wahler's user avatar
0 votes
1 answer
102 views

I'm working on creating custom rules for checking PL/SQL in GitLab merge requests. I'm using SonarQube 9.9 (+ PL/SQL Community plugin) for analysis and report generation. SonarQube does not support ...
Zempik's user avatar
  • 107
0 votes
0 answers
33 views

I am trying to run PMD with a Java 23 project. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <version>3....
PatPanda's user avatar
  • 5,478
0 votes
1 answer
212 views

I installed the PMD using the following command: brew install pmd After installation I tried to run the PMD Designer: pmd designer And I got the following error: The environment variable JAVAFX_HOME ...
nik0x1's user avatar
  • 1,656
1 vote
1 answer
105 views

I'm running a Gradle (Kotlin) build in Java, and overall it's going well. However, the PMD report is set to automatically stop the build if the cyclomatic complexity is 5 or more. This hasn't been too ...
SimicSlaw's user avatar
1 vote
2 answers
306 views

I'm trying to comply with Salesforce Code Analyzer, but I found a strange error with an Apex class. The class was designed to be called from an Apex trigger (originally, the trigger had the logic, but ...
user15586562's user avatar
0 votes
1 answer
168 views

im sorry its very very newbie question. But I dont know where to find pmd rules for php. I am properly able to run pmd check -R rulesets/java/quickstart.xml -f text --dir MyProject But not for php ...
T. Win's user avatar
  • 3
1 vote
2 answers
161 views

I have to iterate over the request and create a new Entity List request which I can use in saveAll() method of JPA repository I am getting DU anomaly Error I am encountering is from PMD. DU - Anomaly:...
Nitin Gangwar's user avatar
0 votes
1 answer
161 views

When I build my Spring Boot 3 app (JDK 21), I get the following error while running the AWS SAM build command: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.3.1:...
Anoop Varma's user avatar
0 votes
1 answer
53 views

Hi everyone I hope you are doing well. I'm currently using "PMD" to scan and find bugs/problems in my Salesforce apex code. The following command is working fine pmd check -d “C:\...\default\...
Diego's user avatar
  • 79
0 votes
1 answer
76 views

I want to setup a quality gate that uses the PMD report. It will not allow the code to be promoted if the code coverage is less than 85% or if the code has 1 critical error or 2 high errors. I have ...
Juan 's user avatar

15 30 50 per page
1
2 3 4 5
59