Skip to content

Commit

Permalink
fix(modules/hooks): 'settings.typos.exclude' implies '--force-exclude'
Browse files Browse the repository at this point in the history
The 'settings.typos.exclude' should imply the '--force-exclude' option
in order to "Respect excluded files even for paths passed explicitly".

Follows:

- cachix#332
- crate-ci/typos@8314a15
  • Loading branch information
trueNAHO committed Nov 20, 2023
1 parent e558068 commit 1a76afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ in
[ (color != "") "--color ${color}" ]
[ (configPath != "") "--config ${configPath}" ]
[ (config != "" && configPath == "") "--config ${configFile}" ]
[ (exclude != "") "--exclude ${exclude}" ]
[ (exclude != "") "--exclude ${exclude} --force-exclude" ]
[ (format != "") "--format ${format}" ]
[ (locale != "") "--locale ${locale}" ]
[ (write && !diff) "--write-changes" ]
Expand Down

0 comments on commit 1a76afa

Please sign in to comment.