Skip to content

Commit 4a9471c

Browse files
authored
Merge pull request #48 from dotenv-linter/not-check-updates
Add section check for updates
2 parents ff5942f + 67cb113 commit 4a9471c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/usage/check.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,25 @@ $ dotenv-linter --no-color
106106
Found 3 problems
107107
```
108108

109+
#### Check for updates
110+
111+
By default, `dotenv-linter` checks for a new version once a day.
112+
If the new version is available, it will display information about it:
113+
114+
```bash
115+
$ dotenv-linter
116+
.env:2 DuplicatedKey: The FOO key is duplicated
117+
.env:3 UnorderedKey: The BAR key should go before the FOO key
118+
.env.test:1 LeadingCharacter: Invalid leading character detected
119+
120+
Found 3 problems
121+
122+
A new release of dotenv-linter is available: v3.1.0 -> v3.1.1
123+
https://github.com/dotenv-linter/dotenv-linter/releases/tag/v3.1.1
124+
```
125+
126+
If you want to disable checking for updates, you can use the `--not-check-updates` argument.
127+
109128
#### Export prefix
110129

111130
It is possible to use `export` prefix for defined variables. For example, `export FOO=BAR` will be checked without warnings.

0 commit comments

Comments
 (0)