Small script for checking WebKit Code Style Guidelines with cpplint Visual Studio code plugin. The repository also contains the check-webkit-style
tool extracted from the WebKit repository with minor modifications to make it work without the complete codebase.
- Clone this repository or download the source from a release tag
- Extract and change to the cpplint-webkit directory
- Install the tool e.g. in a docker container by running
./install
- Install the cpplint VS Code plugin (can also be added to e.g.
devcontainer.json
for automatic installation) - Configure any options to WebKit's
check-webkit-style
with theCPPLINT_WEBKIT_ARGS
environment variable - Make sure that
/usr/local/bin
is in your evironmentPATH
variable - Run
git config --global --add safe.directory '*'
to make sure the/usr/share/WebKit
is set to be safe