Closed TomSellers closed 2 years ago
What do you think about changes that would be compatible with the recog_standardize
use in tools/dev/hooks/pre-commit
? The new reset flag won't provide a focused alert for the user.
@mkienow-r7 - I've reworked this PR so that it should work just fine with the commit hook. Now detection of values that need to be removed is handled on every run and a console line which includes the text REMOVED VALUE
is emitted. I've reworked this description.
@mkienow-r7
I went ahead and merged upstream/main
into this PR to ensure that there were no issues.
Glad to see master
-> main
, thanks for doing that.
Description
This PR fixes #384 and makes a few other changes.
Changes
Adds error handling so that if a particular identifiers file is missing the script will return an empty string so that the contents can be populated from the existing fingerprint database corpus.
Adds logic to detect and notify the user when values have been removed from an indicators list. This is useful when performing cleanups or widespread changes of values. No flag is required to enable this behavior, it works just like the previous detection of new values.
Unifies
*.device
identifiers inindicators/device.txt
and removes the existingos.device
andhw.device
files. This has already helped identify a few issues which I have addressed.Example output after deleting 3 valid entries from the
device.txt
and adding one bonus entry ofSample Device Type Thingy
.How Has This Been Tested?
ruby bin/recog_standardize xml/*.xml
and reviewing the changesTypes of changes
Checklist: