Module: Uniword::Docx::Reconciler::FixCodes

Defined in:
lib/uniword/docx/reconciler/fix_codes.rb

Overview

Single source of truth for record_fix rule codes.

Every record_fix call site references a constant from this module instead of a bare string literal. Adding a new fix category means adding one constant here with the next free code.

One code per concern: each constant has a unique, self-describing wire value. Codes "R1".."R16" are frozen — external validation rules (lib/uniword/validation/rules) and audit-log consumers pattern-match on them, so the original concerns keep their historic codes. Codes "R17" and up were introduced when the overloaded "R10" (and the remaining shared codes "R4"/"R11"/"R12"/"R13") were split into per-concern values.

Constant Summary collapse

MC_IGNORABLE =

Settings / package structure

"R1"
DOC_ID_GENERATED =
"R2"
THEME_CREATED =

Support parts

"R3"
NUMBERING_REFERENCED =
"R4"
RELATIONSHIPS_ASSEMBLED =

Package assembly

"R6"
CONTENT_TYPES_ASSEMBLED =
"R7"
APP_PROPERTIES_ENSURED =
"R8"
NOTE_PAIR_CREATED =

Notes — pair creation and definition integrity

"R9"
NOTE_DEFINITION_CREATED =
"R10"
NOTE_INVALID_TYPE_STRIPPED =
"R15"
NOTE_DUPLICATE_ID_REMOVED =
"R16"
SECTION_PROPERTIES_DEFAULTED =

Body

"R11"
PARAGRAPH_BACKFILL =
"R12"
FONT_TABLE_CREATED =

Parts

"R13"
CORE_PROPERTIES_REBUILT =
"R14"
DANGLING_NUMBERING_REMOVED =

Referential integrity — dangling-reference repairs (split from the overloaded R10/R4/R11/R12 codes; one code per concern)

"R17"
DANGLING_NOTE_REFERENCE_REMOVED =
"R18"
DANGLING_STYLE_REFERENCE_REMOVED =
"R19"
DANGLING_BASED_ON_REMOVED =
"R20"
"R21"
"R22"
DANGLING_DRAWING_REMOVED =
"R23"
DANGLING_RELATIONSHIP_TARGET_REMOVED =
"R32"
"R31"
STYLE_DEFAULTS_ADDED =

Styles

"R24"
SEMI_HIDDEN_ADDED =
"R25"
TABLE_STRUCTURE_RECONCILED =

Tables

"R26"
TABLE_CELL_PR_REORDERED =
"R27"
TABLE_CELL_DEFAULTS =
"R28"
TABLE_ROW_GRID_AFTER =
"R29"
EMPTY_RUNS_STRIPPED =

Run cleanup

"R30"
TABLE_GRID_COL_WIDTHS_DEFAULTED =

Tables — gridCol widths defaulted to equal shares of the section content width (Word's fallback behavior)

"R33"