Whitelist Nan in DOC_MARKDOWN
This commit is contained in:
@@ -151,7 +151,7 @@ define_Conf! {
|
|||||||
/// Lint: CYCLOMATIC_COMPLEXITY. The maximum cyclomatic complexity a function can have
|
/// Lint: CYCLOMATIC_COMPLEXITY. The maximum cyclomatic complexity a function can have
|
||||||
("cyclomatic-complexity-threshold", cyclomatic_complexity_threshold, 25 => u64),
|
("cyclomatic-complexity-threshold", cyclomatic_complexity_threshold, 25 => u64),
|
||||||
/// Lint: DOC_MARKDOWN. The list of words this lint should not consider as identifiers needing ticks
|
/// Lint: DOC_MARKDOWN. The list of words this lint should not consider as identifiers needing ticks
|
||||||
("doc-valid-idents", doc_valid_idents, ["MiB", "GiB", "TiB", "PiB", "EiB", "GitHub"] => Vec<String>),
|
("doc-valid-idents", doc_valid_idents, ["MiB", "GiB", "TiB", "PiB", "EiB", "GitHub", "NaN"] => Vec<String>),
|
||||||
/// Lint: TOO_MANY_ARGUMENTS. The maximum number of argument a function or method can have
|
/// Lint: TOO_MANY_ARGUMENTS. The maximum number of argument a function or method can have
|
||||||
("too-many-arguments-threshold", too_many_arguments_threshold, 7 => u64),
|
("too-many-arguments-threshold", too_many_arguments_threshold, 7 => u64),
|
||||||
/// Lint: TYPE_COMPLEXITY. The maximum complexity a type can have
|
/// Lint: TYPE_COMPLEXITY. The maximum complexity a type can have
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ fn test_emphasis() {
|
|||||||
/// 32kib 32Mib 32Gib 32Tib 32Pib 32Eib
|
/// 32kib 32Mib 32Gib 32Tib 32Pib 32Eib
|
||||||
/// 32kB 32MB 32GB 32TB 32PB 32EB
|
/// 32kB 32MB 32GB 32TB 32PB 32EB
|
||||||
/// 32kb 32Mb 32Gb 32Tb 32Pb 32Eb
|
/// 32kb 32Mb 32Gb 32Tb 32Pb 32Eb
|
||||||
|
/// NaN
|
||||||
/// be_sure_we_got_to_the_end_of_it
|
/// be_sure_we_got_to_the_end_of_it
|
||||||
//~^ ERROR: you should put `be_sure_we_got_to_the_end_of_it` between ticks
|
//~^ ERROR: you should put `be_sure_we_got_to_the_end_of_it` between ticks
|
||||||
fn test_units() {
|
fn test_units() {
|
||||||
|
|||||||
Reference in New Issue
Block a user