Crates.io | multilint |
lib.rs | multilint |
version | 0.3.0 |
source | src |
created_at | 2022-07-31 16:49:26.47571 |
updated_at | 2023-11-12 14:47:36.307284 |
description | A driver of multiple linters |
homepage | |
repository | https://github.com/regen100/multilint |
max_upload_size | |
id | 636213 |
size | 52,738 |
A tool to run multiple linters.
$ cargo install multilint
$ multilint --help
multilint 0.0.0
A driver of multiple linters
USAGE:
multilint [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-f, --format <format> Message format [default: text] [possible values: Null, Raw,
Text]
-l, --linter <linters>... Linters to run
-C <work-dir> Changes the working directory before running
All multilint.toml
in directories from the root to the current directory are merged and parsed.
[global]
excludes = ["third_party/**"]
[linter.shellcheck]
command = "shellcheck"
includes = ["*.sh"]
excludes = ["*.zsh"]
[linter.clippy]
command = "cargo"
options = ["clippy"]
work_dir = "subdir" # you can change directory
[linter.rustfmt]
command = "cargo"
options = ["fmt", "--"] # formatters can be used as linters (mtime of the files are checked if `check_hash` is false)
includes = ["*.rs"]