fix(dict): Don't correct countr_one

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

View file

@ -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 {

View file

@ -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