SALT-LINT(1)
π SALT-LINT(1) π
okay so bestie, welcome to salt-lint, part of the User Commands crew π
β¨ NAME β¨
salt-lint β a command-line utility that checks for best practices in SaltStack. that's it, that's the whole vibe: it's your little lint goblin for SaltStack π§
πΈ SYNOPSIS πΈ
salt-lint [OPTIONS] [FILE ...]
π DESCRIPTION π
this doc is literally all about the salt-lint program β a linting utility that checks for best practices in SaltStack SLS files. it looks at your SLS files, goes "hmm bestie, this is giving not-best-practice", and tells you. no cap π
π OPTIONS π
π¦ positional arguments: π¦
FILEβ one or more files or paths. feed it your files, feed it your paths, it eats both fr fr
π options: π
-h,--helpβ show this help message and exit. the classic "help me pls" button π«Ά--versionβ show program's version number and exit. for when you just gotta know which era of salt-lint you're living in-Lβ list all the rules. every single one, laid out, iconic behavior π-r RULESDIRβ specify one or more rules directories using one or more-rarguments. heads up tho: any-rflags override the default rules in$rulesdir/saltlint/rules, unless-Ris also used. so like, don't be surprised when your defaults dip out π-Rβ use default rules in$rulesdir/saltlint/rulesin addition to any extra rules directories you specified with-r. there's literally no need to specify this if you didn't use any-rflags. it's giving "only if you need it" energy β¨-t TAGSβ only check rules whose id/tags match these values. very picky, very demure, only the tags you asked for π-Tβ list all the tags. the full tag catalogue, go off-vβ increase verbosity level. more words! more details! main character energy for your terminal π-x SKIP_LISTβ only check rules whose id/tags do not match these values. the opposite of-t, the hater of tags, we respect it π--nocolor,--nocolourβ disable colored output. for the monochrome besties (and also the British spelling besties, we see you π¬π§)--force-color,--force-colourβ try force colored output (relying on salt's code). note the "try" β it's relying on salt's code, so it's doing its best, okay π--exclude EXCLUDE_PATHSβ path to directories or files to skip. this option is repeatable, so stack 'em up like little "not you" signs π«--jsonβ parse the output as JSON. for when you want your lint results to be machine-readable and slightly intimidating--severityβ add the severity to the standard output. now you know how bad it is, not just that it's bad π-c Cβ specify configuration file to use. defaults to".saltlint"β cute name, slay
π FILES π
$PWD/.saltlintβ salt-lint checks the working directory for the presence of this file and applies any configuration found there. the configuration file location can also be overridden via the-c path/to/fileCLI flag.
and okay so here's the merge situation, pay attention bestie:
if a value is provided on both the command line and via a configuration file, the values will be merged (if it's a list like exclude_paths), or the True value will be preferred, in the case of something like quiet. no fights, no drama, they just combine πΈ
π«Ά AUTHOR π«Ά
Warpnet B.V. <info@warpnet.nl> β the legends behind all this β¨
π REPORTING BUGS π
found a bug? not you, bestie β report bugs to https://github.com/warpnet/salt-lint/issues. they want to hear it, fr fr
β COPYRIGHT β
Copyright (c) 2020, 2023 Warpnet B.V. Copyright (c) 2013-2018 Will Thames <will@thames.id.au> Copyright (c) 2018 Ansible by Red Hat
this is free software; see the source for copying conditions. there is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. so like, it's free, but it comes with zero promises. read the source if you wanna know the deal π
and that's the whole page bestie!! this was salt-lint version 0.9.2, dated February 2023 β shoutout to the SALT-LINT(1) era, we love her, mwah ππ
β¨
π¦ where this page comes from
- fedora 43: salt-lint 0.9.2-11.fc43 Β· MIT
- fedora 44: salt-lint 0.9.2-12.fc44 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms