feat: warn on debug = true
All checks were successful
build / build (push) Successful in 1m52s
build / trigger-build-image (push) Successful in 8s

This commit is contained in:
张泊明518370910136 2025-10-04 18:10:16 -07:00
parent 930830b6f6
commit 371a17955a
GPG Key ID: D47306D7062CDA9D

View File

@ -59,7 +59,7 @@ def get_parser_handler_map(
task.Parser.CPPCHECK: (fix_keyword, task_stage.cppcheck),
task.Parser.CPPLINT: (fix_keyword, task_stage.cpplint),
task.Parser.RESULT_DETAIL: (fix_result_detail, task_stage.result_detail),
task.Parser.DEBUG: (fix_empty, None),
task.Parser.DEBUG: (fix_debug, None),
task.Parser.DUMMY: (fix_dummy, task_stage.dummy),
task.Parser.RESULT_STATUS: (fix_result_status, task_stage.result_status),
task.Parser.FILE: (fix_file, task_stage.file),
@ -175,8 +175,10 @@ def fix_dummy(
)
def fix_empty(parser_config: StrictBaseModel, parser: result.Parser) -> None:
pass
def fix_debug(parser_config: StrictBaseModel, parser: result.Parser) -> None:
logger.warning(
"debug parser enabled, should be disabled as soon as possible after issue is fixed"
)
def fix_result_status(