Skip to content

Commit

Permalink
chore: change hardcoded string length to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadBazaz committed Sep 8, 2024
1 parent 2cfb7bd commit c2c9449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/biome_js_analyze/src/lint/nursery/no_secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Rule for NoSecrets {

// TODO: Either take this as an option, or calculate it statically from the SENSITIVE_PATTERNS
// Currently it is just an arbitrary value derived from the lengths in invalid.js
if text.len() < 24 {
if text.len() < 20 {
return None;
}

Expand Down

0 comments on commit c2c9449

Please sign in to comment.