980 Commits

Author SHA1 Message Date
Scott Wells
57626f44d2 Added tests for read/queries. Changed to use set-based multimaps as duplicate entries aren't useful. 2021-10-21 15:54:39 -05:00
Scott Wells
4e1c17e297 Added support for undelete (except for ESAPI which doesn't support it anyway) and merge. Updated unit tests for this enhancement to include a combination of DML statements and Database methods. 2021-10-21 15:43:34 -05:00
Scott Wells
b843242e47 Issue 3576 - First commit for this work with support for most DML operations but not yet undelete (which doesn't seem to be supported at all yet) or merge, nor does it support read/query operations yet. I'll add those in subsequent commits, but I want to lay the foundation now that it seems to be in good shape. 2021-10-21 15:31:06 -05:00
Andreas Dangel
eeaa300b7b
[doc] Update release notes (#3532, #3538) 2021-10-14 09:32:51 +02:00
Jonathan Wiesel
c331fa1a8d Fixing docs and add other describer fetcher 2021-10-09 11:00:59 +02:00
Jonathan Wiesel
bd479e4cc4 Add GetDescribeShouldUseSObjectDescribeOptions Apex rule 2021-10-04 00:01:42 +02:00
Andreas Dangel
0399bbbfc8
[maven-release-plugin] prepare for next development iteration 2021-09-25 13:46:09 +02:00
Andreas Dangel
90b051bfff
[maven-release-plugin] prepare release pmd_releases/6.39.0 2021-09-25 13:46:04 +02:00
Andreas Dangel
d6e2911b81
Merge pull request #3497 from adangel:fix-cpd
[core] Enable CPD check #3497
2021-09-23 10:47:26 +02:00
Andreas Dangel
1a6d60aead
AvoidAccessibilityAlteration warnings
Use commons-lang3 reflection utils. Well, this of course
only hides the fact that setAccessible(true) is called.
2021-09-20 20:25:22 +02:00
Andreas Dangel
bd6c72e0f5
Fix code duplications 2021-09-08 20:11:49 +02:00
Andreas Dangel
65af1c0675
[maven-release-plugin] prepare for next development iteration 2021-08-28 17:27:18 +02:00
Andreas Dangel
7d11a02052
[maven-release-plugin] prepare release pmd_releases/6.38.0 2021-08-28 17:27:12 +02:00
Andreas Dangel
2636fde5d9
Merge pull request #3470 from jfeingold35:addSuperCall
[apex] Fix ApexCRUDViolationRule - add super call #3470
2021-08-22 14:52:57 +02:00
Joshua Feingold
0a92718a4e
Added comment explaining reason for decisions. 2021-08-18 16:49:04 -05:00
Joshua Feingold
389d2e855e
Switched logical OR to assignment operator, and moved initialization of member variables to .start() method. 2021-08-18 16:29:27 -05:00
Joshua Feingold
f97347eb86
ApexCRUDViolationRule now properly recurses into for-each loops. 2021-08-18 14:47:56 -05:00
Clément Fournier
55c005a39e
Revert some changes 2021-08-08 14:47:36 +02:00
Clément Fournier
e64d485384
Add xpath function for file name 2021-08-08 14:40:25 +02:00
Clément Fournier
172c7bec58
Also support nested class 2021-08-07 14:41:37 +02:00
Clément Fournier
e3a94a1b04
Port some stuff from pmd 7, add test 2021-08-07 14:34:03 +02:00
Clément Fournier
3734d293e8
Add an attribute to apex nodes to get filename from XPath
Fix #3446
2021-08-07 13:58:55 +02:00
Andreas Dangel
821f7a849b
[maven-release-plugin] prepare for next development iteration 2021-07-31 19:02:07 +02:00
Andreas Dangel
18df47ce6e
[maven-release-plugin] prepare release pmd_releases/6.37.0 2021-07-31 19:01:59 +02:00
Jonathan Wiesel
a6c56fdd50 Fixed docs 2021-07-03 15:02:30 +02:00
Jonathan Wiesel
9e727034fe Add support for inline no-arg obj and lists 2021-07-03 14:57:37 +02:00
Jonathan Wiesel
77e7d2b4e2 Add ApexCRUDViolation support for database class 2021-07-03 14:52:20 +02:00
Andreas Dangel
ff5deed193
Merge pull request #3367 from jonathanwiesel:apex-crud-forloop
[apex] Check SOQL CRUD on for loops #3367
2021-07-02 10:08:27 +02:00
Jonathan Wiesel
ac238e1636 Remove debug statement 2021-06-27 16:53:33 +02:00
Jonathan Wiesel
4d884520d3 Check SOQL CRUD on for loops 2021-06-27 15:42:27 +02:00
Andreas Dangel
f68bf5ce05
[maven-release-plugin] prepare for next development iteration 2021-06-26 10:24:15 +02:00
Andreas Dangel
45d1605a03
[maven-release-plugin] prepare release pmd_releases/6.36.0 2021-06-26 10:24:07 +02:00
Andreas Dangel
07bfe2c43b
Merge pull request #3333 from adangel:issue-3332
[apex] Fix Cognitive Complexity metric #3333
2021-06-24 09:18:01 +02:00
Andreas Dangel
bb70866871
Merge pull request #3276 from jonathanwiesel:apexdocs
[apex] Update ApexCRUDViolation and OperationWithLimitsInLoop docs #3276
2021-06-18 15:00:05 +02:00
Andreas Dangel
e79facb141
Merge pull request #3319 from jonathanwiesel:avoiddebugstatements
[apex] New AvoidDebugStatements rule to mitigate performance impact
#3319
2021-06-18 14:37:12 +02:00
Andreas Dangel
ea74775439
[doc] Update release notes (#3307, #3319) 2021-06-18 14:34:03 +02:00
Jonathan Wiesel
e1529f084f More clarification 2021-06-10 16:31:17 +02:00
Jonathan Wiesel
5dc62f1fd4 Add more clarification on rule usage 2021-06-10 16:24:26 +02:00
Jonathan Wiesel
3bdac315bd
Fix typo
Co-authored-by: Andreas Dangel <andreas.dangel@adangel.org>
2021-06-10 16:08:44 +02:00
Andreas Dangel
90c95db775
[apex] Fix Cognitive Complexity metric
* else if blocks are only hybrid increments (fixes #3332)
* add rule test
* also report current threshold in rule violations
* ignore continue/break statements. These don't support labels
  in apex
* add documentation
2021-06-10 12:24:35 +02:00
Andreas Dangel
0606c6dd5f
[doc] New apex rule InaccessibleAuraEnabledGetter 2021-06-10 09:59:36 +02:00
pozil
634cf32b8b Reformatted examples and added comments 2021-06-02 21:19:32 +02:00
pozil
f70fd18238 Applied proper code formatting 2021-06-02 20:51:52 +02:00
pozil
b957352ef2 Feat: added rule to detect inaccessible AuraEnabled getters 2021-06-01 12:59:37 +02:00
Jonathan Wiesel
cb60488bcc Add apex AvoidDebugStatements rule 2021-05-30 00:06:25 +02:00
Andreas Dangel
4fb19e2a5e
Bump pmd from 6.34.0 to 6.35.0 2021-05-29 09:06:39 +02:00
Andreas Dangel
9fdfecf731
[maven-release-plugin] prepare for next development iteration 2021-05-29 07:24:47 +02:00
Andreas Dangel
b49fb2014d
[maven-release-plugin] prepare release pmd_releases/6.35.0 2021-05-29 07:24:39 +02:00
William Brockhus
649f62409d chore: rename is->has 2021-05-19 12:04:21 +10:00
William Brockhus
14a796ba0f fix: add test for false-positive on @TestSetup 2021-05-19 11:58:43 +10:00