@@ -9,7 +9,7 @@ _pylint()
9
9
10
10
case $prev in
11
11
--version|--help|--long-help|--help-msg|--init-hook|--ignore|--enable|\
12
- --disable|-- evaluation|--max-line-length|--max-module-lines|\
12
+ --evaluation|--max-line-length|--max-module-lines|\
13
13
--indent-string|--min-similarity-lines|--max-args|\
14
14
--ignored-argument-names|--max-locals|--max-returns|--max-branchs|\
15
15
--max-statements|--max-parents|--max-attributes|--min-public-methods|\
@@ -20,7 +20,11 @@ _pylint()
20
20
--additional-builtins|--notes|--ignored-classes|--generated-members|\
21
21
--overgeneral-exceptions|--ignore-iface-methods|\
22
22
--defining-attr-methods|--valid-classmethod-first-arg|\
23
- --valid-metaclass-classmethod-first-arg|-! (-* )[hed])
23
+ --valid-metaclass-classmethod-first-arg|-! (-* )[he])
24
+ return
25
+ ;;
26
+ --disable|-! (-* )d)
27
+ COMPREPLY=( $( compgen -W ' all' -- " $cur " ) )
24
28
return
25
29
;;
26
30
--rcfile)
@@ -29,7 +33,8 @@ _pylint()
29
33
;;
30
34
--persistent|--include-ids|--symbols|--files-output|--reports|\
31
35
--comment|--ignore-comments|--ignore-docstrings|--ignore-imports|\
32
- --init-import|--ignore-mixin-members|--zope|-! (-* )[isr])
36
+ --init-import|--ignore-mixin-members|--zope|--suggestion-mode|\
37
+ -! (-* )[isr])
33
38
COMPREPLY=( $( compgen -W ' yes no' -- " $cur " ) )
34
39
return
35
40
;;
@@ -40,6 +45,16 @@ _pylint()
40
45
[[ ${# COMPREPLY[@]} -eq 1 ]] && COMPREPLY=( ${COMPREPLY/#/ $prefix } )
41
46
return
42
47
;;
48
+ --jobs|-! (-* )j)
49
+ COMPREPLY=( $( compgen -W " {1..$( _ncpus) }" -- " $cur " ) )
50
+ return
51
+ ;;
52
+ --confidence)
53
+ # TODO comma separated?
54
+ COMPREPLY=( $( compgen -W " HIGH INFERENCE INFERENCE_FAILURE
55
+ UNDEFINED" -- " $cur " ) )
56
+ return
57
+ ;;
43
58
--format|-! (-* )f)
44
59
COMPREPLY=( $( compgen -W ' text parseable colorized msvs html' \
45
60
-- " $cur " ) )
0 commit comments