Esc

no_effect

Finds a statement that computes a value and drops it (x == 5;).

Category suspicious, warn by default.

Example
#import "Basic";

main :: () {
    total := 1;
    total + 1;
    print("%\n", total);
}
Diagnostic
warning[no_effect]: this statement has no effect
  --> example.jai:5:5
   |
 5 |     total + 1;
   |     ^^^^^^^^^
   |
help: to update `total`, write `total += 1;`
   |
 5 ~     total += 1;
   |
   = note: `no_effect` is `warn` by default
Fixed
#import "Basic";

main :: () {
    total := 1;
    total += 1;
    print("%\n", total);
}

An expression statement containing no call. The editor offers the likely intent: == becomes =, x + 1; becomes x += 1;, a procedure name gets (), and any other statement is removed.