Skip to content

checkpatch

n-soda edited this page Dec 27, 2022 · 3 revisions

checkpatch.pl for gfarm project

checkpatch.pl is modified version of linux kernel's checkpatch.pl script for gfarm project.

Change summary from original (from linux kernel git ab658321f):

  • check return values are surrounded by parentheses
  • don't check assignment in condition
  • don't check CVS keywords
  • don't check redundant braces
  • make --no-tree --no-signoff option to default
  • add --no-utf8 option to disable invalid UTF-8 check
  • modify help message

Sample Usage

  • check source code

    $ checkpatch.pl -f *.[ch]
    
  • check before commit

    $ git diff | checkpatch.pl -
    

Clone this wiki locally