diff options
| author | Philipp Hansch <dev@phansch.net> | 2018-12-11 19:37:43 +0100 |
|---|---|---|
| committer | Philipp Hansch <dev@phansch.net> | 2018-12-11 19:37:43 +0100 |
| commit | ee2abc36a33bbbb6d84f823cb5e09b4603af1f32 (patch) | |
| tree | 6d2a29c1f4a5a28add8d964c4d06aa37233b10b0 | |
| parent | d6db67793e53ee0a4a54fdfda2ef88d5e8ae7767 (diff) | |
| download | rust-ee2abc36a33bbbb6d84f823cb5e09b4603af1f32.tar.gz rust-ee2abc36a33bbbb6d84f823cb5e09b4603af1f32.zip | |
Add 'CamelCase' to doc_valid_idents
| -rw-r--r-- | clippy_lints/src/utils/conf.rs | 1 | ||||
| -rw-r--r-- | tests/ui/doc.rs | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/clippy_lints/src/utils/conf.rs b/clippy_lints/src/utils/conf.rs index 63e2db7506c..35fcc08b518 100644 --- a/clippy_lints/src/utils/conf.rs +++ b/clippy_lints/src/utils/conf.rs @@ -137,6 +137,7 @@ define_Conf! { "iOS", "macOS", "TeX", "LaTeX", "BibTeX", "BibLaTeX", "MinGW", + "CamelCase", ] => Vec<String>), /// 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), diff --git a/tests/ui/doc.rs b/tests/ui/doc.rs index dde1a471e6e..8935e3f01d5 100644 --- a/tests/ui/doc.rs +++ b/tests/ui/doc.rs @@ -174,3 +174,6 @@ fn issue_1920() {} /// Not ok: http://www.unicode.org/ /// Not ok: http://www.unicode.org/reports/tr9/#Reordering_Resolved_Levels fn issue_1832() {} + +/// Ok: CamelCase (It should not be surrounded by backticks) +fn issue_2395() {} |
