-
Couldn't load subscription status.
- Fork 162
Activate PMD Apex rules #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
# Conflicts: # scripts/pmd7_rules_xml_generator.groovy # sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdTemplate.java
# Conflicts: # scripts/pmd7_rules_xml_generator.groovy
# Conflicts: # pom.xml # sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/AbstractPmdExecutor.java # sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdPlugin.java # sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java # sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdPluginTest.java # sonar-pmd-plugin/src/test/java/org/sonar/plugins/pmd/PmdSensorTest.java
|
# Conflicts: # integration-test/pom.xml # integration-test/src/test/java/com/sonar/it/java/suite/PmdIT.java # integration-test/src/test/java/com/sonar/it/java/suite/PmdKotlinIT.java # integration-test/src/test/java/com/sonar/it/java/suite/TestUtils.java # integration-test/src/test/java/com/sonar/it/java/suite/orchestrator/PmdTestOrchestrator.java # pom.xml # scripts/pmd7_rules_xml_generator.groovy # sonar-pmd-plugin/pom.xml # sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdConstants.java # sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdPlugin.java
# Conflicts: # integration-test/src/test/java/com/sonar/it/java/suite/PmdIT.java
|







This builds on top of the
master-activate-kotlin-sensorbranch and is work-in-progress.This solves #361
This is a working version with Apex PMD rules. You can try it out if you download the zip file of the PR build.
There is unfinished work:
Found out there is also a Sonar Apex plugin, so that will probably define a Sonar way and also the Apex language. E.g. see apex:AS3923 violation on our integration test.
Sonar Apex rules are part of the Enterprise Edition, so not all users will have the parent Apex Sonar plugin. How to deal with language and initial Apex profile? Can be done conditional?
We can now add
teststag for test only. Which Apex rules apply? Can maybe be mapped automatically based on message?It is still bigger that Java/Kotlin, but maybe Apex just needs more jars. It is now 41MB.