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