mirror of
https://github.com/crate-ci/typos.git
synced 2025-01-09 08:14:53 -05:00
parent
83dc9dcb5f
commit
29ebe5ab48
1 changed files with 9 additions and 0 deletions
|
@ -167,6 +167,15 @@ impl TypeEngineConfig {
|
||||||
|
|
||||||
pub fn patterns(&self) -> impl Iterator<Item = (kstring::KString, GlobEngineConfig)> {
|
pub fn patterns(&self) -> impl Iterator<Item = (kstring::KString, GlobEngineConfig)> {
|
||||||
let mut patterns = self.patterns.clone();
|
let mut patterns = self.patterns.clone();
|
||||||
|
patterns
|
||||||
|
.entry("lock".into())
|
||||||
|
.or_insert_with(|| GlobEngineConfig {
|
||||||
|
extend_glob: Vec::new(),
|
||||||
|
engine: EngineConfig {
|
||||||
|
check_file: Some(false),
|
||||||
|
..Default::default()
|
||||||
|
},
|
||||||
|
});
|
||||||
patterns.entry("cert".into()).or_insert_with(|| {
|
patterns.entry("cert".into()).or_insert_with(|| {
|
||||||
GlobEngineConfig {
|
GlobEngineConfig {
|
||||||
extend_glob: vec![
|
extend_glob: vec![
|
||||||
|
|
Loading…
Reference in a new issue