Skip to content

Commit e94ce51

Browse files
committed
feat(typos): set --force-exclude by default
1 parent 07327f0 commit e94ce51

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

modules/hooks.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,14 @@ in
18371837
example = "*.nix";
18381838
};
18391839

1840+
force-exclude =
1841+
mkOption {
1842+
type = types.bool;
1843+
description = "Respect excluded files even for paths passed explicitly.";
1844+
default = true;
1845+
example = false;
1846+
};
1847+
18401848
format =
18411849
mkOption {
18421850
type = types.enum [ "silent" "brief" "long" "json" ];
@@ -4000,7 +4008,8 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
40004008
[ (config != { }) "--config ${configFile}" ]
40014009
[ (configPath != "" && config == { }) "--config ${configPath}" ]
40024010
[ diff "--diff" ]
4003-
[ (exclude != "") "--exclude ${exclude} --force-exclude" ]
4011+
[ (exclude != "") "--exclude ${exclude}" ]
4012+
[ force-exclude " --force-exclude" ]
40044013
[ (format != "long") "--format ${format}" ]
40054014
[ hidden "--hidden" ]
40064015
[ (locale != "en") "--locale ${locale}" ]

0 commit comments

Comments
 (0)