mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 00:58:36 +00:00
Add protobuf support to clang-format
This commit is contained in:
parent
7020f49aa9
commit
ce6da002aa
@ -21,7 +21,6 @@ IndentCaseLabels: 'false'
|
|||||||
IndentWidth: '8'
|
IndentWidth: '8'
|
||||||
IncludeBlocks: 'Regroup'
|
IncludeBlocks: 'Regroup'
|
||||||
KeepEmptyLinesAtTheStartOfBlocks: 'false'
|
KeepEmptyLinesAtTheStartOfBlocks: 'false'
|
||||||
Language: 'Cpp'
|
|
||||||
MaxEmptyLinesToKeep: '1'
|
MaxEmptyLinesToKeep: '1'
|
||||||
PointerAlignment: 'Right'
|
PointerAlignment: 'Right'
|
||||||
SortIncludes: 'true'
|
SortIncludes: 'true'
|
||||||
@ -32,10 +31,12 @@ SpaceInEmptyParentheses: 'false'
|
|||||||
SpacesInSquareBrackets: 'false'
|
SpacesInSquareBrackets: 'false'
|
||||||
TabWidth: '8'
|
TabWidth: '8'
|
||||||
UseTab: 'Always'
|
UseTab: 'Always'
|
||||||
|
|
||||||
PenaltyBreakAssignment: '3'
|
PenaltyBreakAssignment: '3'
|
||||||
PenaltyBreakBeforeFirstCallParameter: '15'
|
PenaltyBreakBeforeFirstCallParameter: '15'
|
||||||
|
---
|
||||||
|
Language: 'Proto'
|
||||||
|
---
|
||||||
|
Language: 'Cpp'
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '^"config.h"$'
|
- Regex: '^"config.h"$'
|
||||||
Priority: '0'
|
Priority: '0'
|
||||||
|
@ -9,11 +9,12 @@ repos:
|
|||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- id: forbid-new-submodules
|
- id: forbid-new-submodules
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
|
exclude: '.clang-format'
|
||||||
- id: check-json
|
- id: check-json
|
||||||
- id: check-symlinks
|
- id: check-symlinks
|
||||||
- id: check-xml
|
- id: check-xml
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
types_or: [c, shell, python]
|
types_or: [c, shell, python, proto]
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
types_or: [c, shell, python, xml]
|
types_or: [c, shell, python, xml]
|
||||||
- id: check-docstring-first
|
- id: check-docstring-first
|
||||||
|
Loading…
Reference in New Issue
Block a user