Files
shanghaigangxiangtuzhuangMES/.csharpier.yml

264 lines
7.3 KiB
YAML
Raw Permalink Normal View History

2024-11-20 16:35:02 +08:00
CSharpier:
MaxLineLength: 200
NewLineAtEndOfFile: true
SpaceBeforeAndAfterBinaryOperators: true
WrapWhenPrecededByComments: true
WrapWhenPrecededByDirectives: false
AccessorKind:
Property: Auto
Method: Manual
ArrowExpressionStyle:
BinaryExpression: Auto
InvocationExpression: Auto
MethodDeclaration: Auto
ObjectCreationExpression: Auto
UnaryExpression: Auto
ForDeclarations: Auto
ForEachDeclarations: Auto
BracePlacement:
Block: EndOfLine
AnonymousFunction: EndOfLine
ObjectInitializer: EndOfLine
ArrayInitializer: EndOfLine
DictionaryInitializer: EndOfLine
SwitchSection: EndOfLine
TupleElement: EndOfLine
QueryClause: EndOfLine
DirectivesPlacement:
AtTheTopOfFile: false
JustAboveUsings: false
InsideNamespace: true
BeforeAssemblyAttributes: false
DocumentationCommentTriviaPlacement:
ParameterDescription: AfterColon
ReturnsDescription: AfterKeyword
RemarksDescription: AfterKeyword
SummaryDescription: AfterKeyword
ValueDescription: AfterKeyword
EmptyBlockStyle:
IfStatement: Semicolon
WhileStatement: Semicolon
DoWhileStatement: Semicolon
ForStatement: Semicolon
UsingStatement: Semicolon
FixedStatement: Semicolon
ForeachStatement: Semicolon
TryStatement: Braces
CatchClause: Braces
FinallyClause: Braces
ElseClause: Braces
UsingDeclaration: Semicolon
EmptyLines:
BeforeConstructorBody: false
BeforePropertyBody: false
BeforeMethodBody: false
BeforeBlockBody: false
BeforeBraces: false
BeforeFieldDeclaration: true
BeforeInterfaceBody: true
BeforeTypeDeclaration: true
BeforeClassBody: true
BeforeStructBody: true
BeforeEnumBody: true
BeforeDelegateBody: true
BeforeEventField: true
BeforeStaticConstructor: true
EqualityExpressions:
Comparison: Auto
CoalesceExpression: Auto
ConditionalAccessExpression: Auto
ConditionalExpression: Auto
EqualityExpression: Auto
IsPatternExpression: Auto
NullCoalescingAssignmentExpression: Auto
NullCoalescingExpression: Auto
NullableReferenceTypeAnnotation: Auto
ExpressionBody:
PropertyDeclaration: Auto
MethodDeclaration: Auto
ConstructorDeclaration: Auto
DestructorDeclaration: Auto
InterfaceMemberDeclaration: Auto
DelegateDeclaration: Auto
EventFieldDeclaration: Auto
EventDeclaration: Auto
OperatorDeclaration: Auto
ConversionOperatorDeclaration: Auto
TypeDeclaration: Auto
IndentationOptions:
UseTabs: false
Size: 4
KeywordPlacement:
InAttributeLists: EndOfLine
InUsingDirectives: EndOfLine
LineBreaks:
BeforeBinaryOperator: false
BeforeQueryContinuation: false
BeforeLogicalOr: false
BeforeLogicalAnd: false
BeforeCommaInArgumentList: false
BeforeCommaInVariableDeclarations: false
BeforeCommaInArrayInitializers: false
BeforeCommaInObjectInitializers: false
BeforeCommaInCollectionInitializers: false
BeforeCommaInDeclarations: false
BeforeSemicolonInForStatement: false
BeforeSemicolonInDoStatement: false
BeforeSemicolonInUsingStatement: false
BeforeSemicolonInWhileStatement: false
BeforeSemicolonInFixedStatement: false
BeforeSemicolonInForeachStatement: false
BeforeSemicolonInUsingDeclaration: false
BeforeColonInTypeDeclaration: false
BeforeColonInBaseList: false
BeforeColonInPatternDeclaration: false
BeforeColonInParameterList: false
BeforeColonInSwitchLabel: false
BeforeColonInDocumentationComment: false
BeforeQuestionToken: false
BeforeArrowToken: false
BeforeEqualsToken: false
LineBreaksOption:
AllowParentheses: true
AllowBraces: true
AllowSquareBrackets: true
ListIndentation:
UsingDirectives: true
NamespaceMembers: true
Members: true
Statements: true
Properties: true
Arguments: true
Initializers: true
Declarators: true
Parameters: true
MemberOrdering:
StaticBeforeInstance: true
OverrideBeforeDefinition: true
ModifierOrdering:
Accessibility: true
Virtual: true
Abstract: true
Sealed: true
Override: true
New: true
Static: true
Readonly: true
Async: true
Internal: true
Private: true
Public: true
Protected: true
ProtectedInternal: true
ProtectedOrInternal: true
Const: true
Volatile: true
Unsafe: true
Partial: true
Event: true
Indexer: true
Iterator: true
Yield: true
NamingStyle:
Field: PascalCase
Property: PascalCase
Method: PascalCase
Parameter: PascalCase
Local: PascalCase
Type: PascalCase
Namespace: PascalCase
EnumMember: PascalCase
NewLineAfterStatement:
BeforeElse: false
BeforeFinally: false
BeforeCatch: false
BeforeWhile: false
BeforeBlock: false
NewLineAtEndOfFile:
Always: true
NewLineBeforeStatement:
BeforeBrace: false
BeforeReturn: false
BeforeYield: false
BeforeRightSideOfIf: false
BeforeRightSideOfElseIf: false
BeforeRightSideOfElse: false
BeforeRightSideOfWhile: false
BeforeRightSideOfDoWhile: false
BeforeRightSideOfFor: false
BeforeRightSideOfUsing: false
BeforeRightSideOfForeach: false
BeforeRightSideOfFixed: false
BeforeRightSideOfTry: false
BeforeRightSideOfCatch: false
BeforeRightSideOfFinally: false
BeforeRightSideOfThrow: false
NullChecking:
UseIsNullCheck: false
UseIsNotNullCheck: false
ObjectCreationExpressionOptions:
UseObjectCreation: false
UseCollectionInitializer: false
UseObjectInitializer: false
OperatorPrecedence:
UseBinaryOperator: Auto
UsePostfixUnaryOperator: Auto
UsePrefixUnaryOperator: Auto
Parentheses:
InConditionalExpression: Auto
InBinaryExpression: Auto
InArgumentList: Auto
InInvocationExpression: Auto
InObjectCreationExpression: Auto
InUnaryExpression: Auto
InBracketMemberAccessExpression: Auto
InPropertyAccessExpression: Auto
InIndexerAccessExpression: Auto
PropertyDeclaration:
Getter: Auto
Setter: Auto
AccessorsOnSeparateLines: false
StatementKind:
IfStatement: Auto
WhileStatement: Auto
DoWhileStatement: Auto
ForStatement: Auto
UsingStatement: Auto
FixedStatement: Auto
ForeachStatement: Auto
SuppressNullableWarnings:
Default: false
TrailingTrivia:
InsideParens: false
InsideBraces: false
InsideSquareBrackets: false
InsideAttributes: false
InsideUsingDirectives: false
InsideTypeDeclaration: false
InsideMemberDeclaration: false
InsideMethodBody: false
InsidePropertyBody: false
InsideInitializer: false
InsideArgumentList: false
InsideParameterList: false
InsideObjectInitializer: false
InsideCollectionInitializer: false
InsideArrayInitializer: false
InsideBracket: false
InsideParenthesis: false
InsideBrace: false
InsideSquareBracket: false
InsideAttributeList: false
InsideUsingDirective: false
InsideType: false
InsideMember: false
InsideMethod: false
InsideProperty: false
InsideInitializerItem: false
InsideArgument: false
InsideParameter: false
InsideObjectInitializerItem: false
InsideCollectionInitializerItem: false
InsideArrayInitializerItem: false
InsideBracketItem: false
InsideParenthesisItem: false