Skip to content

Commit

Permalink
Merge pull request Yelp#419 from pablosantiagolopez/improve-ignored-f…
Browse files Browse the repository at this point in the history
…ile-extensions

New ignored files extensions
  • Loading branch information
domanchi authored Mar 6, 2021
2 parents deb1705 + ca16814 commit cedd5aa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion detect_secrets/filters/heuristic.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,35 @@ def is_non_text_file(filename: str) -> bool:
IGNORED_FILE_EXTENSIONS = set(
(
'.7z',
'.bin',
'.bmp',
'.bz2',
'.class',
'.css',
'.dmg',
'.doc',
'.eot',
'.exe',
'.gif',
'.gz',
'.ico',
'.iml',
'.ipr',
'.iws',
'.jar',
'.jpg',
'.jpeg',
'.lock',
'.map',
'.mo',
'.pdf',
'.png',
'.prefs',
'.psd',
'.rar',
'.realm',
'.s7z',
'.sum',
'.svg',
'.tar',
'.tif',
Expand All @@ -114,7 +127,6 @@ def is_non_text_file(filename: str) -> bool:
),
)


def is_templated_secret(secret: str) -> bool:
"""
Filters secrets that are shaped like: {secret}, <secret>, or ${secret}.
Expand Down

0 comments on commit cedd5aa

Please sign in to comment.