Bug 60585
| Summary: | При вызове любой из утилит пакета для анализа отчетов cppcheck выполнение завершается с ошибкой: Error: name 'messages_filter' is not defined | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | obidinog <obidinog> |
| Component: | anti-cppcheck | Assignee: | alexey |
| Status: | RESOLVED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P5 | CC: | alexey, antohami |
| Version: | unstable | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
anti-cppcheck-0.5.2-alt1 -> sisyphus: Thu Sep 17 2026 Alexey Appolonov <alexey@altlinux> 0.5.2-alt1 - Bug fixes (closes: 60585). |

Description
obidinog@basealt.ru 2026-09-17 12:15:13 MSKПлатформа: ALt Server p11 x86_64 Пакет: anti-cppcheck 0.5.1-alt2 Шаги: 1) Установить пакет anti-cppcheck 2) Создать тестовый отчет $ cat << 'EOF' > report.txt testpkg 1.0 alt1 [src/test.c]: (error) Uninitialized variable: x testpkg 1.0 alt1 [src/test.c]: (warning) Possible null pointer dereference: ptr EOF 3) Запустить анализ отчета $ anti-cppcheck-analyze --type nvrpm --analyzer cppcheck --path report.txt Ожидаемый результат: Types of error/warning messages used in the report: 1) [50.000%] uninitialized [variable|struct member] 2) [50.000%] [possible|actual] null pointer dereference Результат: Error: name 'messages_filter' is not defined Дополнительно: В p11 НЕ воспроизводится #### Анализ причины: Регрессия была внесена в коммите 0478ec229f6c9bafb03a10b8bf1136b2b22d28ef («Sync with lib updates»). При рефакторинге блока импортов из файла anticppcheck/machinery.py была случайно удалена строка: import anticppcheck.filter as messages_filter При этом в методе GeneralizeMessages (строка 252) обращение к messages_filter сохранилось: