aboutsummaryrefslogtreecommitdiffstats
path: root/src/_rubocop
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2023-08-09 11:39:37 +0900
committerShohei YOSHIDA <syohex@gmail.com>2023-08-09 11:39:37 +0900
commitb44635f0d98124e40ec4e3ae20730aac53b37595 (patch)
tree0f642d23e44a450dfcb0aae8caba7d9febcab4dc /src/_rubocop
parentMerge pull request #1021 from zsh-users/update-rfkill (diff)
downloadzsh-completions-b44635f0d98124e40ec4e3ae20730aac53b37595.tar
zsh-completions-b44635f0d98124e40ec4e3ae20730aac53b37595.tar.gz
zsh-completions-b44635f0d98124e40ec4e3ae20730aac53b37595.tar.bz2
zsh-completions-b44635f0d98124e40ec4e3ae20730aac53b37595.tar.lz
zsh-completions-b44635f0d98124e40ec4e3ae20730aac53b37595.tar.xz
zsh-completions-b44635f0d98124e40ec4e3ae20730aac53b37595.tar.zst
zsh-completions-b44635f0d98124e40ec4e3ae20730aac53b37595.zip
Update rubocop completion for version 1.55
Diffstat (limited to 'src/_rubocop')
-rw-r--r--src/_rubocop12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/_rubocop b/src/_rubocop
index af3277b..deca57d 100644
--- a/src/_rubocop
+++ b/src/_rubocop
@@ -28,7 +28,7 @@
# Description
# -----------
#
-# Completion script for rubocop 1.38 (https://github.com/rubocop/rubocop)
+# Completion script for rubocop 1.55 (https://github.com/rubocop/rubocop)
#
# ------------------------------------------------------------------------------
# Authors
@@ -51,7 +51,7 @@ _rubocop_format_params() {
_values 'formatter' $formatter
}
-_arguments -C \
+_arguments \
'(-l --lint)'{-l,--lint}'[Run only lint cops]' \
'(-x --fix-layout)'{-x,--fix-layout}'[Run only layout cops, with autocorrect on]' \
'--safe[Run only safe cops]' \
@@ -63,6 +63,9 @@ _arguments -C \
'--enable-pending-cops[Run with pending cops]' \
'--ignore-disable-comments[Run cops even when they are disabled locally by a `rubocop:disable` directive]' \
'--force-exclusion[Any files excluded by `Exclude` in configuration files will be excluded, even if given explicitly as arguments]' \
+ '--only-recognized-file-types[Inspect files given on the command line only if they are listed in configuration]' \
+ '--ignore-parent-exclusion[Prevent from inheriting "AllCops/Exclude" from parent folders]' \
+ '--ignore-unrecognized-cops[Ignore unrecognized cops or departments in the config]' \
'(-s --stdin)'{-s,--stdin}'[Pipe source from STDIN, using FILE in offense reports]: :_files' \
'(-P --parallel --no-parallel)'{-p,--parallel}'[Use available CPUs to execute inspection in parallel]' \
'(-P --parallel --no-parallel)--no-parallel[Execute not parallel]' \
@@ -70,11 +73,13 @@ _arguments -C \
'--fail-level[Minimum severity for exit with error code]:severity:(autocorrect info refactor convention warning error fatal)' \
'(-C --cache)'{-C,--cache}'[Use result caching or not]: :(TRUE FALSE)' \
'--cache-root[Set the cache root directory]: :_files -/' \
+ '--lsp[Start a language server listening on STDIN]' \
'--server[If a server process has not been started yet start the server process and execute inspection with server]' \
'--restart-server[Restart server process]' \
'--start-server[Start server process]' \
'--stop-server[Stop server process]' \
'--server-status[Show server status]' \
+ '--no-detach[Run the server process in the foreground]' \
'(-f --format)'{-f,--format}'[Choose an output formatter]:FORMATTER:_rubocop_format_params' \
'(-D --display-cop-names)'{-D,--display-cop-names}'[Display cop names in offense messages]' \
'(-E --extra-details)'{-E,--extra-details}'[Display extra details in offense messages]' \
@@ -95,6 +100,7 @@ _arguments -C \
'--offense-counts[Include offense counts in configuration file generated by --auto-gen-config]' \
'--auto-gen-only-exclude[Generate only Exclude parameters and not Max when running --auto-gen-config]' \
'--auto-gen-timestamp[Include the data and time when the --auto-gen-config was run in the file it generates]' \
+ '--auto-gen-enforced-style[Add a setting to the TODO configuration file to enforce the style used]' \
'(-L --list-target-files)'{-L,--list-target-files}'[List all files RuboCop will inspect]' \
'*--show-cops[Show the given cops or all cops]::cops' \
'--show-docs-url[Display url to documentation for the given cops or base url by default]::cops' \
@@ -106,6 +112,8 @@ _arguments -C \
'(--no-color --color)--no-color[Force color output off]' \
'(-v --version -V --verbose-version)'{-v,--version}'[Display version]' \
'(-V --verbose-version -v --version)'{-V,--verbose-version}'[Display verbose version]' \
+ '--profile[Profile rubocop]' \
+ '--memory[Profile rubocop memory usage]' \
'(- *)'{-h,--help}'[Show help]' \
'*: :_files' && ret=0