Refactor PrivacyModule (acts as a follow-up for #751).
Make config parsing stricter.
Approach
Refactors the PrivacyModule to:
allow specifying sensitive text patterns in the config instead of hardcoding them
support regex patterns for sensitive file names
Additionally the test class PrivacyModuleTest is refactored to cover more cases and to reuse test code for email address and sensitive text detection.
The config parsing has also been made stricter, requiring that all required entries are present and that no unknown entries exist.
:warning: Please verify that the local config used by Arisa does not have unknown / unused entries.
Purpose
Refactor PrivacyModule (acts as a follow-up for #751). Make config parsing stricter.
Approach
Refactors the PrivacyModule to:
Additionally the test class PrivacyModuleTest is refactored to cover more cases and to reuse test code for email address and sensitive text detection.
The config parsing has also been made stricter, requiring that all required entries are present and that no unknown entries exist. :warning: Please verify that the local config used by Arisa does not have unknown / unused entries.
Checklist
docs
folder