File tree 1 file changed +25
-2
lines changed
1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -1421,6 +1421,13 @@ in
1421
1421
type = types . submodule {
1422
1422
imports = [ hookModule ] ;
1423
1423
options . settings = {
1424
+ config =
1425
+ mkOption {
1426
+ type = types . nullOr types . str ;
1427
+ description = "Path to statix.toml or its parent directory." ;
1428
+ default = null ;
1429
+ } ;
1430
+
1424
1431
format =
1425
1432
mkOption {
1426
1433
type = types . enum [ "stderr" "errfmt" "json" ] ;
@@ -1435,6 +1442,14 @@ in
1435
1442
default = [ ] ;
1436
1443
example = [ "flake.nix" "_*" ] ;
1437
1444
} ;
1445
+
1446
+ unrestricted =
1447
+ mkOption {
1448
+ type = types . bool ;
1449
+ description = "Don't respect .gitignore files." ;
1450
+ default = false ;
1451
+ example = true ;
1452
+ } ;
1438
1453
} ;
1439
1454
} ;
1440
1455
} ;
@@ -3374,8 +3389,16 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
3374
3389
name = "statix" ;
3375
3390
description = "Lints and suggestions for the Nix programming language." ;
3376
3391
package = tools . statix ;
3377
- entry = with hooks . statix . settings ;
3378
- "${ hooks . statix . package } /bin/statix check -o ${ format } ${ if ( ignore != [ ] ) then "-i ${ lib . escapeShellArgs ( lib . unique ignore ) } " else "" } " ;
3392
+ entry =
3393
+ let
3394
+ inherit ( hooks . statix ) package settings ;
3395
+ options = lib . cli . toGNUCommandLineShell
3396
+ {
3397
+ mkList = name : value : [ name ] ++ lib . unique value ;
3398
+ }
3399
+ settings ;
3400
+ in
3401
+ "${ package } /bin/statix check ${ options } " ;
3379
3402
files = "\\ .nix$" ;
3380
3403
pass_filenames = false ;
3381
3404
} ;
You can’t perform that action at this time.
0 commit comments