Rules

Overview

All rules belong to at least one category:

  • CORR: correctness, code that is outright wrong or useless.
  • SUSP: suspicious, code that is most likely wrong or useless.
  • PERF: performance, code that can be written to run faster.
  • READ: readability, code is correct but can be written in a way that is easier to read.

You can find the list of available rules below, and more detailed explanations and examples in pages in the sidebar.

NoteComparison to lintr

lintr includes many rules related to code formatting, such as brace_linter, line_length_linter, and paren_body_linter, among others.

Supporting those rules is not an objective of Jarl. Instead, I recommend using the Air formatter.

The column “Has fix” can take the following values:

  • ✅ Safe fix

  • ❗ Unsafe fix

  • ❌ No fix

tinytable_6wrixo85ryyeii8clp68