mojira / arisa-kt

:robot::sparkles: Run checks and perform automated tasks in Mojira
https://bugs.mojang.com
GNU General Public License v3.0
10 stars 6 forks source link

Refactor PrivacyModule #752

Closed Marcono1234 closed 2 years ago

Marcono1234 commented 2 years ago

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