[pre-commit-hook] Automatically update the baseline #96
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When no secrets are present, that is.
(pre_commit_hook.py)
Do not raise exception when baseline out-of-date
Replace baseline
version
/plugins
with the current ones.Replaced
raise_exception_if_baseline_version_is_outdated
with if statementRenamed
raise_exception_if_baseline_file_is_not_up_to_date
toraise_exception_if_baseline_file_is_unstaged
Improve comment
(core/secrets_collection.py)
Make
version
not required for baseline's any more(tests/pre_commit_hook_test.py):
Replaced
test_fails_if_baseline_version_is_outdated
withtest_that_baseline_gets_updated
Clean up:
(core/usage.py)
Static list into a tuple
(core/baseline.py)
initialize()
docstring accurateRenamed
update_baseline_with_removed_secrets
totrim_baseline_of_removed_secrets
Renamed
git_files
tofiles_to_scan
Fix typo (propogate -> propagate)