mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC2274 (markdown)
24
SC2274.md
Normal file
24
SC2274.md
Normal file
@@ -0,0 +1,24 @@
|
||||
## Command name starts with ===. Intended as a commented border?
|
||||
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
===================== MAIN SECTION =======================
|
||||
```
|
||||
|
||||
### Correct code:
|
||||
|
||||
```sh
|
||||
# ===================== MAIN SECTION =======================
|
||||
```
|
||||
### Rationale:
|
||||
|
||||
ShellCheck found a command that starts with a series of `===`s. This may have been intended as a border, but is missing the `#` to turn it into a harmless comment.
|
||||
|
||||
### Exceptions:
|
||||
|
||||
None
|
||||
|
||||
### Related resources:
|
||||
|
||||
* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!
|
Reference in New Issue
Block a user