Skip to content

Commit

Permalink
Make pylint and pycodestyle happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Szelethus committed Oct 26, 2023
1 parent a31ff16 commit 34a1601
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions analyzer/codechecker_analyzer/analyzer_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# pylint: disable=no-name-in-module
from distutils.spawn import find_executable
from argparse import ArgumentTypeError

import os
import platform
Expand Down Expand Up @@ -91,15 +92,14 @@ def __init__(self):
self.__populate_analyzers()
self.__populate_replacer()


def __parse_CC_ANALYZER_BIN(self):
env_var_bins = {}
if 'CC_ANALYZER_BIN' in self.__analyzer_env:
had_error = False
for value in self.__analyzer_env['CC_ANALYZER_BIN'].split(';'):
try:
analyzer_name, path = analyzer_binary(value)
except argparse.ArgumentTypeError as e:
except ArgumentTypeError as e:
LOG.error(e)
had_error = True
continue
Expand Down
2 changes: 1 addition & 1 deletion analyzer/codechecker_analyzer/cmd/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from codechecker_analyzer.analyzers import analyzer_types, clangsa
from codechecker_analyzer.arg import \
OrderedCheckersAction, OrderedConfigAction, existing_abspath, \
analyzer_config, checker_config, analyzer_binary
analyzer_config, checker_config
from codechecker_analyzer.buildlog import log_parser

from codechecker_common import arg, logger, cmd_config
Expand Down

0 comments on commit 34a1601

Please sign in to comment.