multilint

Crates.iomultilint
lib.rsmultilint
version0.3.0
sourcesrc
created_at2022-07-31 16:49:26.47571
updated_at2023-11-12 14:47:36.307284
descriptionA driver of multiple linters
homepage
repositoryhttps://github.com/regen100/multilint
max_upload_size
id636213
size52,738
Regen (regen100)

documentation

README

multilint

Status Crates.io License

A tool to run multiple linters.

Usage

$ 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

Configuration format

All multilint.toml in directories from the root to the current directory are merged and parsed.

Example

[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"]

Related projects

  • treefmt: multilint is inspired by treefmt
Commit count: 48

cargo fmt