Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkpatch: fix TYPO_SPELLING check for words with apostrophe #232

Merged
merged 1 commit into from
Apr 20, 2023

Commits on Apr 17, 2023

  1. checkpatch: fix TYPO_SPELLING check for words with apostrophe

    checkpatch reports a false TYPO_SPELLING warning for some words containing
    an apostrophe when run with --codespell option.
    
    A false positive is "doesn't".  Occurrence of the word causes checkpatch
    to emit the following warning:
    
    "WARNING: 'doesn'' may be misspelled - perhaps 'doesn't'?"
    
    Modify the regex pattern to be more in line with the codespell default
    word matching regex.  This fixes the word capture and avoids the false
    warning.
    
    In addition, highlight the misspelled word location by adding a caret
    below the word.
    
    Signed-off-by: Dwaipayan Ray <[email protected]>
    Suggested-by: Joe Perches <[email protected]>
    Signed-off-by: Arnaud Pouliquen <[email protected]>
    raydwaipayan authored and arnopo committed Apr 17, 2023
    Configuration menu
    Copy the full SHA
    3beb519 View commit details
    Browse the repository at this point in the history