arm-tabular-parser/api/arm_statements/rules/statement_warnings.yaml
Andrey Epifancev f5d071f602 chore(arm_statements): копия пакета arm-statements@3390f92 (#54)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BJKMLHdxMwSUeYcdkwqX4W
2026-10-18 21:30:20 +04:00

38 lines
2.2 KiB
YAML

# Предупреждения нормализации: код -> уровень и область (спека «Шаг 8 — предупреждения»).
# scope: document — предупреждение документа; file — предупреждение файла (metrics.warnings).
# Множество кодов равно перечислению WarningCode (arm_statements/issues.py); код добавляется в обоих местах.
warnings:
JSON_FAILED: {severity: error, scope: file}
TABLE_PARSE_ERROR: {severity: error, scope: file}
TABLE_LOST: {severity: error, scope: file}
TABLE_SKIPPED: {severity: info, scope: file}
CODE_COLUMN_NOT_FOUND: {severity: error, scope: document}
SEGMENT_WITHOUT_CODES: {severity: error, scope: document}
SHEET_NOT_JOINED: {severity: error, scope: document}
CONTINUATION_TYPE_CONFLICT: {severity: error, scope: document}
SEGMENT_COLUMNS_MISMATCH: {severity: error, scope: document}
COLUMN_WITHOUT_DATE: {severity: error, scope: document}
COLUMN_DATE_UNCERTAIN: {severity: error, scope: document}
HEADER_ROW_NOT_FOUND: {severity: error, scope: document}
TYPE_CONFLICT: {severity: error, scope: document}
NO_ORGANIZATION_NO_INN: {severity: error, scope: document}
PERIOD_UNKNOWN: {severity: error, scope: document}
REPORT_DATE_UNCERTAIN: {severity: error, scope: document}
XLSB_SCALE_SUSPECT: {severity: error, scope: document}
INN_NOT_FOUND: {severity: info, scope: document}
INN_UNCERTAIN: {severity: info, scope: document}
ORGANIZATION_NOT_FOUND: {severity: info, scope: document}
ORGANIZATION_UNCERTAIN: {severity: info, scope: document}
REPORT_DATE_UNPARSED: {severity: info, scope: document}
UNITS_NOT_FOUND: {severity: info, scope: document}
FILE_TYPE_MISMATCH: {severity: info, scope: file}
XLS_NO_CODEPAGE: {severity: info, scope: file}
COLUMN_SKIPPED: {severity: info, scope: document}
FRACTIONAL_IN_THOUSANDS: {severity: info, scope: document}
XLSB_NO_FORMATS: {severity: info, scope: document}
NUMBER_FORMAT_UNPARSED: {severity: info, scope: document}
VALUE_OUT_OF_RANGE: {severity: info, scope: document}
SHEET_OTHER: {severity: info, scope: file}
ROW_SPLIT: {severity: info, scope: document}
NUMBERS_OUTSIDE_TABLE: {severity: info, scope: document}