Using a pre-commit hook, Talisman validates the outgoing changeset for things that look suspicious — such as tokens, passwords, and private keys.
1.87k
stars
241
forks
source link
Using "allowed_patterns" does not work with file paths that contain wildcards #414
Open
second-frank opened 1 year ago
Describe the bug
Using
allowed_patterns
in thefileignoreconfig
section does not work with file names/paths that contain wildcards.To Reproduce
With
.talismanrc
config:Steps to reproduce the behavior:
mkdir -p sub-folder
echo '@keyframes{opacity:0;transform:scale(1)}' > sub-folder/test.css
echo '{"dataKey":"foobar"}' > sub-folder/test.json
talisman --pattern '**/*'
Only the css file is ignored, while the json file is still reported.
Expected behavior
The
filename
pattern forallowed_pattern
definitions should be interpreted in the same way as forignore_detectors
.Desktop (please complete the following information):
Frank Seidel frank.seidel@mercedes-benz.com, Mercedes-Benz Tech Innovation GmbH
Provider Information