- Updated to build with Zig 0.14.1 and use its formatting rules.
BREAKING CHANGE!
ziglint now supports specifying the severity of faults that a rule produces.
The ziglint.json format has been changed to accomodate this.
Other changes include:
- A
banned_comment_phrasesrule allowing the linter to fault certain phrases in comments. - A
file_as_structrule enforcing the file capitalization convention for files with top-level fields. - A
dupe_importrule checking for when a file is needlessly imported multiple times. - The unfinished const pointer enforcement rule has been removed for now.
ziglintnow utilizes exit codes.- Logging verbosity has been decreased.
ziglintno longer gets stuck in an infinite loop while attempting to lint certain symlink configurations on Windows.
.gitignorefiles are now correctly parsed on Windows.- Error reporting in the upgrade process has been improved.
- The automatic builds of
ziglinton GitHub no longer include a faulty HTTP client.
- Support for the Windows operating system has been improved.
excludeandincluderules can now be specified with command-line options.
- New
excludeandincluderules have been implemented! max_line_lengthnow defaults to a maximum of 100 characters per line.- Command-line argument parsing was rewritten.
- Zig's
std.logis no longer used for logging, fixing issues where information about upgrades wouldn't be printed properly. - A bug in how
max_line_lengthcounts line lengths has been fixed. Newlines are no longer included in line length, and non-ASCII Unicode characters are no longer double-counted.
This is the first version of ziglint.
It's not too useful, but it supports two rules (check_format and max_line_length) and it can upgrade itself and follow directives from a .gitignore.