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 |
|
Andreas Dangel
|
0f241b0efc
|
Merge branch 'pmd/7.0.x' into pr-2022
|
2020-02-18 19:04:25 +01:00 |
|
Andreas Dangel
|
b06772b953
|
Update rulesets
* add comment for removed rules in the releases rulesets
* remove rules completely in normal rulesets
(instead of commenting)
|
2020-02-18 18:54:47 +01:00 |
|
Gwilym Kuiper
|
de878175c8
|
Use correct message for cognitive complexity rule
|
2020-02-18 17:29:37 +00:00 |
|
Gwilym Kuiper
|
5d55b84f96
|
Fix checkstyle errors
|
2020-02-18 17:24:40 +00:00 |
|
Gwilym Kuiper
|
acfbb132d1
|
We don't actually support switch statements yet
|
2020-02-18 17:07:22 +00:00 |
|
Gwilym Kuiper
|
9d0fb82d6f
|
Increase cognitive complexity on recursion
|
2020-02-18 17:06:18 +00:00 |
|
Gwilym Kuiper
|
0231350dea
|
Handle boolean expressions on different statements
|
2020-02-18 16:59:12 +00:00 |
|
Gwilym Kuiper
|
a4db0ea069
|
Any boolean expression causes increases in cognative complexity
|
2020-02-18 16:32:28 +00:00 |
|
Gwilym Kuiper
|
4b26d22c73
|
Ternary operators increase nesting complexity
|
2020-02-18 15:56:08 +00:00 |
|
Gwilym Kuiper
|
5ea69530d7
|
Add do-while loop nesting complexity
|
2020-02-18 15:40:46 +00:00 |
|
Gwilym Kuiper
|
559c1d9c39
|
Catch blocks incur nesting complexity
|
2020-02-18 15:19:39 +00:00 |
|
Gwilym Kuiper
|
ec870225f2
|
While statements incur nesting complexity
|
2020-02-18 15:16:26 +00:00 |
|
Gwilym Kuiper
|
b2a42bf8cc
|
Break statements incur complexity
|
2020-02-18 14:12:49 +00:00 |
|
Gwilym Kuiper
|
7d3bb60d83
|
Continue statements incur complexity
|
2020-02-18 14:12:07 +00:00 |
|
Gwilym Kuiper
|
d9e7928d75
|
For each statements incur cognitive complexity
|
2020-02-18 14:10:32 +00:00 |
|
Gwilym Kuiper
|
7d3a5ef7f4
|
When increasing nesting level we always get structure and nesting complexity
|
2020-02-18 14:08:44 +00:00 |
|
Gwilym Kuiper
|
50d2bcb7f1
|
Cognitive complexity for for loops
|
2020-02-18 14:08:05 +00:00 |
|
Gwilym Kuiper
|
1b93be5f60
|
Handle if-else correctly
|
2020-02-18 14:02:56 +00:00 |
|
Gwilym Kuiper
|
9492ca02c1
|
Add test for non-nested if statements
|
2020-02-18 11:53:00 +00:00 |
|
Gwilym Kuiper
|
cea2081628
|
Cognitive complexity for nested if statements
|
2020-02-18 11:51:46 +00:00 |
|
Gwilym Kuiper
|
38ea3d1be9
|
Implement complexity for if
|
2020-02-18 11:47:40 +00:00 |
|
Gwilym Kuiper
|
8c357fb887
|
Add tests for CognitiveComplexity
|
2020-02-18 11:47:36 +00:00 |
|
Gwilym Kuiper
|
01da573f5f
|
Add design rule for CognitiveComplexity
|
2020-02-18 11:24:39 +00:00 |
|
Gwilym Kuiper
|
a8234af9a6
|
Create design rule for cognitive complexity
|
2020-02-18 11:02:56 +00:00 |
|
Gwilym Kuiper
|
0967e43767
|
Add class level cognitive complexity measures
|
2020-02-18 11:02:31 +00:00 |
|