feat(nix): add style linter scaffold #58

Merged
alexion merged 1 commits from feat/nix-style-linter-scaffold into main 2026-09-16 16:06:39 -04:00
Owner

Summary

  • Adds the nix-style-linter Rust package and Bazel targets.
  • Parses explicit file and directory inputs with rnix.
  • Emits parse diagnostics as path:line:column: parse-error: message.
  • Returns exit code 0 for clean input, 1 for diagnostics, and 2 for tool errors.

Verification

  • bazel run //third_party:vendor_crates
  • bazel test //src/nix-style-linter:lib_test
  • Smoke tested bazel run //src/nix-style-linter:nix-style-linter -- <malformed.nix>.
    The command returned exit 1 and printed parse-error on stdout.
  • LSP diagnostics passed for src/nix-style-linter/lib.rs and src/nix-style-linter/lib_test.rs.

Notes

  • No style rules are included in this pull request.
  • Flake app wiring and fixer wiring remain out of scope.
## Summary - Adds the `nix-style-linter` Rust package and Bazel targets. - Parses explicit file and directory inputs with `rnix`. - Emits parse diagnostics as `path:line:column: parse-error: message`. - Returns exit code `0` for clean input, `1` for diagnostics, and `2` for tool errors. ## Verification - `bazel run //third_party:vendor_crates` - `bazel test //src/nix-style-linter:lib_test` - Smoke tested `bazel run //src/nix-style-linter:nix-style-linter -- <malformed.nix>`. The command returned exit `1` and printed `parse-error` on stdout. - LSP diagnostics passed for `src/nix-style-linter/lib.rs` and `src/nix-style-linter/lib_test.rs`. ## Notes - No style rules are included in this pull request. - Flake app wiring and fixer wiring remain out of scope.
alexion added 1 commit 2026-09-16 16:04:16 -04:00
alexion merged commit 7b09cea3af into main 2026-09-16 16:06:39 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alexion/dev#58