Skip to content

Commit 30c3938

Browse files
authored
Show message that links to info on suppressing a linter rule (#58570)
1 parent c4ed83a commit 30c3938

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/content-linter/scripts/lint-content.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,11 @@ async function main() {
284284
// Ensure previous console logging is not truncated
285285
console.log('\n')
286286
const took = end - start
287+
if (warningFileCount > 0 || errorFileCount > 0) {
288+
spinner.info(
289+
`💡 You can disable linter rules for specific lines or blocks of text. See https://gh.io/suppress-linter-rule.\n\n`,
290+
)
291+
}
287292
spinner.info(
288293
`🕦 Markdownlint finished in ${(took > 1000 ? took / 1000 : took).toFixed(1)} ${
289294
took > 1000 ? 's' : 'ms'

0 commit comments

Comments
 (0)