Releases: DonIsaac/zlint
v0.7.9
What's Changed
- fix(allocator-first-param): check for
@This(), etch when findingselfby @DonIsaac in #304 - fix(case-convention): generics should use PascalCase by @DonIsaac in #305
- chore: add diagnostic fn to new rule template by @DonIsaac in #306
- test(sema): add scope children tests by @DonIsaac in #308
- chore: bump zig to 0.14.1 by @DonIsaac in #309
- fix(linter/case-convention): only fns returning 'type' are pascal case by @DonIsaac in #310
Full Changelog: v0.7.8...v0.7.9
v0.7.8
This release comes with 3 new rules
case-convention- check that functions use camelCased namesreturned-stack-reference- check for functions returning pointers to stack memory. (this rule is in nursery)allocator-first-param- require functions that take an allocator argument to put it as the first parameter
What's Changed
- feat(linter): add
case-conventionrule by @felipeasimos in #293 - fix(sema): bug when analyzing labelled continues by @DonIsaac in #299
- feat(linter): add
returned-stack-referencerule by @DonIsaac in #298 - fix(returned-stack-reference): skip visiting var decl nodes by @DonIsaac in #300
- docs: add docs site by @DonIsaac in #301
- ci: auto-deploy docs site by @DonIsaac in #302
- feat(linter): add
allocator-first-paramrule by @DonIsaac in #303
Full Changelog: v0.7.7...v0.7.8
v0.7.6
What's Changed
- fix(must-return-ref): only walk subtree of target function by @DonIsaac in #280
- feat(linter/avoid-as): handle
@asin container fields by @DonIsaac in #281 - feat(linter/unsafe-undefined): allow ignoring certain types by @DonIsaac in #282
- fix(linter/unused-decls): auto fixer removes newlines by @DonIsaac in #283
- perf(sema): inline visitors in release builds only by @DonIsaac in #284
- refactor(sema): move ast-stuff to Parse struct by @DonIsaac in #285
- chore: random cleanup by @DonIsaac in #286
Full Changelog: v0.7.5...v0.7.6
v0.7.5
ZLint now has a VSCode extension! Please note this extension is still in alpha and does not work with versions of zlint before v0.7.5.
To get diagnostics, run the Zlint: Run ZLint command (cmd+shift+p on mac, ctrl+shift+p on windows)
What's Changed
- test(reporter): add github formatter unit tests by @DonIsaac in #275
- feat: allow specifying paths and globs in cli by @DonIsaac in #276
- chore: set up feature flags by @DonIsaac in #277
- feat: vscode extension by @DonIsaac in #278
- fix(linter/avoid-as): auto fixer on multi-line @as() args by @DonIsaac in #279
Full Changelog: v0.7.4...v0.7.5
v0.7.4
zlint.json now supports per-rule configuration.
{
"rules": {
"unsafe-undefined": ["error", { "allow_arrays": true }]
}
}What's Changed
- refactor(sema): make better use of namespaces by @DonIsaac in #267
- refactor: remove string alias by @DonIsaac in #268
- fix(sema): correctly record exports by @DonIsaac in #269
- feat: per-rule docs by @DonIsaac in #270
- docs: add rule docs to config schema by @DonIsaac in #271
- docs: render rule defaults in JSON schema by @DonIsaac in #272
- chore(e2e): bump ecosystem repo versions by @DonIsaac in #273
- feat(reporter): add JSON error format by @DonIsaac in #274
Full Changelog: v0.7.3...v0.7.4
v0.7.3
v0.7.2
What's Changed
- perf(sema): add branch hints to parts of builder by @DonIsaac in #257
- fix(linter/homeless-try): false positive in labeled continues by @DonIsaac in #260
- chore: remove unused decls by @DonIsaac in #261
- feat(linter): add
avoid-asrule by @DonIsaac in #262
Full Changelog: v0.7.1...v0.7.2
v0.7.1
What's Changed
- chore: slight StringWriter improvements by @DonIsaac in #250
- feat(linter): configure ignored folders by @DonIsaac in #252
- fix(linter/homeless-return): handle
!if ...return types by @DonIsaac in #253 - fix(linter/homeless-try): false positive when returning errors by @DonIsaac in #256
- fix(linter/unsafe-undefined): false positive for enum variants named
undefinedby @DonIsaac in #255
Full Changelog: v0.7.0...v0.7.1
v0.7.0
ZLint is now ~50% faster after upgrading to Zig 0.14.0 and performance improvements to report rendering.
What's Changed
- feat(linter): add new
useless-error-returnrule by @DonIsaac in #243 - feat(sema): record imports by @DonIsaac in #246
- chore: upgrade to zig 0.14.0 by @DonIsaac in #247
- perf: use SmpAllocator by @DonIsaac in #248
- perf: format to string before writing by @DonIsaac in #249
- feat(linter): add
empty-filerule by @felipeasimos in #245
Full Changelog: v0.6.4...v0.7.0
v0.6.4
What's Changed
- feat(linter): add
line-lengthrule by @felipeasimos in #232
New Contributors
- @felipeasimos made their first contribution in #232
Full Changelog: v0.6.3...v0.6.4