Open YeongJunKim opened 1 year ago
In .pre-commit-config.yaml
.pre-commit-config.yaml
repos: - repo: local hooks: - id: format-test name: format-test language: system entry: bash linting.sh types: [file]
In CPPLINT.cfg
CPPLINT.cfg
root = true linelength=150 # filter=-legal/copyright filter=-build/header_guard filter=-build/include filter=-build/c++11 filter=-build/namespaces filter=-build/storage_class filter=-whitespace/braces filter=-whitespace/newline filter=-whitespace/parens filter=-whitespace/indent filter=-whitespace/comment filter=-runtime/indentation_namespace filter=-runtime/references filter=-runtime/string filter=-runtime/array filter=-runtime/threadsafe_fn filter=-runtime/printf filter=-runtime/int filter=-runtime/explicit filter=-readability/casting filter=-readability/fn_size extensions=inl, h, cpp
In linting.sh
linting.sh
cpplint --recursive --exclude=build/* --exclude=folders/* ./*
pip install pre-commit pre-commit install in root folder
pip install pre-commit
pre-commit install
In
.pre-commit-config.yaml
In
CPPLINT.cfg
In
linting.sh