aboutsummaryrefslogtreecommitdiffstats
path: root/src/_rubocop
diff options
context:
space:
mode:
authorAkira Maeda <glidenote@gmail.com>2014-05-29 00:50:20 +0900
committerAkira Maeda <glidenote@gmail.com>2014-05-29 00:50:20 +0900
commitac32fd2e6396bf866c2b4d2df1b3a13439013eba (patch)
tree05a886ae0f81e1dc04bb4f81ca6c660959d0740d /src/_rubocop
parentadd rubocop completion (diff)
downloadzsh-completions-ac32fd2e6396bf866c2b4d2df1b3a13439013eba.tar
zsh-completions-ac32fd2e6396bf866c2b4d2df1b3a13439013eba.tar.gz
zsh-completions-ac32fd2e6396bf866c2b4d2df1b3a13439013eba.tar.bz2
zsh-completions-ac32fd2e6396bf866c2b4d2df1b3a13439013eba.tar.lz
zsh-completions-ac32fd2e6396bf866c2b4d2df1b3a13439013eba.tar.xz
zsh-completions-ac32fd2e6396bf866c2b4d2df1b3a13439013eba.tar.zst
zsh-completions-ac32fd2e6396bf866c2b4d2df1b3a13439013eba.zip
fix option for version 0.22.0
Diffstat (limited to 'src/_rubocop')
-rw-r--r--src/_rubocop18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/_rubocop b/src/_rubocop
index 43d5422..e32aef7 100644
--- a/src/_rubocop
+++ b/src/_rubocop
@@ -21,28 +21,34 @@ typeset -A opt_args
_rubocop_format_params() {
_values \
- 'FORMAT' \
+ 'FORMATTER' \
'progress' \
'simple' \
'clang' \
+ 'disabled' \
+ 'fuubar' \
+ 'emacs' \
'json' \
'files' \
- 'offences'
+ 'offenses'
}
_arguments -C \
- '(--only)--only[Run just one cop.]' \
+ '(--only)--only[Run only the given cop(s)]' \
'(-c --config)'{-c,--config}'[Specify configuration file]' \
'(--auto-gen-config)--auto-gen-config[Generate a configuration file acting as a TODO list]' \
- '(-f --format)'{-f,--format}'[Choose an output formatter.]:FORMAT:_rubocop_format_params' \
+ '(--force-exclusion)--force-exclusion[Force excluding files specified in the configuration `Exclude` even if they are explicitly passed as arguments]' \
+ '(-f --format)'{-f,--format}'[Choose an output formatter.]:FORMATTER:_rubocop_format_params' \
'(-o --out)'{-o,--out}'[Write output to a file instead of STDOUT]' \
'(-r --require)'{-r,--require}'[Require Ruby file.]' \
- '(--show-cops)--show-cops[Shows the given cops, or all cops by default]' \
+ '(--fail-level)--fail-level[Minimum severity for exit with error code.]' \
+ '(--show-cops)--show-cops[Shows the given cops, or all cops by default, and their configurations for the current directory.]' \
+ '(-F --fail-fast)'{-f,--fail-fast}'[Inspect files in order of modification time ant stop after the first file containing offenses]' \
'(-d --debug)'{-d,--debug}'[Display debug info]' \
'(-D --display-cop-names)'{-D,--display-cop-names}'[Display cop names in offence messages.]' \
'(-R --rails)'{-R,--rails}'[Run extra Rails cops.]' \
'(-l --lint)'{-l,--lint}'[Run only lint cops.]' \
- '(-a --auto-correct)'{-a,--auto-correct}'[Auto-corrent offences.]' \
+ '(-a --auto-correct)'{-a,--auto-correct}'[Auto-correct offences.]' \
'(-n --no-color)'{-n,--no-color}'[Disable color output.]' \
'(-v --version)'{-v,--version}'[Disable version.]' \
'(-V --verbose-version)'{-V,--verbose-version}'[Disable verbose version.]' \