Add information on how get Shellcheck to ignore typographic quotes.

Anthony Geoghegan
2017-02-13 20:47:37 +00:00
parent 35e8cb13ab
commit 23d8bd2643

@@ -1,4 +1,4 @@
## This is a unicode single quote. Delete and retype it. ## This is a Unicode single quote. Delete and retype it.
### Problematic code: ### Problematic code:
@@ -14,8 +14,8 @@ echo 'hello world'
### Rationale: ### Rationale:
Some software, like OS X, Word and Wordpress, may automatically replace your regular quotes with slanted unicode quotes. Try deleting and retyping them, and/or disable "smart quotes" in your editor or OS. Some software, like OS X, Word and WordPress, may automatically replace your regular quotes with slanted Unicode quotes. Try deleting and retyping them, and/or disable smart quotes in your editor or OS.
### Exceptions ### Exceptions
None If you want to use typographic single quotes, you can put them in double quotes (or typographic double quotes in single quotes) to make shellcheck ignore them.