Skip to content

Commit ff5942f

Browse files
authored
Merge pull request #47 from dotenv-linter/list-command
Add list command
2 parents 98a9084 + 319bdbf commit ff5942f

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

docs/_sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* [✅Check](usage/check.md)
1313
* [🤲Compare](usage/compare.md)
1414
* [🛠Fix](usage/fix.md)
15+
* [📄List](usage/list.md)
1516

1617
* ✅Checks
1718
* [Duplicated Key](checks/duplicated_key.md)

docs/usage/check.md

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

109-
#### Checklist
110-
111-
If you need to view all available checks, you can use the `list` command (or its short version `l`):
112-
113-
```bash
114-
$ dotenv-linter list
115-
DuplicatedKey
116-
EndingBlankLine
117-
ExtraBlankLine
118-
IncorrectDelimiter
119-
KeyWithoutValue
120-
LeadingCharacter
121-
LowercaseKey
122-
QuoteCharacter
123-
SpaceCharacter
124-
TrailingWhitespace
125-
UnorderedKey
126-
```
127-
128109
#### Export prefix
129110

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

docs/usage/list.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 📄 List
2+
3+
If you need to view all available checks, you can use the `list` command (or its short version `l`):
4+
5+
```bash
6+
$ dotenv-linter list
7+
DuplicatedKey
8+
EndingBlankLine
9+
ExtraBlankLine
10+
IncorrectDelimiter
11+
KeyWithoutValue
12+
LeadingCharacter
13+
LowercaseKey
14+
QuoteCharacter
15+
SpaceCharacter
16+
SubstitutionKey
17+
TrailingWhitespace
18+
UnorderedKey
19+
```

0 commit comments

Comments
 (0)