@abaplint/core 2.115.4 → 2.115.5
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
|
@@ -71,7 +71,14 @@ class DoubleSpace extends _abap_rule_1.ABAPRule {
|
|
|
71
71
|
issues = issues.concat(this.checkParen(s, file));
|
|
72
72
|
}
|
|
73
73
|
issues = issues.concat(this.checkAfterColon(file));
|
|
74
|
-
|
|
74
|
+
// remove issues with the same starting position
|
|
75
|
+
const uniqueIssues = [];
|
|
76
|
+
for (const issue of issues) {
|
|
77
|
+
if (uniqueIssues.findIndex(i => i.getStart().equals(issue.getStart())) === -1) {
|
|
78
|
+
uniqueIssues.push(issue);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return uniqueIssues;
|
|
75
82
|
}
|
|
76
83
|
checkAfterColon(file) {
|
|
77
84
|
const issues = [];
|