mirror of
				https://github.com/XRPLF/rippled.git
				synced 2025-11-04 03:05:52 +00:00 
			
		
		
		
	The change updates how clang-format is called in CI and locally, and adds prettier to the pre-commit hook. Proto files are now also formatted, while external files are excluded.
		
			
				
	
	
		
			104 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			104 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
BreakBeforeBraces: Custom
 | 
						|
BraceWrapping:
 | 
						|
  AfterClass: true
 | 
						|
  AfterControlStatement: true
 | 
						|
  AfterEnum: false
 | 
						|
  AfterFunction: true
 | 
						|
  AfterNamespace: false
 | 
						|
  AfterObjCDeclaration: true
 | 
						|
  AfterStruct: true
 | 
						|
  AfterUnion: true
 | 
						|
  BeforeCatch: true
 | 
						|
  BeforeElse: true
 | 
						|
  IndentBraces: false
 | 
						|
KeepEmptyLinesAtTheStartOfBlocks: false
 | 
						|
MaxEmptyLinesToKeep: 1
 | 
						|
---
 | 
						|
Language: Cpp
 | 
						|
AccessModifierOffset: -4
 | 
						|
AlignAfterOpenBracket: AlwaysBreak
 | 
						|
AlignConsecutiveAssignments: false
 | 
						|
AlignConsecutiveDeclarations: false
 | 
						|
AlignEscapedNewlinesLeft: true
 | 
						|
AlignOperands: false
 | 
						|
AlignTrailingComments: true
 | 
						|
AllowAllParametersOfDeclarationOnNextLine: false
 | 
						|
AllowShortBlocksOnASingleLine: false
 | 
						|
AllowShortCaseLabelsOnASingleLine: false
 | 
						|
AllowShortFunctionsOnASingleLine: false
 | 
						|
AllowShortIfStatementsOnASingleLine: false
 | 
						|
AllowShortLoopsOnASingleLine: false
 | 
						|
AlwaysBreakAfterReturnType: All
 | 
						|
AlwaysBreakBeforeMultilineStrings: true
 | 
						|
AlwaysBreakTemplateDeclarations: true
 | 
						|
BinPackArguments: false
 | 
						|
BinPackParameters: false
 | 
						|
BreakBeforeBinaryOperators: false
 | 
						|
BreakBeforeTernaryOperators: true
 | 
						|
BreakConstructorInitializersBeforeComma: true
 | 
						|
ColumnLimit: 80
 | 
						|
CommentPragmas: "^ IWYU pragma:"
 | 
						|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
 | 
						|
ConstructorInitializerIndentWidth: 4
 | 
						|
ContinuationIndentWidth: 4
 | 
						|
Cpp11BracedListStyle: true
 | 
						|
DerivePointerAlignment: false
 | 
						|
DisableFormat: false
 | 
						|
ExperimentalAutoDetectBinPacking: false
 | 
						|
ForEachMacros: [Q_FOREACH, BOOST_FOREACH]
 | 
						|
IncludeBlocks: Regroup
 | 
						|
IncludeCategories:
 | 
						|
  - Regex: "^<(test)/"
 | 
						|
    Priority: 0
 | 
						|
  - Regex: "^<(xrpld)/"
 | 
						|
    Priority: 1
 | 
						|
  - Regex: "^<(xrpl)/"
 | 
						|
    Priority: 2
 | 
						|
  - Regex: "^<(boost)/"
 | 
						|
    Priority: 3
 | 
						|
  - Regex: "^.*/"
 | 
						|
    Priority: 4
 | 
						|
  - Regex: '^.*\.h'
 | 
						|
    Priority: 5
 | 
						|
  - Regex: ".*"
 | 
						|
    Priority: 6
 | 
						|
IncludeIsMainRegex: "$"
 | 
						|
IndentCaseLabels: true
 | 
						|
IndentFunctionDeclarationAfterType: false
 | 
						|
IndentRequiresClause: true
 | 
						|
IndentWidth: 4
 | 
						|
IndentWrappedFunctionNames: false
 | 
						|
NamespaceIndentation: None
 | 
						|
ObjCSpaceAfterProperty: false
 | 
						|
ObjCSpaceBeforeProtocolList: false
 | 
						|
PenaltyBreakBeforeFirstCallParameter: 1
 | 
						|
PenaltyBreakComment: 300
 | 
						|
PenaltyBreakFirstLessLess: 120
 | 
						|
PenaltyBreakString: 1000
 | 
						|
PenaltyExcessCharacter: 1000000
 | 
						|
PenaltyReturnTypeOnItsOwnLine: 200
 | 
						|
PointerAlignment: Left
 | 
						|
ReflowComments: true
 | 
						|
RequiresClausePosition: OwnLine
 | 
						|
SortIncludes: true
 | 
						|
SpaceAfterCStyleCast: false
 | 
						|
SpaceBeforeAssignmentOperators: true
 | 
						|
SpaceBeforeParens: ControlStatements
 | 
						|
SpaceInEmptyParentheses: false
 | 
						|
SpacesBeforeTrailingComments: 2
 | 
						|
SpacesInAngles: false
 | 
						|
SpacesInContainerLiterals: true
 | 
						|
SpacesInCStyleCastParentheses: false
 | 
						|
SpacesInParentheses: false
 | 
						|
SpacesInSquareBrackets: false
 | 
						|
Standard: Cpp11
 | 
						|
TabWidth: 8
 | 
						|
UseTab: Never
 | 
						|
QualifierAlignment: Right
 | 
						|
---
 | 
						|
Language: Proto
 | 
						|
BasedOnStyle: Google
 | 
						|
ColumnLimit: 0
 | 
						|
IndentWidth: 2
 |