Skip to content

Commit a16a9c0

Browse files
committed
fix(lint): the missing-name-field fix line cites ADR-0079 again
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D6F9axfoPzR7t8G1J7Ytzz
1 parent e9e0ec7 commit a16a9c0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎packages/lint/src/data-model-rules.fix-lines.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ describe('[#22161] data-model-rules.ts — one remedy line per fix', () => {
150150
it('object/missing-name-field: the pointer, and where the titleFormat reasoning lives', () => {
151151
const fix = fixOf(record(lintDataModel([{ name: LONG_OBJECT, fields: { amount: { type: 'number' } } }])), MISSING_NAME_FIELD);
152152
expect(fix).toBe(
153-
"Set `nameField`; a composite title to import, sort or search by is a text field with an `expression` " +
154-
"(a text formula is display-only); `titleFormat` never counts (`os explain title-format-retired`).",
153+
"Set `nameField` (ADR-0079), never `titleFormat` (`os explain title-format-retired`); a composite title " +
154+
"to import/sort/search by is a text field with an `expression` (a text formula is display-only).",
155155
);
156156
// The command the line names answers, and says why `titleFormat` does not count.
157157
expect(explainRule('title-format-retired')!.paragraphs.join('\n')).toContain('render-only');

‎packages/lint/src/data-model-rules.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,8 +738,8 @@ export function lintDataModel(objects: any[]): LintIssue[] {
738738
// [#22161] One remedy line; why `titleFormat` does not count is
739739
// `title-format-retired`'s `os explain` text.
740740
fix:
741-
"Set `nameField`; a composite title to import, sort or search by is a text field with an `expression` " +
742-
"(a text formula is display-only); `titleFormat` never counts (`os explain title-format-retired`).",
741+
"Set `nameField` (ADR-0079), never `titleFormat` (`os explain title-format-retired`); a composite title " +
742+
"to import/sort/search by is a text field with an `expression` (a text formula is display-only).",
743743
});
744744
}
745745

0 commit comments

Comments
 (0)