mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-05 20:39:59 -08:00
* update format.sh add shellcheck to format.sh add statement macros to .clang-format add no clang format to format.sh add changed file list to format.sh diff rename --cf-version to --print-version in format.sh lint files * enable --shell on ci runs * remove useless semicolons removes the semicolons after empty function definitions these semicolons are optional, they don't do anything this will have functions be consistently formatted if we want to keep the option to have these on the same line like they were before we should use the option AllowShortFunctionsOnASingleLine: None * fix script * update echo line in lint_cpp.sh which doesn't lint cpp only at all
35 lines
793 B
YAML
35 lines
793 B
YAML
IndentWidth: 4
|
|
AccessModifierOffset: -4
|
|
ColumnLimit: 120
|
|
---
|
|
Language: Cpp
|
|
BreakBeforeBraces: Custom
|
|
BraceWrapping:
|
|
AfterClass: true
|
|
AfterControlStatement: false
|
|
AfterEnum: true
|
|
AfterFunction: true
|
|
AfterNamespace: true
|
|
AfterStruct: true
|
|
AfterUnion: true
|
|
BeforeCatch: false
|
|
BeforeElse: false
|
|
IndentBraces: false
|
|
SplitEmptyFunction: true
|
|
SplitEmptyRecord: true
|
|
SplitEmptyNamespace: true
|
|
AllowShortFunctionsOnASingleLine: None
|
|
BinPackParameters: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
IndentCaseLabels: true
|
|
PointerAlignment: Right
|
|
SortIncludes: true
|
|
IncludeBlocks: Regroup
|
|
StatementAttributeLikeMacros: [emit]
|
|
# requires clang-format 16
|
|
# RemoveSemicolon: true
|
|
---
|
|
Language: Proto
|
|
AllowShortFunctionsOnASingleLine: None
|
|
SpacesInContainerLiterals: false
|