mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated DevGuide (markdown)
@@ -29,7 +29,7 @@ when (hasLeftSpace || hasRightSpace) $
|
||||
parseNoteAt pos ErrorC 1068 "Don't put spaces around the = in assignments."
|
||||
```
|
||||
|
||||
On the other hand, problems are always emitted, even when parsing fails (they are stored in a StateT higher than Parsec in the transformer stack). For example, a problem is emitted for unicode quotes, because this issue is likely to cause parsing to fail:
|
||||
On the other hand, problems are always emitted, even when parsing fails (they are stored in a StateT higher than Parsec in the transformer stack). For example, a problem is emitted if there's an unescaped linefeed in a `[ .. ]` expression, because the statement is likely malformed or unterminated, and we want to show this warning even if we're unable to parse the whole thing:
|
||||
|
||||
```haskell
|
||||
when (single && '\n' `elem` space) $
|
||||
|
Reference in New Issue
Block a user