Esc

reversed_range

Finds a range whose start is above its end, which never runs.

Category correctness, deny by default.

Example
#import "Basic";

main :: () {
    for i: 10..0 {
        print("%\n", i);
    }
}
Diagnostic
error[reversed_range]: the range `10..0` is empty: ranges count up
  --> example.jai:4:12
   |
 4 |     for i: 10..0 {
   |            ^^^^^
   |
help: to count down, write `for < ...: 0..10`
   |
 4 ~     for < i: 0..10 {
   |
   = note: `reversed_range` is `deny` by default
Fixed
#import "Basic";

main :: () {
    for < i: 0..10 {
        print("%\n", i);
    }
}

Counting down is for < i: 0..10. The fix changes behaviour, so it is editor-only.