Andreas Dangel
44c15aae6d
[doc] Update release notes ( #5303 , #5302 )
2024-11-17 15:30:59 +01:00
Andreas Dangel
85aeebbab0
Merge branch 'main' into pr-5303
2024-11-17 15:25:24 +01:00
mitchspano
69a24126f7
Fix formatting and static code analysis findings.
2024-11-14 23:29:44 +00:00
Andreas Dangel
509452577d
[apex] Add test case for #5333
2024-11-14 18:16:06 +01:00
Andreas Dangel
991bc2c41d
[apex] Report LexException when extracting comments
2024-11-14 18:12:13 +01:00
Andreas Dangel
8c58a0b3f5
Merge branch 'main' into pr-5284
2024-11-14 18:01:56 +01:00
mitchspano
1a9e721fb6
Implements the RuleChain
within the QueueableWithoutFinalizerRule
.
...
Implements the [`RuleChain`](https://docs.pmd-code.org/latest/pmd_userdocs_extending_writing_java_rules.html#economic-traversal-the-rulechain ) to traverse all classes within the file.
2024-11-12 21:59:02 +00:00
mitchspano
4e4ca6bb70
Incorporate code review feedback.
...
- Renames the rule to `QueueableWithoutFinalizer` to be more neutral.
- Provides a more robust description.
- Provides a more succinct error message.
- Provides a positive sample for the documentation .
2024-11-12 19:46:58 +00:00
mitchspano
83d8ca0169
Fix bestPractices.xml
formatting and priority definition.
2024-11-01 21:59:13 +00:00
mitchspano
be3c34fe1a
Add priority definition.
2024-11-01 21:29:30 +00:00
mitchspano
52fb6c814b
Queueable Should Attach Finalizer
2024-11-01 21:17:53 +00:00
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
Willem Hajenius
61b1c372cd
[apex] Must use case-insensitive input stream to avoid choking on Unicode escape sequences
2024-10-22 12:27:28 +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