Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 18, 2024
1 parent 927f3ae commit f386b85
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
15 changes: 9 additions & 6 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,16 @@ raw = true
run = 'cargo test --all --all-features'

[tasks.lint]
run = 'cargo clippy --all --all-features -- -D warnings'
run = [
'cargo clippy --all --all-features -- -D warnings',
'cargo fmt --all -- --check',
]

[tasks.lint-fix]
run = 'cargo clippy --all --all-features --fix --allow-dirty --allow-staged -- -D warnings'

[tasks.format-check]
run = 'cargo fmt --all -- --check'
run = [
'cargo clippy --all --all-features --fix --allow-dirty --allow-staged -- -D warnings',
'cargo fmt --all',
]

[tasks.ci]
depends = ['test', 'lint', 'format-check']
depends = ['test', 'lint']
2 changes: 0 additions & 2 deletions cli/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


use miette::{Diagnostic, NamedSource, SourceSpan};
use thiserror::Error;

Expand Down
2 changes: 1 addition & 1 deletion src/parse/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ impl ParsingContext {
let source = NamedSource::new(self.file.to_string_lossy(), self.spec.clone());
UsageErr::InvalidInput(msg, span, source)
}
}
}

0 comments on commit f386b85

Please sign in to comment.