Skip to content

Commit

Permalink
Soften the assert to a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Szelethus committed Oct 19, 2023
1 parent 31c21ed commit d6a9728
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions analyzer/codechecker_analyzer/cmd/analyzers.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,11 @@ def uglify(text):
analyzer_class = analyzer_types.supported_analyzers[analyzer_name]

configs = analyzer_class.get_analyzer_config()
assert configs and 'executable' in [key for key, _ in configs], \
"Every analyzer must have at least the 'executable' config!"
if not configs:
LOG.warning(f"No analyzer configurations found for '{analyzer}'. "
"If you suspsect this shouldn't be the case, try to "
"update your analyzer or check whether CodeChecker "
"found the intended binary.")

rows = [(':'.join((analyzer_name, c[0])), c[1]) if 'details' in args
else (':'.join((analyzer_name, c[0])),) for c in configs]
Expand Down

0 comments on commit d6a9728

Please sign in to comment.