@@ -339,12 +339,12 @@ Naming conventions must have:
339339- A unique human-readable name.
340340- A human-readable message to be included in violation errors.
341341- A regular expression that will match text within the field name that violates the convention.
342- - A defined "operation". Allowed operations are `Inform`, `Drop`, `DropField`, and `Replace `.
342+ - A defined "operation". Allowed operations are `Inform`, `Drop`, `DropField`, and `Replacement `.
343343
344344The `Inform` operation will simply inform when a field name violates the naming convention.
345345The `Drop` operation will suggest a fix that drops violating text from the field name.
346346The `DropField` operation will suggest a fix that removes the field in it's entirety.
347- The `Replace ` operation will suggest a fix that replaces the violating text in the field name with a defined replacement value.
347+ The `Replacement ` operation will suggest a fix that replaces the violating text in the field name with a defined replacement value.
348348
349349High-level configuration overview :
350350` ` ` yaml
@@ -353,8 +353,8 @@ linterConfig:
353353 conventions:
354354 - name: {human readable string} # must be unique
355355 violationMatcher: {regular expression}
356- operation: Inform | Drop | DropField | Replace
357- replace : { replacement string } # required when operation is 'Replace ', forbidden otherwise
356+ operation: Inform | Drop | DropField | Replacement
357+ replacement : { replacement string } # required when operation is 'Replacement ', forbidden otherwise
358358 message: {human readable string}
359359` ` `
360360
@@ -400,8 +400,8 @@ linterConfig:
400400 conventions:
401401 - name: BritishEnglishColour
402402 violationMatcher: (?i)color
403- operation: Replace
404- replace : colour
403+ operation: Replacement
404+ replacement : colour
405405 message: prefer 'colour' over 'color' when referring to colours in field names
406406` ` `
407407
0 commit comments