Feature summary:
Opposite of T231705: Limit validation to certain messages
We want to be able to exclude running certain validation on certain messages
Use case(s):
The newly added NotEmptyValidator should not apply on optional messages.
Implementation details:
This could be implemented in a manner similar to the existing keymatch functionality.
Example:
keymatch: - 'untranslated' # Matches key untranslated directly - type: 'wildcard' pattern: '*translated*' # Matches any key that has the translated in it
Other notes,
- Exclusion list will be specific for validator.
- Check doesKeyMatch method in ValidationRunner.php that can be reused for this.
- For now, exclusion list will not be configurable on language basis. So it is not possible to configure validators to not run for a specific key for a specific language.
- Migrate validation-exclusion-list.php. Create a task for this.