diff --git a/cmakelang/lint/lint_util.py b/cmakelang/lint/lint_util.py index cca7224..c22d627 100644 --- a/cmakelang/lint/lint_util.py +++ b/cmakelang/lint/lint_util.py @@ -101,7 +101,7 @@ def get_lint(self): # Remove any lint records that were suppressed at the line number where # they were recorded out = [] - events = list(self._suppression_events) + events = sorted(self._suppression_events, key=lambda event: int(event.lineno)) active_suppressions = set() for record in records: