ADD project folders to pre-commit

This commit is contained in:
fastium 2024-12-17 16:44:11 +01:00 committed by Fastium
parent 1ba466569e
commit 9c104fc3a2

View File

@ -1,24 +1,24 @@
files: ^main.cpp files: ^main.cpp | ^static_scheduling/ | ^static_scheduling_with_event/ | ^TESTS/
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 rev: v4.3.0
hooks: hooks:
- id: check-yaml - id: check-yaml
args: [--allow-multiple-documents] args: [--allow-multiple-documents]
- id: end-of-file-fixer - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v14.0.6' rev: "v14.0.6"
hooks: hooks:
- id: clang-format - id: clang-format
- repo: https://github.com/cpplint/cpplint - repo: https://github.com/cpplint/cpplint
rev: '1.6.1' rev: "1.6.1"
hooks: hooks:
- id: cpplint - id: cpplint
- repo: local - repo: local
hooks: hooks:
- id: cppcheck - id: cppcheck
name: cppcheck name: cppcheck
require_serial: true require_serial: true
entry: cppcheck --enable=all --suppress=missingInclude:* --inline-suppr -i mbed-os --std=c++14 --error-exitcode=1 entry: cppcheck --enable=all --suppress=missingInclude:* --inline-suppr -i mbed-os --std=c++14 --error-exitcode=1
language: system language: system