@@ -276,14 +276,39 @@ impl NoIgnore {
276
276
277
277
#[ derive( Args , Debug ) ]
278
278
pub struct SeverityArg {
279
+ /// Set rule severity to error
280
+ ///
281
+ /// This flag sets the specified RULE_ID's severity to error. You can specify multiple rules by using the flag multiple times,
282
+ /// e.g., `--error=RULE_1 --error=RULE_2`. If no RULE_ID is provided, all rules will be set to error, e.g., `--error`.
283
+ /// Note, this flag must use `=` to specify its value.
279
284
#[ clap( long, action = clap:: ArgAction :: Append , value_name = "RULE_ID" , num_args( 0 ..) , require_equals = true ) ]
280
285
pub error : Option < Vec < String > > ,
286
+ /// Set rule severity to warning
287
+ ///
288
+ /// This flag sets the specified RULE_ID's severity to warning. You can specify multiple rules by using the flag multiple times.
289
+ /// If no RULE_ID is provided, all rules will be set to warning.
290
+ /// Note, this flag must use `=` to specify its value.
281
291
#[ clap( long, action = clap:: ArgAction :: Append , value_name = "RULE_ID" , num_args( 0 ..) , require_equals = true ) ]
282
292
pub warning : Option < Vec < String > > ,
293
+ /// Set rule severity to info
294
+ ///
295
+ /// This flag sets the specified RULE_ID's severity to info. You can specify multiple rules by using the flag multiple times.
296
+ /// If no RULE_ID is provided, all rules will be set to info.
297
+ /// Note, this flag must use `=` to specify its value.
283
298
#[ clap( long, action = clap:: ArgAction :: Append , value_name = "RULE_ID" , num_args( 0 ..) , require_equals = true ) ]
284
299
pub info : Option < Vec < String > > ,
300
+ /// Set rule severity to hint
301
+ ///
302
+ /// This flag sets the specified RULE_ID's severity to hint. You can specify multiple rules by using the flag multiple times.
303
+ /// If no RULE_ID is provided, all rules will be set to hint.
304
+ /// Note, this flag must use `=` to specify its value.
285
305
#[ clap( long, action = clap:: ArgAction :: Append , value_name = "RULE_ID" , num_args( 0 ..) , require_equals = true ) ]
286
306
pub hint : Option < Vec < String > > ,
307
+ /// Turn off rule
308
+ ///
309
+ /// This flag turns off the specified RULE_ID. You can disable multiple rules by using the flag multiple times.
310
+ /// If no RULE_ID is provided, all rules will be turned off.
311
+ /// Note, this flag must use `=` to specify its value.
287
312
#[ clap( long, action = clap:: ArgAction :: Append , value_name = "RULE_ID" , num_args( 0 ..) , require_equals = true ) ]
288
313
pub off : Option < Vec < String > > ,
289
314
}
0 commit comments