@abaplint/core 2.100.5 → 2.100.6
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
|
@@ -42,6 +42,9 @@ class ReduceStringTemplates extends _abap_rule_1.ABAPRule {
|
|
|
42
42
|
for (const second of source.findDirectExpressions(Expressions.StringTemplate)) {
|
|
43
43
|
issues.push(issue_1.Issue.atToken(file, second.getFirstToken(), "Nested string templates, reduce", this.getMetadata().key, this.conf.severity));
|
|
44
44
|
}
|
|
45
|
+
if (ts.findDirectExpression(Expressions.StringTemplateFormatting)) {
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
45
48
|
for (const constant of source.findDirectExpressions(Expressions.Constant)) {
|
|
46
49
|
for (const constantString of constant.findDirectExpressions(Expressions.ConstantString)) {
|
|
47
50
|
issues.push(issue_1.Issue.atToken(file, constantString.getFirstToken(), "Constant string in text template, reduce", this.getMetadata().key, this.conf.severity));
|