Skip to content

Commit 2477268

Browse files
authored
Temporarily disable RAI linter rules (GHD035, GHD064) (#60699)
1 parent 2ea869b commit 2477268

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

data/reusables/contributing/content-linter-rules.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
| GHD032 | image-alt-text-end-punctuation | Alternate text for images should end with punctuation | error | accessibility, images |
4545
| GHD033 | incorrect-alt-text-length | Images alternate text should be between 40-150 characters | error | accessibility, images |
4646
| GHD034 | frontmatter-curly-quotes | Frontmatter title and intro should not contain curly quotes | error | frontmatter, format |
47-
| GHD035 | rai-reusable-usage | RAI articles and reusables can only reference reusable content in the data/reusables/rai directory | error | feature, rai |
4847
| GHD036 | image-no-gif | Image must not be a gif, styleguide reference: contributing/style-guide-and-content-model/style-guide.md#images | error | images |
4948
| GHD038 | expired-content | Expired content must be remediated. | warning | expired |
5049
| GHD039 | expiring-soon | Content that expires soon should be proactively addressed. | warning | expired |
@@ -65,7 +64,6 @@
6564
| GHD061 | frontmatter-hero-image | Hero image paths must be absolute, extensionless, and point to valid images in /assets/images/banner-images/ | error | frontmatter, images |
6665
| GHD062 | frontmatter-intro-links | introLinks keys must be valid keys defined in data/ui.yml under product_landing | error | frontmatter, single-source |
6766
| GHD063 | frontmatter-children | Children frontmatter paths must exist. Supports relative paths and absolute /content/ paths for cross-product inclusion. | error | frontmatter, children |
68-
| GHD064 | rai-app-card-structure | RAI application/platform card articles must follow the required template structure | warning | feature, rai |
6967
| GHD065 | frontmatter-content-type | Content files in content-type directories must have a contentType frontmatter property that matches the parent directory. | error | frontmatter, content-type |
7068
| GHD066 | frontmatter-docs-team-metrics | Articles whose path contains a docsTeamMetrics value must include that value in their docsTeamMetrics frontmatter property. | error | frontmatter, docs-team-metrics |
7169
| [search-replace](https://github.com/OnkarRuikar/markdownlint-rule-search-replace) | deprecated liquid syntax: octicon-<icon-name> | The octicon liquid syntax used is deprecated. Use this format instead `octicon "<octicon-name>" aria-label="<Octicon aria label>"` | error | |

src/content-linter/style/github-docs.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,14 @@ const githubDocsConfig = {
119119
'partial-markdown-files': true,
120120
'yml-files': true,
121121
},
122-
'rai-reusable-usage': {
123-
// GHD035
124-
severity: 'error',
125-
'partial-markdown-files': true,
126-
},
122+
// 'rai-reusable-usage': {
123+
// // GHD035
124+
// // Temporarily disabled until RAI application card PRs merge.
125+
// // Re-enable by uncommenting this block.
126+
// // See: github/docs-internal#59611, #59934, #59936
127+
// severity: 'error',
128+
// 'partial-markdown-files': true,
129+
// },
127130
'image-no-gif': {
128131
// GHD036
129132
severity: 'error',
@@ -187,13 +190,14 @@ const githubDocsConfig = {
187190
'partial-markdown-files': true,
188191
'yml-files': true,
189192
},
190-
'rai-app-card-structure': {
191-
// GHD064
192-
// Disabled until RAI content migration is complete (github/docs-team#6340).
193-
// To enable, change severity to 'error'.
194-
severity: 'warning',
195-
'partial-markdown-files': false,
196-
},
193+
// 'rai-app-card-structure': {
194+
// // GHD064
195+
// // Temporarily disabled until RAI application card PRs merge.
196+
// // Re-enable by uncommenting this block (use 'error' once migration is complete per github/docs-team#6340).
197+
// // See: github/docs-internal#59611, #59934, #59936
198+
// severity: 'warning',
199+
// 'partial-markdown-files': false,
200+
// },
197201
}
198202

199203
export const githubDocsFrontmatterConfig = {

0 commit comments

Comments
 (0)