Skip to content

Commit a7e1cf2

Browse files
authored
Add substitution key documentation (#41)
1 parent 4bbe055 commit a7e1cf2

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/_sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* [Lowercase Key](checks/lowercase_key.md)
2222
* [Quote Character](checks/quote_character.md)
2323
* [Space Character](checks/space_character.md)
24+
* [Substitution Key](checks/substitution_key.md)
2425
* [Trailing whitespace](checks/trailing_whitespace.md)
2526
* [Unordered Key](checks/unordered_key.md)
2627

docs/checks/substitution_key.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Substitution Key
2+
3+
Detects if a substitution is not properly performed on key assignment:
4+
5+
```env
6+
❌ Wrong
7+
ABC=${BAR
8+
FOO="$BAR}"
9+
10+
✅ Correct
11+
ABC=${BAR}
12+
FOO="$BAR"
13+
```

0 commit comments

Comments
 (0)