Skip to content
Snippets Groups Projects
Verified Commit f93e4e7f authored by Damiano Amatruda's avatar Damiano Amatruda
Browse files

Add pre-commit hook

parent 99194bf3
Branches
Tags
No related merge requests found
{
BasedOnStyle: Google,
AccessModifierOffset: -4,
AlignConsecutiveAssignments: true,
AllowShortIfStatementsOnASingleLine: false,
AllowShortLoopsOnASingleLine: false,
BreakBeforeBraces: Allman,
ColumnLimit: 80,
ConstructorInitializerAllOnOneLineOrOnePerLine: false,
IndentCaseLabels: true,
IndentWidth: 4,
KeepEmptyLinesAtTheStartOfBlocks: true,
}
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://gitlab.com/daverona/pre-commit/cpp
rev: 0.8.0
hooks:
- id: cppcheck
args: [
--quiet,
--language=c++,
--enable=all,
--inline-suppr,
--suppress=unmatchedSuppression,
--suppress=unusedFunction,
--suppress=missingInclude,
--suppress=noExplicitConstructor
]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.0
hooks:
- id: clang-format
args: [
-style=file,
--dry-run,
--Werror
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment