Skip to content

Conversation

@ALameLlama
Copy link
Contributor

@ALameLlama ALameLlama commented Oct 6, 2025

What:

  • Bug Fix
  • New Feature

Description:

There are a few cases where unfortunately we can't fix the typo that peck is finding and I don't want to explicitly ignore the word since it can then get added to new files. Being able to explicitly ignore a word per file will be handy since it lets us fix the errors we can and then ignore the ones we can't but still prevent it from happening again in new places.

example peck.json

{
    "preset": "laravel",
    "ignore": {
        "words": [
            "php"
        ],
        "paths": [
        ],
        "files": {
            "app/somefile/typo.php": [
                "typo"
            ]
        }
    }
}

Note:

I've not updated the read me yet, if you're happy with these changes I can update the docs to include more information about this.

@ALameLlama ALameLlama changed the title feat: ignore words per file [Feat]: Ignore words per file Oct 6, 2025
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