precommit: Add more checks
This commit is contained in:
parent
b6313b2183
commit
b0b65cbdb9
|
@ -4,3 +4,19 @@ repos:
|
|||
hooks:
|
||||
- id: astyle_py
|
||||
args: ['--style=otbs', '--attach-namespaces', '--attach-classes', '--indent=spaces=4', '--convert-tabs', '--align-pointer=name', '--align-reference=name', '--keep-one-line-statements', '--pad-header', '--pad-oper']
|
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
files: ^usb/
|
||||
types_or: [c, c++]
|
||||
- id: end-of-file-fixer
|
||||
files: ^usb/
|
||||
types_or: [c, c++]
|
||||
- id: check-merge-conflict
|
||||
- id: mixed-line-ending
|
||||
files: ^usb/ # temporary USB only
|
||||
types_or: [c, c++]
|
||||
args: ['--fix=lf']
|
||||
description: Forces to replace line ending by the UNIX 'lf' character
|
||||
|
|
Loading…
Reference in New Issue