Rules
allocator-first-param
Checks that functions taking allocators as parameters have the allocator as
avoid-as
Disallows using @as()
when types can be otherwise inferred.
case-convention
Enforces Zig's naming convention.
empty-file
This rule checks for empty .zig files in the project.
homeless-try
Checks for try
statements used outside of error-returning functions.
line-length
Checks if any line goes beyond a given number of columns.
must-return-ref
Disallows returning copies of types that store a capacity
.
no-catch-return
Disallows catch
blocks that immediately return the caught error.
no-print
Disallows the use of std.debug.print
.
no-return-try
Disallows return
ing a try
expression.
no-unresolved
Checks for imports to files that do not exist.
returned-stack-reference
Checks for functions that return references to stack-allocated memory.
suppressed-errors
Disallows suppressing or otherwise mishandling caught errors.
unsafe-undefined
Disallows initializing or assigning variables to undefined
.
unused-decls
Disallows container-scoped variables that are declared but never used. Note
useless-error-return
Detects functions that have an error union return type but never actually return an error.