mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC2273 (markdown)
36
SC2273.md
Normal file
36
SC2273.md
Normal file
@@ -0,0 +1,36 @@
|
||||
## Sequence of ===s found. Merge conflict or intended as a commented border?
|
||||
|
||||
### Problematic code:
|
||||
|
||||
```sh
|
||||
=======
|
||||
```
|
||||
|
||||
### Correct code:
|
||||
|
||||
Either resolve the merge conflict, or use `# =======` for a border
|
||||
|
||||
### Rationale:
|
||||
|
||||
ShellCheck found a series of `=======`s. If this was supposed to be a border or separator, use a comment.
|
||||
|
||||
|
||||
However, it could also be left behind from a source control merge conflict:
|
||||
|
||||
```sh
|
||||
<<<<<<< HEAD
|
||||
echo "Goodbye World"
|
||||
=======
|
||||
echo "Hello World!"
|
||||
>>>>>>> mybranch
|
||||
```
|
||||
|
||||
In this case, make sure the merge conflict is correctly resolved, and all the markers removed.
|
||||
|
||||
### Exceptions:
|
||||
|
||||
None
|
||||
|
||||
### Related resources:
|
||||
|
||||
* Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!
|
Reference in New Issue
Block a user