Skip to content

Commit 5e2274e

Browse files
authored
Merge pull request #4639 from bruntib/ambigous
Typo fix
2 parents c896c3b + dec7852 commit 5e2274e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

analyzer/codechecker_analyzer/analyzers/config_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def initialize_checkers(self,
245245
for label, option
246246
in possible_options.items())
247247

248-
LOG.error("The %s is ambigous. Please select one of these"
248+
LOG.error("The %s is ambiguous. Please select one of these"
249249
" options to clarify the checker list: %s.",
250250
identifier, error_options)
251251
sys.exit(1)

analyzer/tests/unit/test_checker_handling.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -538,18 +538,18 @@ def f(checks, checkers):
538538

539539
cfg_handler = ClangTidyConfigHandler()
540540

541-
# Check the ambigous option handling.
541+
# Check the ambiguous option handling.
542542
with self.assertLogs(level='ERROR') as log:
543543
with self.assertRaises(SystemExit) as e:
544544
cfg_handler.initialize_checkers(checkers,
545545
[("clang-diagnostic-format",
546546
True)])
547547

548-
err_ambigous_checker = re.compile(r"ERROR:.*?is ambigous\. Please "
549-
r"select one of these options to "
550-
r"clarify the checker list:.*$")
548+
err_ambiguous_checker = re.compile(
549+
r"ERROR:.*?is ambiguous\. Please select one of these options to "
550+
r"clarify the checker list:.*$")
551551

552-
match = err_ambigous_checker.search(log.output[0])
552+
match = err_ambiguous_checker.search(log.output[0])
553553

554554
self.assertIsNotNone(match)
555555
self.assertEqual(e.exception.code, 1)

0 commit comments

Comments
 (0)