ci: Add style check
GTK uses the same code style that we use. Copy the style checks from GTK to help contributors catch these mistakes early.
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
38aa09dc8c
commit
652625a2e6
@@ -0,0 +1,13 @@
|
||||
# See https://www.apertis.org/policies/coding_conventions/#code-formatting
|
||||
BasedOnStyle: GNU
|
||||
AlwaysBreakAfterDefinitionReturnType: All
|
||||
BreakBeforeBinaryOperators: None
|
||||
BinPackParameters: false
|
||||
SpaceAfterCStyleCast: true
|
||||
PointerAlignment: Right
|
||||
# Our column limit is actually 80, but setting that results in clang-format
|
||||
# making a lot of dubious hanging-indent choices; disable it and assume the
|
||||
# developer will line wrap appropriately. clang-format will still check
|
||||
# existing hanging indents.
|
||||
ColumnLimit: 0
|
||||
|
||||
Reference in New Issue
Block a user