Skip to content

Commit

Permalink
[fix] Disable clang-diagnostic-error checker
Browse files Browse the repository at this point in the history
It is a fix PR to disable clang-diagnostic-error checker in cmd. Now, the users cannot set this checker as enabled with -e.
  • Loading branch information
cservakt committed Aug 23, 2024
1 parent b843db0 commit 63ed80e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def set_checker_enabled(self, checker_name, enabled=True):
"""
Enable checker, keep description if already set.
"""
if checker_name.startswith('W') or \
checker_name.startswith('clang-diagnostic'):
if checker_name.startswith(('W', 'clang-diagnostic')) and \
checker_name != 'clang-diagnostic-error':
self.add_checker(checker_name)

super().set_checker_enabled(checker_name, enabled)

0 comments on commit 63ed80e

Please sign in to comment.