File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 38
38
run : cargo build --features deny-warnings
39
39
working-directory : clippy_dev
40
40
41
- - name : Test limit-stderr-length
42
- run : cargo dev --limit-stderr-length
41
+ - name : Test limit_stderr_length
42
+ run : cargo dev limit_stderr_length
43
43
44
44
- name : Test update_lints
45
45
run : cargo dev update_lints --check
Original file line number Diff line number Diff line change @@ -95,17 +95,12 @@ fn main() {
95
95
. takes_value ( true ) ,
96
96
) ,
97
97
)
98
- . arg (
99
- Arg :: with_name ( "limit-stderr-length" )
100
- . long ( "limit-stderr-length" )
101
- . help ( "Ensures that stderr files do not grow longer than a certain amount of lines." ) ,
98
+ . subcommand (
99
+ SubCommand :: with_name ( "limit_stderr_length" )
100
+ . about ( "Ensures that stderr files do not grow longer than a certain amount of lines." ) ,
102
101
)
103
102
. get_matches ( ) ;
104
103
105
- if matches. is_present ( "limit-stderr-length" ) {
106
- stderr_length_check:: check ( ) ;
107
- }
108
-
109
104
match matches. subcommand ( ) {
110
105
( "fmt" , Some ( matches) ) => {
111
106
fmt:: run ( matches. is_present ( "check" ) , matches. is_present ( "verbose" ) ) ;
@@ -129,6 +124,9 @@ fn main() {
129
124
Err ( e) => eprintln ! ( "Unable to create lint: {}" , e) ,
130
125
}
131
126
} ,
127
+ ( "limit_stderr_length" , _) => {
128
+ stderr_length_check:: check ( ) ;
129
+ } ,
132
130
_ => { } ,
133
131
}
134
132
}
You can’t perform that action at this time.
0 commit comments