mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-21 16:41:01 -05:00
parent
de9928a5f8
commit
5aa093dc25
2 changed files with 10 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue