Skip to content

Conversation

@ryoppippi
Copy link
Member

@ryoppippi ryoppippi commented Dec 23, 2025

Summary by cubic

Updated typos.toml ignore regex to correctly skip sections wrapped with spellchecker:off/on in code and HTML comments, even across multiple lines. This reduces false positives from typos checks in disabled blocks.

  • Bug Fixes
    • Use [\s\S]*? to match multiline content and correctly pair ... markers.

Written for commit 0d410c8. Summary will update automatically on new commits.

Copilot AI review requested due to automatic review settings December 23, 2025 12:51
@ryoppippi ryoppippi enabled auto-merge (squash) December 23, 2025 12:51
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes regex patterns in the typos configuration file to properly handle spellchecker ignore directives. The main fix corrects the HTML comment pattern structure, changing it from a single-comment pattern to properly match separate opening and closing comment tags.

Key Changes

  • Updated regex patterns to use [\\s\\S]*? instead of .*?\\n\\s* for more flexible matching
  • Fixed HTML comment pattern to correctly match separate opening (<!-- spellchecker:off -->) and closing (<!-- spellchecker:on -->) comments
  • Added trailing comma for consistency in the configuration array

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 1 to 10
[default]
locale = 'en-us'
extend-ignore-re = [
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
"(?s)<!--\\s*spellchecker:off.*?\\n\\s*spellchecker:on\\s*-->",
"(?s)(#|//)\\s*spellchecker:off[\\s\\S]*?(#|//)\\s*spellchecker:on",
"(?s)<!--\\s*spellchecker:off\\s*-->[\\s\\S]*?<!--\\s*spellchecker:on\\s*-->",
"(?Rm)^.*#\\s*spellchecker:disable-line$",
"(?m)^.*<!--\\s*spellchecker:disable-line\\s*-->\\n.*$"
"(?m)^.*<!--\\s*spellchecker:disable-line\\s*-->\\n.*$",
]

[files]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is over kill let's remove this whole typo.toml. Not that hard to have a aspell checker in the editor itself and considering a lot of docs will be llm driven/reviewed there's very little risk to introduce typos

Copy link
Contributor

@glebedel glebedel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove the typos.toml / action checker

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.

3 participants