aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart-test-harness
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-11 19:45:17 +0900
committernsfisis <nsfisis@gmail.com>2026-05-11 19:45:17 +0900
commit24cc697a9cd0dcac854359d65b8265f02f483b72 (patch)
treec9693dbf3136d840157609161a3a5695828e853b /crates/mozart-test-harness
parent2aceeb116150b6d6e6d3f371c2af509902ceafea (diff)
downloadphp-mozart-24cc697a9cd0dcac854359d65b8265f02f483b72.tar.gz
php-mozart-24cc697a9cd0dcac854359d65b8265f02f483b72.tar.zst
php-mozart-24cc697a9cd0dcac854359d65b8265f02f483b72.zip
chore(lint): add Ruby linter scripts and apply rules
Adds scripts/lint with linters for mod.rs naming, contiguous use blocks, use-as aliasing, sorted Cargo dependencies, std::collections maps, and workspace dependency requirements. Renames mod.rs files, reorders use statements, drops unnecessary import aliases, and sorts Cargo.toml entries to satisfy the new rules.
Diffstat (limited to 'crates/mozart-test-harness')
-rw-r--r--crates/mozart-test-harness/src/pool_builder_parser.rs3
-rw-r--r--crates/mozart-test-harness/src/runner.rs3
2 files changed, 2 insertions, 4 deletions
diff --git a/crates/mozart-test-harness/src/pool_builder_parser.rs b/crates/mozart-test-harness/src/pool_builder_parser.rs
index 2876c25..a8f7326 100644
--- a/crates/mozart-test-harness/src/pool_builder_parser.rs
+++ b/crates/mozart-test-harness/src/pool_builder_parser.rs
@@ -4,12 +4,11 @@
//! Section bodies are stored as raw strings (typically JSON); the runner is
//! responsible for interpreting them.
+use crate::parser::split_sections;
use anyhow::{Context as _, Result, bail};
use std::fs;
use std::path::Path;
-use crate::parser::split_sections;
-
const VALID_SECTIONS: &[&str] = &[
"TEST",
"ROOT",
diff --git a/crates/mozart-test-harness/src/runner.rs b/crates/mozart-test-harness/src/runner.rs
index bb26255..fa5c360 100644
--- a/crates/mozart-test-harness/src/runner.rs
+++ b/crates/mozart-test-harness/src/runner.rs
@@ -1,10 +1,9 @@
+use crate::parser::ParsedTest;
use anyhow::{Context as _, Result};
use std::path::Path;
use std::process::Command;
use tempfile::TempDir;
-use crate::parser::ParsedTest;
-
/// Outcome of running a parsed `.test` against the `mozart` binary.
///
/// The temp directory is kept alive in this struct so callers can inspect