Skip to content

feat/fixInfo – fixInfo, excludePathPatterns, new rules, and docs#8

Merged
cypher0n3 merged 10 commits intomainfrom
feat/fixInfo
Feb 17, 2026
Merged

feat/fixInfo – fixInfo, excludePathPatterns, new rules, and docs#8
cypher0n3 merged 10 commits intomainfrom
feat/fixInfo

Conversation

@cypher0n3
Copy link
Owner

@cypher0n3 cypher0n3 commented Feb 13, 2026

Summary

  • fixInfo and auto-fix support for several custom markdownlint rules (ascii-only, heading-title-case, heading-numbering, no-heading-like-lines, one-sentence-per-line).
  • excludePathPatterns added across rules so files can be skipped by glob.
  • Line-level HTML comment suppression: <!-- rule-name allow --> on the previous line or at end of line; documented and supported via isRuleSuppressedByComment in utils.
  • New rules: no-heading-like-lines (heading-like lines; fix: strip emphasis or convert to ATX heading) and one-sentence-per-line (one sentence per line; fix: split with continuation indent).
  • Reference config: markdownlint-rules/.markdownlint.clean.yml lists all rules and options (commented) for copy-paste.
  • meta.md for AI agent guidance (layout, make targets, adding rules, expected_errors format).
  • Rule fixes: heading-title-case (phase/single-letter labels, all violations per heading); heading-numbering (fixInfo); no-h1-content (reference-style badges under H1); one-sentence-per-line (ignore periods in double-quoted numbering labels).
  • Tests: fixture updates, expected_errors.yml, Python fix tests and config-helper-based option tests, expanded Node unit tests for rules and utils.
  • Docs: README, CONTRIBUTING, markdownlint-rules README, md_test_files README, test-scripts README.
  • Chore: glob pinned to ^13.0.3 via overrides; config/Makefile/CI updated for new rules and test targets.

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
@cypher0n3 cypher0n3 changed the title Feat/fix info feat/fixInfo – fixInfo, excludePathPatterns, new rules, and docs Feb 17, 2026
@cypher0n3 cypher0n3 marked this pull request as ready for review February 17, 2026 06:36
@cypher0n3 cypher0n3 merged commit eeceec6 into main Feb 17, 2026
14 checks passed
@cypher0n3 cypher0n3 deleted the feat/fixInfo branch February 17, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant