Skip to content

Commit 2a3dfc5

Browse files
committed
Fix error code precedence to ensure disable overrides enable
The logic for resolving conflicts between 'enable_error_code' and 'disable_error_code' was inverted in two locations: Options.process_error_codes and Options.apply_changes. In the global configuration path, enabling incorrectly won precedence. In the per-module override path, the logic allowed inherited enabling to undo an explicit disabling. This change swaps the set subtraction in process_error_codes and removes the redundant discard operation in apply_changes to enforce the rule: Disable always wins. Fixes #20348.
1 parent 4eb6b50 commit 2a3dfc5

File tree

2 files changed

+701
-633
lines changed

2 files changed

+701
-633
lines changed

0 commit comments

Comments
 (0)