@abaplint/core 2.93.56 → 2.93.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/src/registry.js
CHANGED
|
@@ -12,6 +12,8 @@ const edit_helper_1 = require("../edit_helper");
|
|
|
12
12
|
class AvoidUseConf extends _basic_rule_config_1.BasicRuleConfig {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
+
/** Do not emit quick fix suggestion */
|
|
16
|
+
this.skipQuickFix = false;
|
|
15
17
|
/** Detects DEFINE (macro definitions) */
|
|
16
18
|
this.define = true;
|
|
17
19
|
/** Detects statics */
|
|
@@ -73,7 +75,7 @@ TEST-SEAMS: https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md
|
|
|
73
75
|
const children = statementNode.getChildren();
|
|
74
76
|
if (children.length === 6 && children[3].getFirstToken().getStr().toUpperCase() === "LINES") {
|
|
75
77
|
message = "DESCRIBE LINES, use lines() instead";
|
|
76
|
-
fix = this.getDescribeLinesFix(file, statementNode);
|
|
78
|
+
fix = this.conf.skipQuickFix === true ? undefined : this.getDescribeLinesFix(file, statementNode);
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
else if (this.conf.statics && statement instanceof Statements.StaticBegin) {
|
|
@@ -91,7 +93,7 @@ TEST-SEAMS: https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md
|
|
|
91
93
|
}
|
|
92
94
|
else if (this.conf.break && statement instanceof Statements.Break) {
|
|
93
95
|
message = "BREAK/BREAK-POINT";
|
|
94
|
-
fix = edit_helper_1.EditHelper.deleteStatement(file, statementNode);
|
|
96
|
+
fix = this.conf.skipQuickFix === true ? undefined : edit_helper_1.EditHelper.deleteStatement(file, statementNode);
|
|
95
97
|
}
|
|
96
98
|
if (message) {
|
|
97
99
|
issues.push(issue_1.Issue.atStatement(file, statementNode, this.getDescription(message), this.getMetadata().key, this.conf.severity, fix));
|