Skip to content

Commit

Permalink
[lint addon] Remove confused annotation filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jun 29, 2023
1 parent 480a35d commit 1e58b28
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions addon/lint/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@
var anns = annotations[line];
if (!anns) continue;

// filter out duplicate messages
var message = [];
anns = anns.filter(function(item) { return message.indexOf(item.message) > -1 ? false : message.push(item.message) });

var maxSeverity = null;
var tipLabel = state.hasGutter && document.createDocumentFragment();

Expand All @@ -220,9 +216,8 @@
__annotation: ann
}));
}
// use original annotations[line] to show multiple messages
if (state.hasGutter)
cm.setGutterMarker(line, GUTTER_ID, makeMarker(cm, tipLabel, maxSeverity, annotations[line].length > 1,
cm.setGutterMarker(line, GUTTER_ID, makeMarker(cm, tipLabel, maxSeverity, anns.length > 1,
options.tooltips));

if (options.highlightLines)
Expand Down

0 comments on commit 1e58b28

Please sign in to comment.