Renamed the configuraiton to unreadable-literal-lint-fractions
This commit is contained in:
parent
18383c69c1
commit
898b7c594c
|
@ -1138,7 +1138,7 @@ pub fn register_plugins(store: &mut rustc_lint::LintStore, sess: &Session, conf:
|
||||||
store.register_late_pass(|| box cargo_common_metadata::CargoCommonMetadata);
|
store.register_late_pass(|| box cargo_common_metadata::CargoCommonMetadata);
|
||||||
store.register_late_pass(|| box multiple_crate_versions::MultipleCrateVersions);
|
store.register_late_pass(|| box multiple_crate_versions::MultipleCrateVersions);
|
||||||
store.register_late_pass(|| box wildcard_dependencies::WildcardDependencies);
|
store.register_late_pass(|| box wildcard_dependencies::WildcardDependencies);
|
||||||
let literal_representation_lint_fraction_readability = conf.lint_fraction_readability;
|
let literal_representation_lint_fraction_readability = conf.unreadable_literal_lint_fractions;
|
||||||
store.register_early_pass(move || box literal_representation::LiteralDigitGrouping::new(literal_representation_lint_fraction_readability));
|
store.register_early_pass(move || box literal_representation::LiteralDigitGrouping::new(literal_representation_lint_fraction_readability));
|
||||||
let literal_representation_threshold = conf.literal_representation_threshold;
|
let literal_representation_threshold = conf.literal_representation_threshold;
|
||||||
store.register_early_pass(move || box literal_representation::DecimalLiteralRepresentation::new(literal_representation_threshold));
|
store.register_early_pass(move || box literal_representation::DecimalLiteralRepresentation::new(literal_representation_threshold));
|
||||||
|
|
|
@ -171,7 +171,7 @@ define_Conf! {
|
||||||
/// Lint: DISALLOWED_METHOD. The list of blacklisted methods to lint about. NB: `bar` is not here since it has legitimate uses
|
/// Lint: DISALLOWED_METHOD. The list of blacklisted methods to lint about. NB: `bar` is not here since it has legitimate uses
|
||||||
(disallowed_methods, "disallowed_methods": Vec<String>, Vec::<String>::new()),
|
(disallowed_methods, "disallowed_methods": Vec<String>, Vec::<String>::new()),
|
||||||
/// Lint: UNREADABLE_LITERAL. Should the fraction of a decimal be linted to include separators.
|
/// Lint: UNREADABLE_LITERAL. Should the fraction of a decimal be linted to include separators.
|
||||||
(lint_fraction_readability, "lint_fraction_readability": bool, true),
|
(unreadable_literal_lint_fractions, "unreadable_literal_lint_fractions": bool, true),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Conf {
|
impl Default for Conf {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
lint-fraction-readability = false
|
unreadable-literal-lint-fractions = false
|
|
@ -1,4 +1,4 @@
|
||||||
error: error reading Clippy's configuration file `$DIR/clippy.toml`: unknown field `foobar`, expected one of `msrv`, `blacklisted-names`, `cognitive-complexity-threshold`, `cyclomatic-complexity-threshold`, `doc-valid-idents`, `too-many-arguments-threshold`, `type-complexity-threshold`, `single-char-binding-names-threshold`, `too-large-for-stack`, `enum-variant-name-threshold`, `enum-variant-size-threshold`, `verbose-bit-mask-threshold`, `literal-representation-threshold`, `trivial-copy-size-limit`, `pass-by-value-size-limit`, `too-many-lines-threshold`, `array-size-threshold`, `vec-box-size-threshold`, `max-trait-bounds`, `max-struct-bools`, `max-fn-params-bools`, `warn-on-all-wildcard-imports`, `disallowed-methods`, `lint-fraction-readability`, `third-party` at line 5 column 1
|
error: error reading Clippy's configuration file `$DIR/clippy.toml`: unknown field `foobar`, expected one of `msrv`, `blacklisted-names`, `cognitive-complexity-threshold`, `cyclomatic-complexity-threshold`, `doc-valid-idents`, `too-many-arguments-threshold`, `type-complexity-threshold`, `single-char-binding-names-threshold`, `too-large-for-stack`, `enum-variant-name-threshold`, `enum-variant-size-threshold`, `verbose-bit-mask-threshold`, `literal-representation-threshold`, `trivial-copy-size-limit`, `pass-by-value-size-limit`, `too-many-lines-threshold`, `array-size-threshold`, `vec-box-size-threshold`, `max-trait-bounds`, `max-struct-bools`, `max-fn-params-bools`, `warn-on-all-wildcard-imports`, `disallowed-methods`, `unreadable-literal-lint-fractions`, `third-party` at line 5 column 1
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue