mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-25 02:20:58 -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 NO_CHECK_TYPES: &[&str] = &["cert", "lock"];
|
||||||
|
|
||||||
pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
|
pub(crate) const TYPE_SPECIFIC_DICTS: &[(&str, StaticDictConfig)] = &[
|
||||||
|
(
|
||||||
|
"cpp",
|
||||||
|
StaticDictConfig {
|
||||||
|
ignore_idents: &[
|
||||||
|
"countr_one", // `std::countr_one`
|
||||||
|
],
|
||||||
|
ignore_words: &[],
|
||||||
|
},
|
||||||
|
),
|
||||||
(
|
(
|
||||||
"css",
|
"css",
|
||||||
StaticDictConfig {
|
StaticDictConfig {
|
||||||
|
|
|
@ -1,12 +1,4 @@
|
||||||
bin.name = "typos"
|
bin.name = "typos"
|
||||||
stdin = ""
|
stdin = ""
|
||||||
stdout = """
|
stdout = ""
|
||||||
error: `countr` should be `counter`, `contour`, `country`, `county`
|
|
||||||
--> ./sample.cpp:3:10
|
|
||||||
|
|
|
||||||
3 | std::countr_one(i);
|
|
||||||
| ^^^^^^
|
|
||||||
|
|
|
||||||
"""
|
|
||||||
stderr = ""
|
stderr = ""
|
||||||
status.code = 2
|
|
||||||
|
|
Loading…
Reference in a new issue