Skip to content

Commit

Permalink
Add support for ShellCheck configuration files (github-linguist#5667)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alhadis authored Dec 5, 2021
1 parent 0304edc commit 0afc750
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3737,7 +3737,7 @@ MoonScript:
language_id: 238
Motoko:
type: programming
color: '#fbb03b'
color: "#fbb03b"
extensions:
- ".mo"
tm_scope: source.mo
Expand Down Expand Up @@ -5664,6 +5664,18 @@ Shell:
codemirror_mode: shell
codemirror_mime_type: text/x-sh
language_id: 346
ShellCheck Config:
type: data
color: "#cecfcb"
filenames:
- ".shellcheckrc"
aliases:
- shellcheckrc
tm_scope: source.shellcheckrc
ace_mode: ini
codemirror_mode: properties
codemirror_mime_type: text/x-properties
language_id: 687511714
ShellSession:
type: programming
extensions:
Expand Down
9 changes: 9 additions & 0 deletions samples/ShellCheck Config/filenames/.shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
shell=sh
enable=avoid-nullary-conditions,deprecate-which,quote-safe-variables

# Solaris 8-9 compatibility
disable=SC2006 # Don't suggest $(…) instead of `…`
disable=SC2021 # Ignore bracketed tr(1) ranges

# Don't suggest explicit “-n” operators in tests
disable=SC2244
1 change: 1 addition & 0 deletions vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **Scilab:** [textmate/scilab.tmbundle](https://github.com/textmate/scilab.tmbundle)
- **ShaderLab:** [tgjones/shaders-tmLanguage](https://github.com/tgjones/shaders-tmLanguage)
- **Shell:** [atom/language-shellscript](https://github.com/atom/language-shellscript)
- **ShellCheck Config:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc)
- **ShellSession:** [atom/language-shellscript](https://github.com/atom/language-shellscript)
- **Shen:** [rkoeninger/sublime-shen](https://github.com/rkoeninger/sublime-shen)
- **Sieve:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc)
Expand Down

0 comments on commit 0afc750

Please sign in to comment.