Andreas Dangel
c179834288
[release] Prepare next development version [skip ci]
2024-10-25 09:28:54 +02:00
Andreas Dangel
7739f2b840
[release] prepare release pmd_releases/7.7.0
2024-10-25 09:07:54 +02:00
Andreas Dangel
c595fea83f
[apex] AvoidNonRestrictiveQueries: Fix regex for detecting LIMIT clause
...
Fixes #5270
2024-10-11 11:57:10 +02:00
Andreas Dangel
5fe19b2096
[release] Prepare next development version [skip ci]
2024-09-27 11:43:22 +02:00
Andreas Dangel
d8d4d3d061
[release] prepare release pmd_releases/7.6.0
2024-09-27 11:08:53 +02:00
Andreas Dangel
c84ffb8e0b
[apex] Bump apex-parser from 4.2.0 to 4.3.0
2024-09-26 18:50:00 +02:00
Andreas Dangel
74f9d75897
[apex] Support convertCurrency() in SOQL/SOSL
...
Fixes #5228
2024-09-26 18:49:24 +02:00
Andreas Dangel
909e86ca99
[apex] Verify nested subqueries work ( #5218 )
...
Fixes #5218
2024-09-19 17:27:13 +02:00
Andreas Dangel
5f1b13cadd
[apex] Verify StdCyclomaticComplexity with triggers
2024-09-06 19:51:52 +02:00
Andreas Dangel
1038eaa283
[apex] Verify EmptyIfStmt and EmptyStatementBlock with triggers
2024-09-06 19:43:07 +02:00
Andreas Dangel
fe0d05d8d5
[apex] Fix parsing of method decl. inside triggers
2024-09-06 18:42:52 +02:00
Andreas Dangel
97fe106724
[apex] Verify OperationWithLimitsInLoop for triggers
2024-09-06 18:42:22 +02:00
Andreas Dangel
9810bfc3cc
[apex] Verify CognitiveComplexity for triggers
2024-09-06 18:42:03 +02:00
Andreas Dangel
6b0a2a1ffa
[apex] Fix ApexCRUDViolation for triggers
2024-09-06 18:41:25 +02:00
Andreas Dangel
92bab6a38f
[apex] Fix AvoidDeeplyNestedIfStmts for triggers
2024-09-06 18:40:43 +02:00
Andreas Dangel
07ae01b4ea
[apex] Use new apex-parser 4.2.0
...
Verify that #5163 and #5182 are fixed.
2024-09-02 19:42:20 +02:00
Andreas Dangel
2ed25964b8
[release] Prepare next development version [skip ci]
2024-08-30 10:52:17 +02:00
Andreas Dangel
74ada426af
[release] prepare release pmd_releases/7.5.0
2024-08-30 10:31:09 +02:00
Andreas Dangel
3735fd145b
[apex] Fix parsing of triggers with declarations
...
Only the grandchildren of a trigger block were ending up in the tree,
but the direct children of triggerBlock were missing, e.g.
ForLoopStatement. This caused OperationWithHighCostInLoop to not
find the loop anymore in triggers.
This will probably fix other false negatives in triggers in
other rules as well.
Fixes #5139
2024-07-27 20:17:25 +02:00
Andreas Dangel
ee800d326f
[release] Prepare next development version [skip ci]
2024-07-26 10:11:46 +02:00
Andreas Dangel
db5fa2dbce
[release] prepare release pmd_releases/7.4.0
2024-07-26 09:03:38 +02:00
Andreas Dangel
d21d8a6286
Fix tests after merge
2024-07-18 12:17:05 +02:00
Andreas Dangel
669f883a99
[apex] Consider VariableDeclarationGroup in ApexTreeBuilder ( #5099 )
...
Merge pull request #5099 from adangel:apex-issue-5094
2024-07-18 12:10:21 +02:00
Andreas Dangel
6e8ce46f6c
[apex] AvoidNonRestrictiveQueries: use new AnnotationParameter.hasName
2024-07-18 12:07:37 +02:00
Andreas Dangel
090bd1208b
[apex] ApexUnitTestShouldNotUseSeeAllDataTrue: case-insensitive check ( #5098 )
...
Merge pull request #5098 from adangel:apex-issue-5095
2024-07-18 12:06:20 +02:00
Andreas Dangel
cf4df4bf13
[apex] New Rule: AvoidNonRestrictiveQueries ( #5089 )
...
Merge pull request #5089 from adangel:apex-issue-635-avoid-non-restrictive-queries
2024-07-18 12:02:21 +02:00
Andreas Dangel
ec92b39cf4
[apex] AvoidNonRestrictiveQueries fix FP with multiline queries
2024-07-18 11:47:31 +02:00
Andreas Dangel
bd4d8970b6
Fix tests after merge
2024-07-18 10:43:46 +02:00
Andreas Dangel
83d6a264f1
Merge branch 'master' into pr-5048
2024-07-18 10:29:42 +02:00
Andreas Dangel
f6cb537238
[apex] Add ASTUserClassOrInterface.isNested()
2024-07-18 10:14:43 +02:00
Andreas Dangel
909603d7e0
[apex] ClassNamingConventions - Improve tests for inner interfaces
...
Refs #5048
2024-07-18 10:04:03 +02:00
Andreas Dangel
7023ea3d27
Fix checkstyle
2024-07-18 10:03:13 +02:00
sgnl-labs
f0a5930a40
Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-13 05:37:01 -07:00
sgnl-labs
5f669fca31
Update pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/codestyle/xml/ClassNamingConventions.xml
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-13 05:36:44 -07:00
sgnl-labs
1be5242c8c
Update pmd-apex/src/test/resources/net/sourceforge/pmd/lang/apex/rule/codestyle/xml/ClassNamingConventions.xml
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-13 05:36:35 -07:00
sgnl-labs
2da3ac2cc8
Update pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/rule/codestyle/ClassNamingConventionsRule.java
...
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2024-07-13 05:36:28 -07:00
Andreas Dangel
3ba3eb4245
[apex] AvoidNonRestrictiveQueriesRule - support SOSL
2024-07-12 09:44:11 +02:00
Andreas Dangel
ccb0e2e228
[apex] AvoidNonRestrictiveQueriesRule - reuse SEE_ALL_DATA
...
This is already defined in ASTAnnotationParameter
2024-07-12 09:36:45 +02:00
Andreas Dangel
4044abca91
[apex] AvoidNonRestrictiveQueries: Support @isTest
2024-07-12 09:36:45 +02:00
Andreas Dangel
99f8bf826b
[apex] AvoidNonRestrictiveQueries: ignore sub-queries
2024-07-12 09:36:45 +02:00
Andreas Dangel
41ca259503
[apex] AvoidNonRestrictiveQueries - handle sub-queries separately
2024-07-12 09:36:44 +02:00
Andreas Dangel
abdb57535a
[apex] New Rule: AvoidNonRestrictiveQueries
...
Fixes #635
Refs old PR #663
Co-authored-by: Jan Aertgeerts <2192516+JAertgeerts@users.noreply.github.com>
2024-07-12 09:36:44 +02:00
Andreas Dangel
dfdb63ba5b
[apex] Consider VariableDeclarationGroup in ApexTreeBuilder
...
- Throw parse exception, when a node is not handled
- Use ApexTreeDumpTest for SwitchStatements.cls
Fixes #5094
2024-07-04 12:36:05 +02:00
Andreas Dangel
d0928cc185
[apex] ApexUnitTestShouldNotUseSeeAllDataTrue: case-insensitive check
...
The annotation parameter name "seeAllData" is now compared
case-insensitive.
Fixes #5095
2024-07-04 11:48:11 +02:00
Justin Stroud
a395bd78c8
Small fix, removed duplicate unit test (accodentally created by me.)
2024-06-28 17:51:11 -07:00
Justin Stroud
33dde29264
Per @adangel, added a couple of unit tests that validate inner class naming logic. Uncovered some bugs, fixed those bugs.
2024-06-28 17:47:49 -07:00
Andreas Dangel
d952a10790
[release] Prepare next development version [skip ci]
2024-06-28 11:27:41 +02:00
Andreas Dangel
c5dbc29bea
[release] prepare release pmd_releases/7.3.0
2024-06-28 11:00:04 +02:00
Andreas Dangel
cd41d70546
[apex] UnusedLocalVariable - support concat strings for binding vars ( #5037 )
...
Merge pull request #5037 from adangel:issue-5000-apex-unused-local-variable
2024-06-27 11:51:57 +02:00
Andreas Dangel
6517dff840
[apex] Mention apex-parser issue
...
refs apex-dev-tools/apex-parser#44
2024-06-27 11:48:26 +02:00