pmd7_2 took 12 seconds to run and found 12 violations
pmd7_3 took 15 seconds to run and found 12 violations
Among the 12 total comparisons:
Violation counts:
# | fileName | line | column | endLine | endColumn | engine | ruleName | severity | category | url | message |
---|---|---|---|---|---|---|---|---|---|---|---|
1 | /force-app/main/default/classes/Demo.cls | 1 | 21 | 8 | 2 | pmd | ApexDoc | 3 | Documentation | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_documentation.html#apexdoc | Missing ApexDoc comment |
1 | /force-app/main/default/classes/Demo.cls | 1 | 21 | 8 | 2 | pmd | ApexDoc | 3 | Documentation | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_documentation.html#apexdoc | Missing ApexDoc comment |
2 | /force-app/main/default/classes/Demo.cls | 3 | 17 | 7 | 4 | pmd | ApexDoc | 3 | Documentation | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_documentation.html#apexdoc | Missing ApexDoc comment |
2 | /force-app/main/default/classes/Demo.cls | 3 | 17 | 7 | 4 | pmd | ApexDoc | 3 | Documentation | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_documentation.html#apexdoc | Missing ApexDoc comment |
3 | /force-app/main/default/classes/Demo.cls | 3 | 17 | 7 | 4 | pmd | MethodNamingConventions | 1 | Code Style | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_codestyle.html#methodnamingconventions | The static method name 'Demo' doesn't match '[a-z][a-zA-Z0-9]*' |
3 | /force-app/main/default/classes/Demo.cls | 3 | 17 | 7 | 4 | pmd | MethodNamingConventions | 1 | Code Style | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_codestyle.html#methodnamingconventions | The static method name 'Demo' doesn't match '[a-z][a-zA-Z0-9]*' |
4 | /force-app/main/default/classes/Demo.cls | 3 | 17 | 7 | 4 | pmd | MethodWithSameNameAsEnclosingClass | 3 | Error Prone | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_errorprone.html#methodwithsamenameasenclosingclass | Classes should not have non-constructor methods with the same name as the class |
4 | /force-app/main/default/classes/Demo.cls | 3 | 17 | 7 | 4 | pmd | MethodWithSameNameAsEnclosingClass | 3 | Error Prone | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_errorprone.html#methodwithsamenameasenclosingclass | Classes should not have non-constructor methods with the same name as the class |
5 | /force-app/main/default/classes/Demo.cls | 4 | 30 | 4 | 60 | pmd | ApexCRUDViolation | 3 | Security | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_security.html#apexcrudviolation | Validate CRUD permission before SOQL/DML operation or enforce user mode |
5 | /force-app/main/default/classes/Demo.cls | 4 | 30 | 4 | 60 | pmd | ApexCRUDViolation | 3 | Security | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_security.html#apexcrudviolation | Validate CRUD permission before SOQL/DML operation or enforce user mode |
6 | /force-app/main/default/classes/Demo.cls | 5 | 5 | 5 | 32 | pmd | AvoidDebugStatements | 3 | Performance | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_performance.html#avoiddebugstatements | Avoid debug statements since they impact on performance |
6 | /force-app/main/default/classes/Demo.cls | 5 | 5 | 5 | 32 | pmd | AvoidDebugStatements | 3 | Performance | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_performance.html#avoiddebugstatements | Avoid debug statements since they impact on performance |
7 | /force-app/main/default/classes/Demo.cls | 5 | 5 | 5 | 32 | pmd | DebugsShouldUseLoggingLevel | 3 | Best Practices | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_bestpractices.html#debugsshoulduselogginglevel | Calls to System.debug should specify a logging level. |
7 | /force-app/main/default/classes/Demo.cls | 5 | 5 | 5 | 32 | pmd | DebugsShouldUseLoggingLevel | 3 | Best Practices | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_bestpractices.html#debugsshoulduselogginglevel | Calls to System.debug should specify a logging level. |
8 | /force-app/main/default/classes/Demo_Test.cls | 3 | 21 | 8 | 4 | pmd | ApexUnitTestMethodShouldHaveIsTestAnnotation | 3 | Best Practices | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_bestpractices.html#apexunittestmethodshouldhaveistestannotation | Apex test methods should have @isTest annotation. |
8 | /force-app/main/default/classes/Demo_Test.cls | 3 | 21 | 8 | 4 | pmd | ApexUnitTestMethodShouldHaveIsTestAnnotation | 3 | Best Practices | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_bestpractices.html#apexunittestmethodshouldhaveistestannotation | Apex test methods should have @isTest annotation. |
9 | /force-app/main/default/classes/Demo_Test.cls | 7 | 5 | 7 | 44 | pmd | ApexAssertionsShouldIncludeMessage | 3 | Best Practices | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_bestpractices.html#apexassertionsshouldincludemessage | 'system.assertEquals' should have 3 parameters. |
9 | /force-app/main/default/classes/Demo_Test.cls | 7 | 5 | 7 | 44 | pmd | ApexAssertionsShouldIncludeMessage | 3 | Best Practices | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_bestpractices.html#apexassertionsshouldincludemessage | 'system.assertEquals' should have 3 parameters. |
10 | /force-app/main/default/classes/theOtherClass.cls | 1 | 21 | 5 | 2 | pmd | ApexDoc | 3 | Documentation | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_documentation.html#apexdoc | Missing ApexDoc comment |
10 | /force-app/main/default/classes/theOtherClass.cls | 1 | 21 | 5 | 2 | pmd | ApexDoc | 3 | Documentation | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_documentation.html#apexdoc | Missing ApexDoc comment |
11 | /force-app/main/default/classes/theOtherClass.cls | 1 | 21 | 5 | 2 | pmd | ClassNamingConventions | 1 | Code Style | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_codestyle.html#classnamingconventions | The class name 'theOtherClass' doesn't match '[A-Z][a-zA-Z0-9_]*' |
11 | /force-app/main/default/classes/theOtherClass.cls | 1 | 21 | 5 | 2 | pmd | ClassNamingConventions | 1 | Code Style | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_codestyle.html#classnamingconventions | The class name 'theOtherClass' doesn't match '[A-Z][a-zA-Z0-9_]*' |
12 | /force-app/main/default/classes/theOtherClass.cls | 2 | 17 | 4 | 4 | pmd | ApexDoc | 3 | Documentation | https://docs.pmd-code.org/pmd-doc-7.2.0/pmd_rules_apex_documentation.html#apexdoc | Missing ApexDoc comment |
12 | /force-app/main/default/classes/theOtherClass.cls | 2 | 17 | 4 | 4 | pmd | ApexDoc | 3 | Documentation | https://docs.pmd-code.org/pmd-doc-7.3.0/pmd_rules_apex_documentation.html#apexdoc | Missing ApexDoc comment |