File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 232232 description = "Run clippy with --all-features" ;
233233 default = false ;
234234 } ;
235+ extraArgs = mkOption {
236+ type = types . str ;
237+ description = "Additional arguments to pass to clippy" ;
238+ default = "" ;
239+ } ;
235240 } ;
236241
237242 config . extraPackages = [
20732078 description = "Lint Rust code." ;
20742079 package = wrapper ;
20752080 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" } " ;
20772082 files = "\\ .rs$" ;
20782083 pass_filenames = false ;
20792084 } ;
You can’t perform that action at this time.
0 commit comments