forked from crate-ci/typos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(config): Force-skip config files
This doesn't use `extend-exclude` which means that `typos typos.toml` will stil be skipped This doesn't just skip the currently loaded config but any file name that looks like a config, which might be a big aggressive but allows us to do layered config in the future.... We've been saying that for a while. Fixes crate-ci#711
- Loading branch information
Showing
6 changed files
with
9 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,3 @@ check-filename = false | |
|
||
[default.extend-words] | ||
foo = "bar" | ||
|
||
[files] | ||
extend-exclude = [ | ||
"_typos.toml" | ||
] |
3 changes: 0 additions & 3 deletions
3
crates/typos-cli/tests/cmd/extend-ignore-identifiers-re.in/_typos.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[files] | ||
extend-exclude = ["_typos.toml"] | ||
|
||
[default.extend-identifiers] | ||
hello = "goodbye" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[files] | ||
extend-exclude = ["_typos.toml"] | ||
|
||
[default] | ||
extend-ignore-re = ["`.*`"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,3 @@ check-file = false | |
|
||
[default.extend-words] | ||
foo = "bar" | ||
|
||
[files] | ||
extend-exclude = [ | ||
"_typos.toml" | ||
] |