Skip to content

C++ hooks for pre-commit based on Google C++ Style Guide

License

Notifications You must be signed in to change notification settings

gringolito/cpp-pre-commit-hooks

Repository files navigation

cpp-pre-commit-hooks

C++ hooks for pre-commit based on Google's C++ Style Guide

Actions Status

Usage

To use these hooks, simply place the following snippet in you .pre-commit-config.yaml (more details below):

repos:
-   repo: https://github.com/gringolito/cpp-pre-commit-hooks
    rev: master
    hooks:
    -   id: check-using-namespace-directive

check-using-namespace-directive

This hook verifies the usage of the using namespace directive according to the Google C++ Style Guide.

The argument --allow-in-source can be passed to this hook to provide a more relaxed behavior and allow the usage of the using namespace directive in C++ source (.c, .cc, .cpp, and .cxx) files.

-   repo: https://github.com/gringolito/cpp-pre-commit-hooks
    rev: master
    hooks:
    -   id: check-using-namespace-directive
    #   args: [--allow-in-source]

About

C++ hooks for pre-commit based on Google C++ Style Guide

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published