fix(dict): Don't correct countr_one

Fixes #1061
This commit is contained in:
Ed Page committed 2024-07-25 09:15:16 -05:00
1 parent de9928a5f8
commit 5aa093dc25
2 files changed
+10 -9

No files matched your search

@@ -7,6 +7,15 @@
pub(crate) const NO_CHECK_TYPES: &[&str] = &["cert", "lock"];
pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
(
"cpp",
StaticDictConfig {
ignore_idents: &[
"countr_one", // `std::countr_one`
],
ignore_words: &[],
},
),
(
"css",
StaticDictConfig {
@@ -1,12 +1,4 @@
bin.name = "typos"
stdin = ""
stdout = """
error: `countr` should be `counter`, `contour`, `country`, `county`
--> ./sample.cpp:3:10
|
3 | std::countr_one(i);
| ^^^^^^
|
"""
stdout = ""
stderr = ""
status.code = 2