jaxlint rule catalogue#
Configure rules via [jaxlint] / [tool.jaxlint] (see configuration.md). Use jaxlint rules for the authoritative list bundled with your install.
Summary table#
ID |
Severity |
When it fires |
Example fixture |
|---|---|---|---|
JL001 |
error |
|
|
JL002 |
warning |
|
|
JL003 |
error |
Python |
|
JL004 |
error |
|
|
JL005 |
warning / error* |
|
|
JL010 |
warning |
|
|
JL011 |
warning |
|
|
JL012 |
warning |
Bare |
|
JD001 |
error |
Public function/class missing docstring |
|
JD002 |
error |
Missing required doc section ( |
|
JD003 |
warning |
Section order disagrees with |
|
JD004 |
warning |
Parameters in signature vs Parameters block mismatch |
|
JD005 |
warning |
Return annotation without Returns section |
|
JM001 |
error |
Unbalanced |
|
JM002 |
error |
Malformed LaTeX/MathJax structure |
|
JM003 |
warning |
Large |
|
Detailed descriptions#
ID |
Description |
|---|---|
JL001 |
Scatter+gather anti-pattern: |
JL002 |
Short function has |
JL003 |
Python |
JL004 |
Side effects ( |
JL005 |
Shape introspection ( |
JL010 |
|
JL011 |
|
JL012 |
Division may introduce NaNs; consider guarded reciprocals where denominators vanish. |
JD001 |
Public API should document intent; private names ( |
JD002 |
Enforces |
JD003 |
Parsed section kinds appear out of the configured canonical order ( |
JD004 |
Doc parameters must mirror the callable signature (minus |
JD005 |
Annotated returns should document the returned value/object. |
JM001 |
Stray |
JM002 |
Structural LaTeX issues (balanced braces/environments/macros such as |
JM003 |
Very large display math compared to explanatory prose hurts readability/scannability. |