mirror of
https://github.com/zhom/banderole.git
synced 2026-04-30 07:37:48 +02:00
chore: lintnig
This commit is contained in:
+10
-2
@@ -1,3 +1,11 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cargo clippy --fix --allow-dirty --all-targets --all-features -- -D warnings -D clippy::all && cargo fmt --all
|
||||
# Run rustfmt first for quick formatting
|
||||
cargo fmt --all
|
||||
|
||||
# Run clippy across all targets and features; fail on any warning
|
||||
cargo clippy --fix --allow-dirty --all-targets --all-features -- -D warnings -D clippy::all
|
||||
|
||||
# Additionally, run clippy for tests explicitly to catch test-only lints
|
||||
cargo clippy --fix --allow-dirty --tests -- -D warnings -D clippy::all
|
||||
@@ -768,7 +768,6 @@ impl BundlerTestHelper {
|
||||
let output = match direct {
|
||||
Ok(o) => Ok(o),
|
||||
Err(e) if e.kind() == std::io::ErrorKind::NotFound => {
|
||||
let mut cmd = Command::new("cmd");
|
||||
let mut all_args: Vec<String> = Vec::with_capacity(1 + 1 + args.len());
|
||||
all_args.push("/C".to_string());
|
||||
all_args.push(exec_to_run.display().to_string());
|
||||
|
||||
Reference in New Issue
Block a user