mirror of
https://github.com/crate-ci/typos.git
synced 2024-12-22 15:42:23 -05:00
Merge pull request #1062 from epage/cpp
fix(dict): Don't correct countr_one
This commit is contained in:
commit
7461343b85
2 changed files with 14 additions and 0 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 {
|
||||
|
|
5
crates/typos-cli/tests/cmd/false-positives.in/sample.cpp
Normal file
5
crates/typos-cli/tests/cmd/false-positives.in/sample.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
int main() {
|
||||
uint8 i = 0;
|
||||
std::countr_one(i);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue