Skip to content

feat: support codespell:ignore-next-line directive#3931

Merged
DimitriPapadopoulos merged 1 commit into
codespell-project:mainfrom
SAY-5:feat-ignore-next-line
May 14, 2026
Merged

feat: support codespell:ignore-next-line directive#3931
DimitriPapadopoulos merged 1 commit into
codespell-project:mainfrom
SAY-5:feat-ignore-next-line

Conversation

@SAY-5
Copy link
Copy Markdown
Contributor

@SAY-5 SAY-5 commented May 13, 2026

Closes #3637.

Adds an # codespell:ignore-next-line [words] directive that suppresses misspellings on the following line. The bare form skips every misspelling on the next line; the word-list form skips only the named ones, matching the wording semantics of the existing inline codespell:ignore form. The directive line itself ignores the listed words so the comment does not flag its own examples.

DimitriPapadopoulos suggested the shorter codespell:ignore-next in the issue thread ("PRs welcome"); happy to rename or also support that alias if preferred.

@larsoner
Copy link
Copy Markdown
Member

Okay for me, @DimitriPapadopoulos did you want to look?

@DimitriPapadopoulos DimitriPapadopoulos merged commit f2dae25 into codespell-project:main May 14, 2026
17 checks passed
@DimitriPapadopoulos
Copy link
Copy Markdown
Collaborator

Thank you @SAY-5.

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.

In-line ignoring of the following line

3 participants