Merge pull request #1212 from zsh-users/update-rubocop

Update rubocop completion to version 1.82.1
This commit is contained in:
Shohei YOSHIDA 2025-12-27 13:58:22 +09:00 committed by GitHub
commit 2733ff9818
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 20 deletions

View File

@ -28,7 +28,7 @@
# Description # Description
# ----------- # -----------
# #
# Completion script for rubocop 1.71.0 (https://github.com/rubocop/rubocop) # Completion script for rubocop 1.82.1 (https://github.com/rubocop/rubocop)
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Authors # Authors
@ -39,9 +39,6 @@
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
local curcontext="$curcontext" state line ret=1
typeset -A opt_args
_rubocop_format_params() { _rubocop_format_params() {
local -a formatter=( local -a formatter=(
"autogenconf" "clang" "emacs" "files" "fuubar" "github" "html" "json" "junit" "autogenconf" "clang" "emacs" "files" "fuubar" "github" "html" "json" "junit"
@ -58,10 +55,10 @@ _arguments \
'*--except[Exclude the given cops]:cops' \ '*--except[Exclude the given cops]:cops' \
'*--only[Run only the given cops]:cops' \ '*--only[Run only the given cops]:cops' \
'--only-guide-cops[Run only cops for rules that link to a style guide]' \ '--only-guide-cops[Run only cops for rules that link to a style guide]' \
'(-F --fail-fast)'{-f,--fail-fast}'[Inspect files in order of modification time and stop after the first file containing offenses]' \ '(-F --fail-fast)'{-F,--fail-fast}'[Inspect files in order of modification time and stop after the first file containing offenses]' \
'--disable-pending-cops[Run without pending cops]' \ '(--disable-pending-cops --enable-pending-cops)--disable-pending-cops[Run without pending cops]' \
'--enable-pending-cops[Run with pending cops]' \ '(--disable-pending-cops --enable-pending-cops)--enable-pending-cops[Run with pending cops]' \
'--ignore-disable-comments[Run cops even when they are disabled locally by a `rubocop:disable` directive]' \ '--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]' \ '--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]' \ '--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-parent-exclusion[Prevent from inheriting "AllCops/Exclude" from parent folders]' \
@ -73,13 +70,13 @@ _arguments \
'(-P --parallel --no-parallel)--no-parallel[Execute not parallel]' \ '(-P --parallel --no-parallel)--no-parallel[Execute not parallel]' \
'--raise-cop-error[Raise cop-related errors with cause and location]' \ '--raise-cop-error[Raise cop-related errors with cause and location]' \
'--fail-level[Minimum severity for exit with error code]:severity:(autocorrect info refactor convention warning error fatal)' \ '--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)' \ '(-C --cache)'{-C,--cache}'[Use result caching or not]:flag:(true false)' \
'--cache-root[Set the cache root directory]: :_files -/' \ '--cache-root[Set the cache root directory]:dir:_files -/' \
'--lsp[Start a language server listening on STDIN]' \ '--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]' \ '--server[If a server process has not been started yet start the server process and execute inspection with server]' \
'--restart-server[Restart server process]' \ '(--restart-server --start-server --stop-server)--restart-server[Restart server process]' \
'--start-server[Start server process]' \ '(--restart-server --start-server --stop-server)--start-server[Start server process]' \
'--stop-server[Stop server process]' \ '(--restart-server --start-server --stop-server)--stop-server[Stop server process]' \
'--server-status[Show server status]' \ '--server-status[Show server status]' \
'--no-detach[Run the server process in the foreground]' \ '--no-detach[Run the server process in the foreground]' \
'(-f --format)'{-f,--format}'[Choose an output formatter]:FORMATTER:_rubocop_format_params' \ '(-f --format)'{-f,--format}'[Choose an output formatter]:FORMATTER:_rubocop_format_params' \
@ -98,8 +95,8 @@ _arguments \
'--disable-uncorrectable[used with --autocorrect to annotate any offenses that do not support autocorrect with comments]' \ '--disable-uncorrectable[used with --autocorrect to annotate any offenses that do not support autocorrect with comments]' \
'--auto-gen-config[Generate a configuration file acting as a TODO list]' \ '--auto-gen-config[Generate a configuration file acting as a TODO list]' \
'--regenerate-todo[Regenerate the TODO configuration file using the last configuration]' \ '--regenerate-todo[Regenerate the TODO configuration file using the last configuration]' \
'(--no-exclude-limit)--exclude-limit[Set the limit for how many files to explicitly exclude]:count' \ '(--no-exclude-limit --exclude-limit)--exclude-limit[Set the limit for how many files to explicitly exclude]:count' \
'(--exclude-limit)--no-exclude-limit[Do not set the limit for how many files to exclude]' \ '(--no-exclude-limit --exclude-limit)--no-exclude-limit[Do not set the limit for how many files to exclude]' \
'--offense-counts[Include offense counts in configuration file generated by --auto-gen-config]' \ '--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-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-timestamp[Include the data and time when the --auto-gen-config was run in the file it generates]' \
@ -110,17 +107,16 @@ _arguments \
'--init[Generate a .rubocop.yml file in the current directory]' \ '--init[Generate a .rubocop.yml file in the current directory]' \
'(-c --config)'{-c,--config}'[Specify configuration file]: :_files' \ '(-c --config)'{-c,--config}'[Specify configuration file]: :_files' \
'(-d --debug)'{-d,--debug}'[Display debug info]' \ '(-d --debug)'{-d,--debug}'[Display debug info]' \
'*--plugin[Load a RuboCop plugin]: :_files' \
'(-r --require)'{-r,--require}'[Require Ruby file]: :_files' \ '(-r --require)'{-r,--require}'[Require Ruby file]: :_files' \
'(--no-color --color)--color[Force color output on]' \ '(--no-color --color)--color[Force color output on]' \
'(--no-color --color)--no-color[Force color output off]' \ '(--no-color --color)--no-color[Force color output off]' \
'(-v --version -V --verbose-version)'{-v,--version}'[Display version]' \ '(- *)'{-v,--version}'[Display version]' \
'(-V --verbose-version -v --version)'{-V,--verbose-version}'[Display verbose version]' \ '(- *)'{-V,--verbose-version}'[Display verbose version]' \
'--profile[Profile rubocop]' \ '--profile[Profile rubocop]' \
'--memory[Profile rubocop memory usage]' \ '--memory[Profile rubocop memory usage]' \
'(- *)'{-h,--help}'[Show help]' \ '(- *)'{-h,--help}'[Show help]' \
'*: :_files' && ret=0 '*: :_files'
return ret
# Local Variables: # Local Variables:
# mode: Shell-Script # mode: Shell-Script