Skip to content

Commit

Permalink
chore: clean stale comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadBazaz committed Oct 3, 2024
1 parent 65c9369 commit 8adaa65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/biome_js_analyze/src/lint/nursery/no_secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ impl Rule for NoSecrets {
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub struct NoSecretsOptions {
/// Set entropy threshold (default is 41).
entropy_threshold: Option<u16>, // @TODO: Doesn't work currently.
entropy_threshold: Option<u16>,
}

fn is_path(text: &str) -> bool {
Expand Down Expand Up @@ -349,7 +349,7 @@ fn detect_secret(data: &str, entropy_threshold: &u16) -> Option<&'static str> {
println!("Token: {}, length: {}", token, token.len());

if token.len() >= MIN_PATTERN_LEN {
// Skip known safe patterns

if is_known_safe_pattern(token) {
continue;
}
Expand Down

0 comments on commit 8adaa65

Please sign in to comment.