Add dotenv-linter
[webi-installers/.git] / dotenv-linter / README.md
diff --git a/dotenv-linter/README.md b/dotenv-linter/README.md
new file mode 100644 (file)
index 0000000..4306f86
--- /dev/null
@@ -0,0 +1,81 @@
+---
+title: Dotenv Linter
+homepage: https://dotenv-linter.github.io/
+tagline: |
+  dotenv-linter: ⚡️ Lightning-fast linter for .env files. Written in Rust 🦀
+---
+
+### Updating `dotenv-linter`
+
+`webi dotenv-linter@stable`
+
+Use the `@beta` tag for pre-releases.
+
+#### Windows 10
+
+On Windows 10 you'll get an error like this:
+
+> execution cannot proceed run because `vcruntime140.dll` was not found
+
+You need to download and install the
+[Microsoft Visual C++ Redistributable](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads).
+
+## Cheat Sheet
+
+> Dotenv Linter is a lightning-fast check for your `.env` files.
+> It can rapidly detect and automatically fix issues.
+
+By default, `dotenv-linter` checks all `.env` files in the current directory:
+
+```bash
+dotenv-linter
+```
+
+This is the same as the default behavior:
+
+```bash
+dotenv-linter .env .env.*
+```
+
+To lint .env files recursively, use `-r`:
+
+```bash
+dotenv-linter -r
+```
+
+For the complete usage, see the official [Dotenv Linter Usage Guide](https://dotenv-linter.github.io/#/usage).
+
+### How to automatically fix errors
+
+Use the `--fix` flag.
+
+```bash
+dotenv-linter --fix
+```
+
+Backup files in the format of `.env_0000000000` will be created by default.
+You can use `--no-backup` to skip this.
+
+### How to toggle linter rules
+
+You can turn off certain linter checks with `--skip` options, for example:
+
+```bash
+dotenv-linter --skip QuoteCharacter --skip UnorderedKey
+```
+
+You can see the full list of linter rules with `dotenv-linter --show-checks`:
+
+```txt
+DuplicatedKey
+EndingBlankLine
+ExtraBlankLine
+IncorrectDelimiter
+LeadingCharacter
+KeyWithoutValue
+LowercaseKey
+QuoteCharacter
+SpaceCharacter
+TrailingWhitespace
+UnorderedKey
+```