An imaginary linter with Codex

1 · · Sept. 1, 2021, 11:53 a.m.
Summary I demonstrate an imaginary linter with Codex. This predicts an error message for a line of awk code. However, it also infers when the code is correct, so it’s useful. The accuracy is good enough to make a reliable imaginary linter. Demo Correctly identifies syntax error 7 times out of 20 -- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 6: } 5: ^ syntax error 6: } 5: ^ syntax error 5: ^ syntax error 5: ^ 6: } 5: ^ syntax error 6: } 6: } 6: } 6: } 6: } 6: } 6: } 5: ^ syntax error 6...