Run the script with a patch file as the first argument in order to validate the patch in terms of coding style, like so: ./tools/check-style my-patch.diff As a shortcut, you can also check current changes: ./tools/check-style .