Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider the wildcard in talismarc file #196

Merged
merged 6 commits into from
Jun 8, 2020
Merged

Conversation

dineshba
Copy link
Collaborator

@dineshba dineshba commented Jun 6, 2020

Fixing #191

Previously detectors needed only the current git additions (for commit hook: staged files, for push hook: unpushed commit's files).

In order to support regex patterns in talismanrc, we have to consider all the files that are tracked in git. So I am injecting all the tracked files to checksumCompare and finding the checksum for all the files which matches the pattern.

In order to write proper unit test for checksum_compare.go, we have to inject utility to that file. So that we can inject mock utility and write better tests. I will start adding that if the current code is okay.

@svishwanath-tw svishwanath-tw merged commit b3c1f06 into master Jun 8, 2020
@dineshba dineshba deleted the wildcard-talismanrc branch June 8, 2020 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants