|
1 | 1 | [
|
2 | 2 | {
|
3 | 3 | "patternId": "rulesets-cleancode.xml-ElseExpression",
|
4 |
| - "title": "Avoid else expressions", |
5 |
| - "description": "Use return statements instead of else expression", |
6 |
| - "timeToFix": 15 |
| 4 | + "title": "Refactor Else Statements with Early Returns", |
| 5 | + "description": "Promotes early returns over else statements.", |
| 6 | + "timeToFix": 15, |
| 7 | + "patPatBotReviewed": "2024-05-23T14:35:52.861Z" |
7 | 8 | },
|
8 | 9 | {
|
9 | 10 | "patternId": "rulesets-cleancode.xml-StaticAccess",
|
10 |
| - "title": "Avoid static access", |
11 |
| - "description": "Static access leads to hard to test code", |
| 11 | + "title": "Avoid Static Access to Reduce Dependencies", |
| 12 | + "description": "Static access heightens dependencies and complicates testing.", |
12 | 13 | "timeToFix": 15,
|
13 | 14 | "parameters": [
|
14 | 15 | {
|
15 | 16 | "name": "exceptions",
|
16 | 17 | "description": "Comma-separated class name list of exceptions"
|
17 | 18 | }
|
18 |
| - ] |
| 19 | + ], |
| 20 | + "patPatBotReviewed": "2024-05-23T14:35:59.524Z" |
19 | 21 | },
|
20 | 22 | {
|
21 | 23 | "patternId": "rulesets-codesize.xml-CyclomaticComplexity",
|
22 |
| - "title": "Cyclomatic complexity", |
23 |
| - "description": "This pattern reports methods with high cyclomatic complexity", |
| 24 | + "title": "Measuring Cyclomatic Complexity in Methods", |
| 25 | + "description": "Evaluates decision points to determine code complexity.", |
24 | 26 | "parameters": [
|
25 | 27 | {
|
26 | 28 | "name": "reportLevel",
|
|
35 | 37 | "description": "Indicate if method average violation should be included"
|
36 | 38 | }
|
37 | 39 | ],
|
38 |
| - "timeToFix": 30 |
| 40 | + "timeToFix": 30, |
| 41 | + "patPatBotReviewed": "2024-05-23T14:36:04.929Z" |
39 | 42 | },
|
40 | 43 | {
|
41 | 44 | "patternId": "rulesets-codesize.xml-NPathComplexity",
|
42 |
| - "title": "NPath complexity", |
43 |
| - "description": "This pattern reports methods with a large number of possible paths", |
| 45 | + "title": "NPath Complexity Detection", |
| 46 | + "description": "Measures possible execution paths in methods.", |
44 | 47 | "parameters": [
|
45 | 48 | {
|
46 | 49 | "name": "minimum",
|
47 | 50 | "description": "Reporting threshold"
|
48 | 51 | }
|
49 | 52 | ],
|
50 |
| - "timeToFix": 30 |
| 53 | + "timeToFix": 30, |
| 54 | + "patPatBotReviewed": "2024-05-23T14:36:13.622Z" |
51 | 55 | },
|
52 | 56 | {
|
53 | 57 | "patternId": "rulesets-codesize.xml-ExcessiveMethodLength",
|
54 |
| - "title": "Excessive method length", |
55 |
| - "description": "This pattern reports excessively long methods.", |
| 58 | + "title": "Method Length Warning", |
| 59 | + "description": "Long methods may indicate excessive functionality.", |
56 | 60 | "parameters": [
|
57 | 61 | {
|
58 | 62 | "name": "minimum",
|
59 | 63 | "description": "Reporting threshold for the number of lines in a method"
|
60 | 64 | }
|
61 | 65 | ],
|
62 |
| - "timeToFix": 15 |
| 66 | + "timeToFix": 15, |
| 67 | + "patPatBotReviewed": "2024-05-23T14:36:18.001Z" |
63 | 68 | },
|
64 | 69 | {
|
65 | 70 | "patternId": "rulesets-codesize.xml-ExcessiveClassLength",
|
66 |
| - "title": "Excessive class length", |
67 |
| - "description": "This pattern reports excessively long classes.", |
| 71 | + "title": "Reducing Excessive Class Length", |
| 72 | + "description": "Class files are too lengthy.", |
68 | 73 | "parameters": [
|
69 | 74 | {
|
70 | 75 | "name": "minimum",
|
71 | 76 | "description": "Reporting threshold for the number of lines in a class"
|
72 | 77 | }
|
73 | 78 | ],
|
74 |
| - "timeToFix": 15 |
| 79 | + "timeToFix": 15, |
| 80 | + "patPatBotReviewed": "2024-05-23T14:36:22.011Z" |
75 | 81 | },
|
76 | 82 | {
|
77 | 83 | "patternId": "rulesets-codesize.xml-ExcessiveParameterList",
|
78 |
| - "title": "Excessive parameters", |
79 |
| - "description": "This pattern reports methods with a high number of parameters.", |
| 84 | + "title": "Avoid Long Parameter Lists", |
| 85 | + "description": "Simplify functions by reducing long parameter lists.", |
80 | 86 | "parameters": [
|
81 | 87 | {
|
82 | 88 | "name": "minimum",
|
83 | 89 | "description": "Reporting threshold for the number of arguments in a method"
|
84 | 90 | }
|
85 | 91 | ],
|
86 |
| - "timeToFix": 15 |
| 92 | + "timeToFix": 15, |
| 93 | + "patPatBotReviewed": "2024-05-23T14:36:26.426Z" |
87 | 94 | },
|
88 | 95 | {
|
89 | 96 | "patternId": "rulesets-codesize.xml-ExcessivePublicCount",
|
90 |
| - "title": "Excessive public attributes", |
91 |
| - "description": "This pattern reports classes with a high number of public methods and attributes.", |
| 97 | + "title": "Too Many Public Members", |
| 98 | + "description": "A flag for classes with excessive public members.", |
92 | 99 | "parameters": [
|
93 | 100 | {
|
94 | 101 | "name": "minimum",
|
95 | 102 | "description": "Reporting threshold for the number of public methods and attributes in a class"
|
96 | 103 | }
|
97 | 104 | ],
|
98 |
| - "timeToFix": 15 |
| 105 | + "timeToFix": 15, |
| 106 | + "patPatBotReviewed": "2024-05-23T14:36:31.617Z" |
99 | 107 | },
|
100 | 108 | {
|
101 | 109 | "patternId": "rulesets-codesize.xml-TooManyFields",
|
102 |
| - "title": "Excessive fields", |
103 |
| - "description": "This pattern reports classes with a high number of fields.", |
| 110 | + "title": "Refactor Classes with Excessive Fields", |
| 111 | + "description": "Improve maintainability by redesigning classes with too many fields.", |
104 | 112 | "parameters": [
|
105 | 113 | {
|
106 | 114 | "name": "maxfields",
|
107 | 115 | "description": "Reporting threshold for the number of fields in a class"
|
108 | 116 | }
|
109 | 117 | ],
|
110 |
| - "timeToFix": 15 |
| 118 | + "timeToFix": 15, |
| 119 | + "patPatBotReviewed": "2024-05-23T14:36:37.334Z" |
111 | 120 | },
|
112 | 121 | {
|
113 | 122 | "patternId": "rulesets-codesize.xml-TooManyMethods",
|
114 |
| - "title": "Excessive methods", |
115 |
| - "description": "This pattern reports classes with a high number of methods.", |
| 123 | + "title": "Refactor Classes with Excessive Methods", |
| 124 | + "description": "Classes with too many methods require refactoring", |
116 | 125 | "parameters": [
|
117 | 126 | {
|
118 | 127 | "name": "maxmethods",
|
119 | 128 | "description": "Reporting threshold for the number of methods in a class"
|
120 | 129 | }
|
121 | 130 | ],
|
122 |
| - "timeToFix": 15 |
| 131 | + "timeToFix": 15, |
| 132 | + "patPatBotReviewed": "2024-05-23T14:36:44.282Z" |
123 | 133 | },
|
124 | 134 | {
|
125 | 135 | "patternId": "rulesets-codesize.xml-ExcessiveClassComplexity",
|
|
0 commit comments