@@ -235,7 +235,7 @@ define_Conf! {
235
235
///
236
236
/// A type, say `SomeType`, listed in this configuration has the same behavior of
237
237
/// `["SomeType" , "*"], ["*", "SomeType"]` in `arithmetic_side_effects_allowed_binary`.
238
- ( arithmetic_side_effects_allowed: FxHashSet <String > = <_>:: default ( ) ) ,
238
+ ( arithmetic_side_effects_allowed: Vec <String > = <_>:: default ( ) ) ,
239
239
/// Lint: ARITHMETIC_SIDE_EFFECTS.
240
240
///
241
241
/// Suppress checking of the passed type pair names in binary operations like addition or
@@ -262,7 +262,7 @@ define_Conf! {
262
262
/// ```toml
263
263
/// arithmetic-side-effects-allowed-unary = ["SomeType", "AnotherType"]
264
264
/// ```
265
- ( arithmetic_side_effects_allowed_unary: FxHashSet <String > = <_>:: default ( ) ) ,
265
+ ( arithmetic_side_effects_allowed_unary: Vec <String > = <_>:: default ( ) ) ,
266
266
/// Lint: ENUM_VARIANT_NAMES, LARGE_TYPES_PASSED_BY_VALUE, TRIVIALLY_COPY_PASS_BY_REF, UNNECESSARY_WRAPS, UNUSED_SELF, UPPER_CASE_ACRONYMS, WRONG_SELF_CONVENTION, BOX_COLLECTION, REDUNDANT_ALLOCATION, RC_BUFFER, VEC_BOX, OPTION_OPTION, LINKEDLIST, RC_MUTEX, UNNECESSARY_BOX_RETURNS, SINGLE_CALL_FN, NEEDLESS_PASS_BY_REF_MUT.
267
267
///
268
268
/// Suppress lints whenever the suggested change would cause breakage for other crates.
@@ -311,7 +311,7 @@ define_Conf! {
311
311
/// default configuration of Clippy. By default, any configuration will replace the default value. For example:
312
312
/// * `doc-valid-idents = ["ClipPy"]` would replace the default list with `["ClipPy"]`.
313
313
/// * `doc-valid-idents = ["ClipPy", ".."]` would append `ClipPy` to the default list.
314
- ( doc_valid_idents: Vec <String > = DEFAULT_DOC_VALID_IDENTS . iter( ) . map( ToString :: to_string) . collect( ) ) ,
314
+ ( doc_valid_idents: FxHashSet <String > = DEFAULT_DOC_VALID_IDENTS . iter( ) . map( ToString :: to_string) . collect( ) ) ,
315
315
/// Lint: TOO_MANY_ARGUMENTS.
316
316
///
317
317
/// The maximum number of argument a function or method can have
@@ -547,7 +547,7 @@ define_Conf! {
547
547
/// Lint: PATH_ENDS_WITH_EXT.
548
548
///
549
549
/// Additional dotfiles (files or directories starting with a dot) to allow
550
- ( allowed_dotfiles: FxHashSet <String > = FxHashSet :: default ( ) ) ,
550
+ ( allowed_dotfiles: Vec <String > = Vec :: default ( ) ) ,
551
551
/// Lint: MULTIPLE_CRATE_VERSIONS.
552
552
///
553
553
/// A list of crate names to allow duplicates of
@@ -700,7 +700,6 @@ pub fn lookup_conf_file() -> io::Result<(Option<PathBuf>, Vec<String>)> {
700
700
fn deserialize ( file : & SourceFile ) -> TryConf {
701
701
match toml:: de:: Deserializer :: new ( file. src . as_ref ( ) . unwrap ( ) ) . deserialize_map ( ConfVisitor ( file) ) {
702
702
Ok ( mut conf) => {
703
- extend_vec_if_indicator_present ( & mut conf. conf . doc_valid_idents , DEFAULT_DOC_VALID_IDENTS ) ;
704
703
extend_vec_if_indicator_present ( & mut conf. conf . disallowed_names , DEFAULT_DISALLOWED_NAMES ) ;
705
704
extend_vec_if_indicator_present ( & mut conf. conf . allowed_prefixes , DEFAULT_ALLOWED_PREFIXES ) ;
706
705
extend_vec_if_indicator_present (
@@ -713,6 +712,11 @@ fn deserialize(file: &SourceFile) -> TryConf {
713
712
. allowed_idents_below_min_chars
714
713
. extend ( DEFAULT_ALLOWED_IDENTS_BELOW_MIN_CHARS . iter ( ) . map ( ToString :: to_string) ) ;
715
714
}
715
+ if conf. conf . doc_valid_idents . contains ( ".." ) {
716
+ conf. conf
717
+ . doc_valid_idents
718
+ . extend ( DEFAULT_DOC_VALID_IDENTS . iter ( ) . map ( ToString :: to_string) ) ;
719
+ }
716
720
717
721
conf
718
722
} ,
0 commit comments