@@ -575,10 +575,24 @@ define_Conf! {
575
575
#[ conf_deprecated( "Please use `cognitive-complexity-threshold` instead" , cognitive_complexity_threshold) ]
576
576
cyclomatic_complexity_threshold: u64 = 25 ,
577
577
/// The list of disallowed macros, written as fully qualified paths.
578
+ ///
579
+ /// **Fields:**
580
+ /// - `path` (required): the fully qualified path to the macro that should be disallowed
581
+ /// - `reason` (optional): explanation why this macro is disallowed
582
+ /// - `replacement` (optional): suggested alternative macro
583
+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
584
+ /// if the path doesn't exist, instead of emitting an error
578
585
#[ disallowed_paths_allow_replacements = true ]
579
586
#[ lints( disallowed_macros) ]
580
587
disallowed_macros: Vec <DisallowedPath > = Vec :: new( ) ,
581
588
/// The list of disallowed methods, written as fully qualified paths.
589
+ ///
590
+ /// **Fields:**
591
+ /// - `path` (required): the fully qualified path to the method that should be disallowed
592
+ /// - `reason` (optional): explanation why this method is disallowed
593
+ /// - `replacement` (optional): suggested alternative method
594
+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
595
+ /// if the path doesn't exist, instead of emitting an error
582
596
#[ disallowed_paths_allow_replacements = true ]
583
597
#[ lints( disallowed_methods) ]
584
598
disallowed_methods: Vec <DisallowedPath > = Vec :: new( ) ,
@@ -588,6 +602,13 @@ define_Conf! {
588
602
#[ lints( disallowed_names) ]
589
603
disallowed_names: Vec <String > = DEFAULT_DISALLOWED_NAMES . iter( ) . map( ToString :: to_string) . collect( ) ,
590
604
/// The list of disallowed types, written as fully qualified paths.
605
+ ///
606
+ /// **Fields:**
607
+ /// - `path` (required): the fully qualified path to the type that should be disallowed
608
+ /// - `reason` (optional): explanation why this type is disallowed
609
+ /// - `replacement` (optional): suggested alternative type
610
+ /// - `allow-invalid` (optional, `false` by default): when set to `true`, it will ignore this entry
611
+ /// if the path doesn't exist, instead of emitting an error
591
612
#[ disallowed_paths_allow_replacements = true ]
592
613
#[ lints( disallowed_types) ]
593
614
disallowed_types: Vec <DisallowedPath > = Vec :: new( ) ,
0 commit comments