From 01b6038f4664fb8cffb892da6788e0a1970579d1 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Wed, 10 Sep 2025 16:00:21 -0700 Subject: [PATCH] updated rule for AWS Secret Access key --- CHANGELOG.md | 1 + src/cli/commands/inputs.rs | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 289caf3..5355560 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. - Enabled MongoDB URI validation - AWS + GCP validators now respect HTTPS_PROXY and share a consistent user agent across AWS, GCP, and HTTP validation - Increase max-file-size default to 256 mb (up from 64 mb) +- Improved AWS rule ## [1.48.0] - Improved error message when self-update cannot find the current binary diff --git a/src/cli/commands/inputs.rs b/src/cli/commands/inputs.rs index 3e9e107..60bfba8 100644 --- a/src/cli/commands/inputs.rs +++ b/src/cli/commands/inputs.rs @@ -170,9 +170,11 @@ pub struct InputSpecifierArgs { pub struct ContentFilteringArgs { /// Ignore files larger than the given size in MB #[arg( - long("max-file-size"), - long("max-filesize"), - default_value_t = 256.0 + long = "max-file-size", + visible_alias = "max-filesize", // also show in --help + // alias = "max-filesize", // use this instead if you DON’T want it shown in --help + default_value_t = 256.0, + value_name = "MB" )] pub max_file_size_mb: f64, @@ -182,15 +184,15 @@ pub struct ContentFilteringArgs { pub exclude: Vec, /// If true, do NOT extract archive files - #[arg(long("no-extract-archives"), default_value_t = false)] + #[arg(long = "no-extract-archives", default_value_t = false)] pub no_extract_archives: bool, /// Maximum allowed depth for extracting nested archives - #[arg(long("extraction-depth"), default_value_t = 2, value_parser = clap::value_parser!(u8).range(1..=25))] + #[arg(long = "extraction-depth", default_value_t = 2, value_parser = clap::value_parser!(u8).range(1..=25))] pub extraction_depth: u8, /// If true, do NOT scan binary files - #[arg(long("no-binary"), default_value_t = false)] + #[arg(long = "no-binary", default_value_t = false)] pub no_binary: bool, }