• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KurtWagner / zlinter / 17910804920

22 Sep 2025 09:23AM UTC coverage: 81.865% (-0.2%) from 82.024%
17910804920

push

github

KurtWagner
Refactor to pass lint document by pointer and to separate analyser (#118)

This avoids confusion around shallow copies and mutability as it was
mutating what the pointers in the shallow copies were pointing to.

This is breaking in that run accepts a pointer and context is
re-introduced.

Before:

```zig
fn (
    self: LintRule,
    doc: session.LintDocument,
    gpa: std.mem.Allocator,
    options: RunOptions,
) error{OutOfMemory}!?results.LintResult
```

After:

```zig
fn (
    self: LintRule,
    context: *session.LintContext,
    doc: *const session.LintDocument,
    gpa: std.mem.Allocator,
    options: RunOptions,
 ) error{OutOfMemory}!?results.LintResult
```

3205 of 3915 relevant lines covered (81.86%)

0.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.95
/rules/function_naming.zig


Source Not Available

The file "rules/function_naming.zig" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc