1114 Commits

Author SHA1 Message Date
Andreas Dangel
5772440a79
[maven-release-plugin] prepare for next development iteration 2023-01-28 10:31:53 +01:00
Andreas Dangel
de1b12b060
[maven-release-plugin] prepare release pmd_releases/6.54.0 2023-01-28 10:31:46 +01:00
Andreas Dangel
a03a55ba44
[apex] Enhance UnusedLocalVariable to consider SOQL binding vars
Fixes #2669
2023-01-23 14:47:35 +01:00
Thomas Prouvot
cd88b367ab
Add test to check if false positive is fixed 2023-01-23 14:46:38 +01:00
Andreas Dangel
8985c9dbf3
[doc] Update release notes (#4280) 2023-01-14 11:00:27 +01:00
Aaron Hurst
0715bd91d5 Remove unused imports. 2023-01-05 13:39:17 +00:00
Aaron Hurst
f0137f2907 Deprecate ApexRootNode.getApexVersion.
Assume Apex version is >= V176.
2023-01-03 22:42:49 +00:00
Andreas Dangel
6a6acb9b43
[maven-release-plugin] prepare for next development iteration 2022-12-31 18:22:10 +01:00
Andreas Dangel
37103451bf
[maven-release-plugin] prepare release pmd_releases/6.53.0 2022-12-31 18:22:04 +01:00
Andreas Dangel
b81df9681e
Merge pull request #4262 from adangel:issue-2127-deprecate-excessive-length-rules
[java] Deprecate rules ExcessiveClassLength and ExcessiveMethodLength #4262
2022-12-31 15:09:40 +01:00
Andreas Dangel
930b77876b
[apex] ApexCRUDViolation - support AccessLevel
Also support more DML methods: *async and *immediate
2022-12-16 18:58:31 +01:00
Andreas Dangel
93e768319c
[apex] ApexCRUDViolation - no violation for explicit system mode 2022-12-16 17:45:58 +01:00
Andreas Dangel
637663212e
[apex] ApexCRUDViolation - fix rule tests 2022-12-16 16:06:11 +01:00
Tarush Singh
1ce1a2fcef Simple change in voilation check 2022-12-15 00:58:59 +05:30
Andreas Dangel
7237d0c076
[doc] Consistently document deprecated and renamed rules 2022-12-09 20:37:23 +01:00
Tarush Singh
efd83665dc Simple change in voilation check 2022-12-01 17:52:48 +05:30
Tarush Singh
bce0331fe7 check added for User and system mode in validateCRUDCheckPresent 2022-12-01 16:51:43 +05:30
Tarush Singh
73b95b2e92 check added for User and system mode in validateCRUDCheckPresent 2022-12-01 16:49:42 +05:30
Tarush Singh
1ce646a535 check added for User and system mode in validateCRUDCheckPresent 2022-12-01 16:17:11 +05:30
Tarush Singh
0253929cc5 user mode and System mode with test cases added 2022-11-29 17:05:33 +05:30
Andreas Dangel
1634bd0043
[maven-release-plugin] prepare for next development iteration 2022-11-26 10:24:58 +01:00
Andreas Dangel
e90bf0f11b
[maven-release-plugin] prepare release pmd_releases/6.52.0 2022-11-26 10:24:53 +01:00
Andreas Dangel
5a4bf05493
[maven-release-plugin] prepare for next development iteration 2022-10-29 09:34:25 +02:00
Andreas Dangel
66e834049f
[maven-release-plugin] prepare release pmd_releases/6.51.0 2022-10-29 09:34:19 +02:00
Andreas Dangel
df2d1b806e
[apex] ApexUnitTestClassShouldHaveRunAsRule - remove unnecessary constructor 2022-10-14 16:57:47 +02:00
Thomas Prouvot
d0d2d2a6f7 Remove unused imports 2022-10-14 10:24:00 +02:00
Thomas Prouvot
bac0e6e999
Update pmd-apex/src/main/resources/category/apex/bestpractices.xml
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-10-14 09:52:52 +02:00
Thomas Prouvot
3cd67eabf3 Set default message and priority to the rule 2022-10-14 09:52:04 +02:00
Thomas Prouvot
ef48c7628c Add a test for a normal class 2022-10-14 09:36:53 +02:00
Thomas Prouvot
d6f3b3c68e revert changes on deprecvated rule 2022-10-14 09:26:47 +02:00
Thomas Prouvot
0da5cc9937
Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/bestpractices/ApexUnitTestClassShouldHaveRunAsRule.java
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-10-14 09:21:34 +02:00
Thomas Prouvot
a48b56b5c3 Add new apex rule ApexUnitTestClassShouldHaveRunAs 2022-10-11 16:47:16 +02:00
Andreas Dangel
13d9a9457f
[maven-release-plugin] prepare for next development iteration 2022-09-30 15:39:14 +02:00
Andreas Dangel
37f6d8254c
[maven-release-plugin] prepare release pmd_releases/6.50.0 2022-09-30 15:39:08 +02:00
Andreas Dangel
90663d746b
[maven-release-plugin] prepare for next development iteration 2022-08-31 19:19:27 +02:00
Andreas Dangel
4b4ebabc2d
[maven-release-plugin] prepare release pmd_releases/6.49.0 2022-08-31 19:19:22 +02:00
Andreas Dangel
7c6277c8b8
[apex] Update tests (ApexUnitTestClassShouldHaveAsserts, ApexAssertionsShouldIncludeMessage) #4097 2022-08-29 19:05:40 +02:00
Thomas Prouvot
29c4e996fb Increase test coverage 2022-08-25 16:54:11 +02:00
Thomas Prouvot
d73cdcc193 Ad new tests for Assert method class 2022-08-25 15:44:37 +02:00
Thomas Prouvot
065b4b8083 Remove param message not mandatory in this test 2022-08-25 15:44:18 +02:00
Thomas Prouvot
ac94df9e17 Update add violation parameters to macth with new tests 2022-08-25 15:34:54 +02:00
Thomas Prouvot
d6194be47b Add tests for new methods 2022-08-25 15:31:13 +02:00
Thomas Prouvot
46aa491c45 Merge branch 'feature/addNewClassForAssertion' of https://github.com/tprouvot/pmd into feature/addNewClassForAssertion 2022-08-25 15:14:18 +02:00
tprouvot
d7cf959ad2
Merge branch 'pmd:master' into feature/addNewClassForAssertion 2022-08-25 12:27:18 +02:00
Thomas Prouvot
c61108c752 Add new Assert methods to ApexAssertionsShouldIncludeMessageRule 2022-08-25 12:18:15 +02:00
Thomas Prouvot
2e9f25c8ba PR review comment 2022-08-25 12:17:51 +02:00
Thomas Prouvot
50641a5c97 Fix typo 2022-08-25 12:17:32 +02:00
tprouvot
d5098ca115
Update pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/bestpractices/xml/ApexUnitTestClassShouldHaveAsserts.xml
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-08-25 12:15:30 +02:00
tprouvot
e0b9965c27
Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/bestpractices/ApexUnitTestClassShouldHaveAssertsRule.java
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2022-08-25 10:46:47 +02:00
Andreas Dangel
d41628c1c6
Merge pull request #4092 from aaronhurst-google:enum-qualified-names
[apex] Implement ApexQualifiableNode for ASTUserEnum #4092
2022-08-24 18:01:33 +02:00