Skip to content

Commit b624c25

Browse files
dd8788strager
authored andcommitted
feat: add --snarky option
Make quick-lint-js fun by adding an option, --snarky, which uses silly messages.
1 parent 3a376c3 commit b624c25

15 files changed

Lines changed: 1909 additions & 264 deletions

completions/_quick-lint-js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function _quick-lint-js() {
2323
'(--lsp-server)--exit-fail-on=[Fail with a non-zero exit code if any of these errors are found (default\: "all")]'
2424
'(--lsp-server)--output-format=[Format to print feedback]:format:((vim-qflist-json\:"machine-readable JSON which can be given to Vim'\''s setqflist function" gnu-like\:"a human-readable format similar to GCC" emacs-lisp\:"Emacs Lisp association list format"))'
2525
'(--lsp-server)--diagnostic-hyperlinks=[Control whether to hyperlink error codes or not]:when:((auto\:"shows error codes as hyperlinks only if the error output is a terminal" always\:"always shows error codes as hyperlinks" never\:"never shows error codes as hyperlinks"))'
26+
'--snarky[Add spice to your failures]'
2627
'--vim-file-bufnr=[Select a vim buffer for outputting feedback]')
2728

2829
_arguments -M "r:|[_]=* r:|=*" -S "${args[@]}" && ret=0

completions/quick-lint-js.fish

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ complete -c quick-lint-js -l stdin -d 'Read standard input as a JavaScript file'
99
complete -c quick-lint-js -l exit-fail-on -d 'Fail with a non-zero exit code if any of these errors are found (default: "all")' -r
1010
complete -c quick-lint-js -l output-format -d 'Format to print feedback' -xa 'gnu-like\t"(default) a human-readable format similar to GCC" vim-qflist-json\t"machine-readable JSON which can be given to Vim\'s setqflist function" emacs-lisp\t"Emacs Lisp association list format"'
1111
complete -c quick-lint-js -l diagnostic-hyperlinks -d 'Control whether to hyperlink error codes or not' -xa 'auto\t"(default) shows error codes as hyperlinks only if the error output is a terminal" always\t"always shows error codes as hyperlinks" never\t"never shows error codes as hyperlinks"'
12+
complete -c quick-lint-js -l snarky -d 'Add spice to your failures' -r
1213
complete -c quick-lint-js -l vim-file-bufnr -d 'Select a vim buffer for outputting feedback' -r
1314
1415
# quick-lint-js finds bugs in JavaScript programs.

completions/quick-lint-js.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
CompletionText = '--diagnostic-hyperlinks='
3838
ToolTip = "Control whether to hyperlink error codes or not`n`nauto: shows error codes as hyperlinks only if the error output is a terminal`nalways: always shows error codes as hyperlinks`nnever: never shows error codes as hyperlinks"
3939
},
40+
@{
41+
CompletionText = '--snarky'
42+
ToolTip = 'Add spice to your failures'
43+
},
4044
@{
4145
CompletionText = '--vim-file-bufnr='
4246
ToolTip = 'Select a vim buffer for outputting feedback'

docs/AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The following contributors are copyright holders of portions of quick-lint-js:
1212

1313
* CodeItQuick; evanontario@hotmail.com
1414
* EdTheDagger
15+
* david doroz; dd8788@rit.edu
1516
* spicyyboi
1617

1718
## Authors

docs/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Semantic Versioning.
2222
* VS Code: The new `quick-lint-js.tracing` setting can be set to `"verbose"` to
2323
log changes to documents. This keylogger option can be used by quick-lint-js
2424
contributors to investigate bugs. This new option is disabled by default.
25+
* CLI: The `--snarky` option makes error messages more interesting. Implemented
26+
by [david doroz][].
2527

2628
### Fixed
2729

@@ -536,6 +538,7 @@ Beta release.
536538
[Tony Sathre]: https://github.com/tonysathre
537539
[coc.nvim]: https://github.com/neoclide/coc.nvim
538540
[config-global-groups]: https://quick-lint-js.com/config/#global-groups
541+
[david doroz]: https://github.com/DaviddHub
539542
[install-powershell-completions]: https://github.com/quick-lint/quick-lint-js/blob/master/completions/README.md#powershell
540543
[ooblegork]: https://github.com/ooblegork
541544
[tiagovla]: https://github.com/tiagovla

docs/cli.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ Incompatible with *--lsp-server*.
139139
+
140140
Incompatible with *--output-format*.
141141

142+
*--snarky*::
143+
Add spice to your failures.
144+
This option makes error messages more interesting.
145+
142146
*-h*::
143147
*--help*::
144148
Print a help message and exit.

docs/man/quick-lint-js.1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ An editor can send LSP requests and notifications to \fBquick\-lint\-js\fP via s
211211
Incompatible with \fB\-\-output\-format\fP.
212212
.RE
213213
.sp
214+
\fB\-\-snarky\fP
215+
.RS 4
216+
Add spice to your failures.
217+
This option makes error messages more interesting.
218+
.RE
219+
.sp
214220
\fB\-h\fP, \fB\-\-help\fP
215221
.RS 4
216222
Print a help message and exit.

0 commit comments

Comments
 (0)