File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 232
232
description = "Run clippy with --all-features" ;
233
233
default = false ;
234
234
} ;
235
+ extraArgs = mkOption {
236
+ type = types . str ;
237
+ description = "Additional arguments to pass to clippy" ;
238
+ default = "" ;
239
+ } ;
235
240
} ;
236
241
237
242
config . extraPackages = [
2073
2078
description = "Lint Rust code." ;
2074
2079
package = wrapper ;
2075
2080
packageOverrides = { cargo = tools . cargo ; clippy = tools . clippy ; } ;
2076
- entry = "${ hooks . clippy . package } /bin/cargo-clippy clippy ${ cargoManifestPathArg } ${ lib . optionalString hooks . clippy . settings . offline "--offline" } ${ lib . optionalString hooks . clippy . settings . allFeatures "--all-features" } -- ${ lib . optionalString hooks . clippy . settings . denyWarnings "-D warnings" } " ;
2081
+ entry = "${ hooks . clippy . package } /bin/cargo-clippy clippy ${ cargoManifestPathArg } ${ lib . optionalString hooks . clippy . settings . offline "--offline" } ${ lib . optionalString hooks . clippy . settings . allFeatures "--all-features" } ${ hooks . clippy . settings . extraArgs } -- ${ lib . optionalString hooks . clippy . settings . denyWarnings "-D warnings" } " ;
2077
2082
files = "\\ .rs$" ;
2078
2083
pass_filenames = false ;
2079
2084
} ;
You can’t perform that action at this time.
0 commit comments