Skip to content

Commit 5579642

Browse files
committed
Display natural execution flow
1 parent a98dc29 commit 5579642

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lsp-sonarlint.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,10 @@ Returns a list of plists with the overlay, step number, and message."
418418
#'append
419419
(seq-map
420420
(lambda (flow)
421-
(let ((locations (ht-get flow "locations")))
421+
;; By SonarLint convention in which the execution flow leading to a
422+
;; data-flow issue is listed in reverse order. `seq-reverse' lets us
423+
;; display the execution flow in natural order.
424+
(let ((locations (seq-reverse (ht-get flow "locations"))))
422425
(seq-map
423426
(lambda (location)
424427
(setq step-num (1+ step-num))

0 commit comments

Comments
 (0)