Skip to content

Commit

Permalink
[cmd] Support label listing in CodeChecker checkers
Browse files Browse the repository at this point in the history
  • Loading branch information
bruntib committed Aug 31, 2021
1 parent 8c680c6 commit 747c336
Show file tree
Hide file tree
Showing 5 changed files with 539 additions and 241 deletions.
16 changes: 0 additions & 16 deletions analyzer/codechecker_analyzer/analyzers/config_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@

from abc import ABCMeta
from enum import Enum
from operator import itemgetter
import collections
import platform
import subprocess
import sys

from codechecker_common.logger import get_logger

Expand Down Expand Up @@ -157,20 +155,6 @@ def initialize_checkers(self,

checker_labels = analyzer_context.checker_labels

if 'profile:list' in map(itemgetter(0), cmdline_enable):
LOG.error("'list' is a reserved profile keyword. ")
LOG.error("Please choose another profile name in "
"%s/config/descriptions.json and rebuild.",
analyzer_context.data_files_dir_path)
sys.exit(1)

if 'guideline:list' in map(itemgetter(0), cmdline_enable):
LOG.error("'list' is a reserved guideline keyword. ")
LOG.error("Please choose another guideline name in "
"%s/config/descriptions.json and rebuild.",
analyzer_context.data_files_dir_path)
sys.exit(1)

# Add all checkers marked as default. This means the analyzer should
# manage whether it is enabled or disabled.
for checker_name, description in checkers:
Expand Down
Loading

0 comments on commit 747c336

Please sign in to comment.