Rules
ziglint --explain RULE prints one of these in the terminal. The examples are the ones the doc tests run, so a rule that stops behaving as written fails CI.
- Z001: Function names should be camelCase
- Z002: Named discard
- Z003: Parse error
- Z004: Prefer anonymous struct init with type annotation
- Z005: Type function names should be PascalCase
- Z006: Variable names should be snake_case
- Z007: Duplicate import
- Z009: Files with top-level fields should be PascalCase
- Z010: Prefer anonymous init when type is known
- Z011: Deprecated function call
- Z012: Public function exposes private type
- Z013: Unused import
- Z014: Error set names should be PascalCase
- Z015: Public function exposes private error set
- Z016: Split compound assert
- Z017: Try in return
- Z018: Redundant @as cast
- Z019: @This() in named struct
- Z020: Inline @This()
- Z021: File-struct @This() alias
- Z022: @This() alias in anonymous struct should be Self
- Z023: Parameter order convention
- Z024: Line exceeds maximum length
- Z025: Redundant catch returning error
- Z026: Empty catch block suppresses errors
- Z027: Access declaration through type instead of instance
- Z028: Inline import
- Z029: Redundant @as in call argument
- Z030: deinit should set self.* = undefined
- Z031: Avoid underscore prefix in identifiers
- Z032: Acronyms should use standard casing
- Z033: Avoid redundant words in type names
- Z034: Use writeAll for literal prints on Io.Writer
- Z035: Use alias instead of qualified path
- Z036: Use specific std.testing assertions