Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • scripts
  • checkpatch.pl
Find file BlameHistoryPermalink
  • Dwaipayan Ray's avatar
    checkpatch: fix TYPO_SPELLING check for words with apostrophe · 7da07c31
    Dwaipayan Ray authored Dec 15, 2020
    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.
    
    [akpm@linux-foundation.org: make matched misspelling more obvious, per Joe]
      Link: https://lkml.kernel.org/r/09c24ef1aa2f1c4fe909d76f5426f08780b9d81c.camel@perches.com
    
    Link: https://lkml.kernel.org/r/20201201190729.169733-1-dwaipayanray1@gmail.com
    
    
    Signed-off-by: default avatarDwaipayan Ray <dwaipayanray1@gmail.com>
    Suggested-by: default avatarJoe Perches <joe@perches.com>
    Reported-by: default avatarPeilin Ye <yepeilin.cs@gmail.com>
    Acked-by: default avatarJoe Perches <joe@perches.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    7da07c31
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7