textlint reports errors and fails the docs job in CI
textlint ran its configured rules over your Markdown or text and reported errors, exiting non-zero. Each line shows the rule id, so you can auto-fix, adjust severity, or add an exception.
What this error means
textlint prints a list ending in "N problems (N errors, M warnings)" with rule ids like no-dead-link or terminology, and the CI step fails.
/docs/guide.md
10:5 error Disallow to use "Github", use "GitHub" instead terminology
1 problem (1 error, 0 warnings)Common causes
A rule flags real prose issues
Rules such as terminology, write-good, or spellcheck-tech-word report style or spelling problems that fail the build.
Fixable rules were not auto-fixed
Many textlint rules support --fix; if CI only checks, fixable issues still fail instead of being corrected.
How to fix it
Auto-fix and commit, or check with --fix-dry-run
- Run
textlint --fixlocally to correct fixable rules. - Commit the result.
- In CI, run plain
textlintto gate on what remains.
npx textlint --fix "docs/**/*.md"Tune rule severity in .textlintrc
Lower a noisy rule to a warning or disable it so only meaningful errors gate CI.
{
"rules": {
"terminology": true,
"write-good": { "severity": "warning" }
}
}How to prevent it
- Run
textlint --fixin a pre-commit hook so fixable issues never reach CI. - Keep
.textlintrccommitted so local and CI rule sets match. - Scope rules to
.mdfiles and set severities intentionally.