1026 Commits

Author SHA1 Message Date
Gwilym Kuiper
d95763c504 Basic implementation of detecting apex unused local variables 2020-03-30 10:54:58 +01:00
Clément Fournier
01c2389f58 Merge branch 'master' into xpath-update-rules 2020-03-28 17:32:22 +01:00
Clément Fournier
571a4167b8 Merge branch 'master' into 7.0.x 2020-03-28 15:14:09 +01:00
Gwilym Kuiper
954f6b09d5 int -> Integer in apex/errorprone.xml 2020-03-27 16:50:53 +00:00
Gwilym Kuiper
315afeae90 Fixup whitespace 2020-03-27 16:50:15 +00:00
Gwilym Kuiper
25139da564 int -> Integer and float -> Double 2020-03-27 16:48:59 +00:00
Gwilym Kuiper
0bd1523172 Fix typo in method 2020-03-27 16:47:51 +00:00
Gwilym Kuiper
4139fd4dd2 Integer rather than int 2020-03-27 16:47:18 +00:00
Gwilym Kuiper
1e286ed281 Fixup indentation in apex/bestpractices.xml 2020-03-27 16:46:10 +00:00
Gwilym Kuiper
22c66fde27 Add returns to setPhoneNumberIfNotExisting in documentation 2020-03-27 16:44:36 +00:00
Clément Fournier
3cf06909fb Merge branch 'master' into 7.0.x 2020-03-21 20:05:16 +01:00
Clément Fournier
0280668a51 [apex] Replace usages of AbstractApexNode in rules by ApexNode 2020-03-21 20:04:38 +01:00
Clément Fournier
0d65c2e6e6 Add relevant property tag 2020-03-20 18:47:40 +01:00
Clément Fournier
eaceefc39e Update XPath rules to 2.0 2020-03-20 18:47:40 +01:00
Clément Fournier
e9b65823bf Cleanup TokenMgrError 2020-03-20 18:07:56 +01:00
Clément Fournier
3cdcba2299 Fix file name for token manager error 2020-03-20 18:07:56 +01:00
Andreas Dangel
235e5f4160 Fix build (Apex Metrics) 2020-03-19 12:37:53 +01:00
Clément Fournier
fd87420953 Merge branch '7.0.x' into simplify-metrics-framework-on-7 2020-03-18 00:34:38 +01:00
Clément Fournier
903383d7cf Merge branch 'master' into 7.0.x 2020-03-17 15:14:46 +01:00
Andreas Dangel
5ff0814120 Merge branch 'pr-2312'
[apex] Update ApexCRUDViolation Rule
2020-03-14 18:27:19 +01:00
Andreas Dangel
383713fdbd [apex] Small refactorings in ApexCRUDViolationRule
To avoid some deprecations
2020-03-14 18:16:52 +01:00
Joshua Arquilevich
be72ec153d Fixed more style changes and improved logic 2020-03-12 14:06:13 -07:00
Andreas Dangel
4c020bfbf7 [maven-release-plugin] prepare for next development iteration 2020-03-12 15:15:18 +01:00
Andreas Dangel
eb93aaeca7 [maven-release-plugin] prepare release pmd_releases/6.22.0 2020-03-12 15:15:09 +01:00
Joshua Arquilevich
7b34f04be1 create a local pattern for the class and update isSecurityEnforced 2020-03-09 15:55:48 -07:00
Clément Fournier
ea0122a656 Merge branch 'master' into 7.0.x 2020-03-02 22:26:41 +01:00
Andreas Dangel
59112bdd92 Merge branch 'pr-2321'
[apex] Support switch statements correctly in Cognitive Complexity
2020-03-02 20:30:43 +01:00
Andreas Dangel
4f78b14803 Update apex quickstart ruleset 2020-03-02 20:26:41 +01:00
Andreas Dangel
94e28557db Merge branch 'pr-2317'
[apex] New Rule - Test Methods Must Be In Test Classes
2020-03-02 20:18:25 +01:00
Clément Fournier
9788a3af5d Merge branch 'master' into 7.0.x 2020-03-02 19:12:28 +01:00
Gwilym Kuiper
a32d12b796 Support switch statements correctly in Cognitive Complexity 2020-03-02 11:52:12 +00:00
Brian Nørremark
4f318380ec [apex] New Rule - Test Methods Must Be In Test Classes 2020-02-29 20:23:03 +01:00
Joshua Arquilevich
57279e11db Fixed styling errors during build 2020-02-28 14:21:41 -08:00
Joshua Arquilevich
6efc10eb4c Fixed syntax error with 'Accepts Clause WITH SECURITY_ENFORCED in a list' Test 2020-02-25 16:08:18 -08:00
Joshua Arquilevich
7bbb65720a Removed 'Accepts Clause WITH SECURITY_ENFORCED Failed' Test 2020-02-25 10:10:33 -08:00
Joshua Arquilevich
a2aba08c9a Updated regex 2020-02-24 16:27:12 -08:00
Andreas Dangel
36d6439270 [apex] Make the new ast nodes final 2020-02-22 15:38:30 +01:00
Andreas Dangel
4c7b48c8e9 [apex] Expose type and name of TypeWhenBlock 2020-02-22 15:21:44 +01:00
Andreas Dangel
c090bfbd8b [apex] Add parser support for EmptyReferenceExpression 2020-02-22 15:02:48 +01:00
Andreas Dangel
00c2d5cc6b [apex] Add parser support for Switch Statements
Fixes #2306
2020-02-22 14:54:28 +01:00
Andreas Dangel
827cdfd053 [apex] Fix test code using apex strings 2020-02-22 12:23:24 +01:00
Andreas Dangel
96f9efcb8e [apex] Update quickstart ruleset - add commented cognitive complexity rule 2020-02-22 12:10:24 +01:00
Andreas Dangel
8b08e5449c Merge branch 'pr-2297'
[apex] Cognitive complexity metrics
2020-02-22 12:07:57 +01:00
Clément Fournier
2650063541 Merge branch 'master' into 7.0.x 2020-02-21 14:45:43 +01:00
Joshua Arquilevich
c54c9887a9 Updated the regex to support case insensitivity in apex 2020-02-20 15:57:46 -08:00
Joshua Arquilevich
8b94463074 Modify CURD rule to support regex for SECURITY_ENFORCE clause 2020-02-20 15:31:19 -08:00
Joshua Arquilevich
df16093562 Modify CURD rule to support SECURITY_ENFORCE clause 2020-02-20 12:03:01 -08:00
Gwilym Kuiper
68e4f52da1 Fill in TODO in documentation for coginitive complexity 2020-02-19 16:28:02 +00:00
Gwilym Kuiper
413d64ff39 Increase default values for cognitive complexity based on authors opinions 2020-02-19 14:22:30 +00:00
Gwilym Kuiper
a22d6f62b4 Optimistically say that cognitive complexity is in the next release 2020-02-19 10:24:40 +00:00