feat/fixInfo – fixInfo, excludePathPatterns, new rules, and docs#8
Merged
feat/fixInfo – fixInfo, excludePathPatterns, new rules, and docs#8
Conversation
Repository metadata and conventions for AI agents: layout, make targets, adding custom rules, expected_errors format, and dependencies.
Avoid glob version drift; use overrides in package.json.
- .markdownlint.yml: enable new rules and options - .markdownlint-cli2.jsonc: register custom rules - eslint.config.cjs: rule paths - Makefile: test-markdownlint-fix, test-markdownlint-options - .github/workflows/markdownlint-tests.yml: fixture and fix tests - .vscode/settings.json: custom rule paths - .gitignore: tmp/, dev_docs/
Document test-markdownlint-fix, test-markdownlint-options, and custom rule usage.
…ules - Add fixInfo to ascii-only, heading-title-case, heading-numbering, no-heading-like-lines, one-sentence-per-line for --fix and editor auto-fix - Add excludePathPatterns support across rules (utils pathMatchesAny) - Add isRuleSuppressedByComment for line-level HTML comment overrides (<!-- rule-name allow -->) - New rule: no-heading-like-lines (heading-like lines; fix: strip or convert) - New rule: one-sentence-per-line (one sentence per line; fix: split) - Fix heading-title-case: phase labels, single-letter labels, all violations per heading with correct ranges - Fix heading-numbering: fixInfo for prefix and period style - Fix no-h1-content: allow reference-style badge lines under H1 - Fix one-sentence-per-line: ignore periods in double-quoted numbering labels - Add .markdownlint.clean.yml reference config (all rules and options)
Document one-sentence-per-line, no-heading-like-lines, HTML comment suppress, fixable rules, and .markdownlint.clean.yml.
- negative_heading_like, negative_heading_min_words, negative_heading_numbering, negative_one_sentence_per_line - Update positive_general for HTML comment suppress - expected_errors.yml and README updates
- markdownlint_config_helper: temp config for rule-options tests - test_fix_*: functional fix tests for ascii-only, heading-numbering, heading-title-case, no-heading-like-lines, one-sentence-per-line - test_markdownlint_options: rule options via config helper - test_verify_markdownlint_fixtures: unit tests for verifier - README: document fix tests and config helper
- Add/update tests for excludePathPatterns, fixInfo, HTML comment suppress, and rule-specific behavior - one-sentence-per-line and utils unit tests
- List one-sentence-per-line, no-heading-like-lines; fixable rules - Python fix tests and test-markdownlint-fix; reference .markdownlint.clean.yml
1752a0e to
084cbc1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<!-- rule-name allow -->on the previous line or at end of line; documented and supported viaisRuleSuppressedByCommentin utils.no-heading-like-lines(heading-like lines; fix: strip emphasis or convert to ATX heading) andone-sentence-per-line(one sentence per line; fix: split with continuation indent).markdownlint-rules/.markdownlint.clean.ymllists all rules and options (commented) for copy-paste.