Skip to content

Commit

Permalink
修正格式
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL committed Apr 25, 2022
1 parent 416f88d commit b6733bf
Show file tree
Hide file tree
Showing 291 changed files with 1,717 additions and 842 deletions.
191 changes: 190 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ charset = utf-8
[Makefile]
indent_style = tab

[*.{js,json,xaml,axaml,xml,resx,resw,csproj,wapproj,appxmanifest,.props}]
[*.{js,json,xaml,axaml,xml,resx,resw,csproj,wapproj,appxmanifest,props}]
indent_style = space
indent_size = 2

Expand Down Expand Up @@ -240,3 +240,192 @@ dotnet_style_namespace_match_folder = false

# IDE0130: 命名空间与文件夹结构不匹配
dotnet_diagnostic.IDE0130.severity = none

# IDE0055: 修正格式
dotnet_diagnostic.IDE0055.severity = error

# IDE1006: 命名样式
dotnet_diagnostic.IDE1006.severity = error

# SA1600: Elements should be documented
dotnet_diagnostic.SA1600.severity = none

# SA1629: Documentation text should end with a period
dotnet_diagnostic.SA1629.severity = silent

# SA1101: Prefix local calls with this
dotnet_diagnostic.SA1101.severity = silent

# SA1623: Property summary documentation should match accessors
dotnet_diagnostic.SA1623.severity = none

# SA1200: Using directives should be placed correctly
dotnet_diagnostic.SA1200.severity = none

# SA1208: System using directives should be placed before other using directives
dotnet_diagnostic.SA1208.severity = silent

# Default severity for analyzer diagnostics with category 'StyleCop.CSharp.LayoutRules'
dotnet_analyzer_diagnostic.category-StyleCop.CSharp.LayoutRules.severity = error

# SA1400: Access modifier should be declared
dotnet_diagnostic.SA1400.severity = silent

# SA1633: File should have header
dotnet_diagnostic.SA1633.severity = silent

# SA1128: Put constructor initializers on their own line
dotnet_diagnostic.SA1128.severity = silent

# SA1413: Use trailing comma in multi-line initializers
dotnet_diagnostic.SA1413.severity = suggestion

# SA1005: Single line comments should begin with single space
dotnet_diagnostic.SA1005.severity = none

# SA1515: Single-line comment should be preceded by blank line
dotnet_diagnostic.SA1515.severity = silent

# SA1512: Single-line comments should not be followed by blank line
dotnet_diagnostic.SA1512.severity = silent

# SA1122: Use string.Empty for empty strings
dotnet_diagnostic.SA1122.severity = silent

# SA1616: Element return value documentation should have text
dotnet_diagnostic.SA1616.severity = silent

# SA1310: Field names should not contain underscore
dotnet_diagnostic.SA1310.severity = silent

# SA1137: Elements should have the same indentation
dotnet_diagnostic.SA1137.severity = error

# SA1503: Braces should not be omitted
dotnet_diagnostic.SA1503.severity = silent

# SA1513: Closing brace should be followed by blank line
dotnet_diagnostic.SA1513.severity = silent

# SA1402: File may only contain a single type
dotnet_diagnostic.SA1402.severity = silent

# SA1133: Do not combine attributes
dotnet_diagnostic.SA1133.severity = silent

# SA1011: Closing square brackets should be spaced correctly
dotnet_diagnostic.SA1011.severity = silent

# SA1502: Element should not be on a single line
dotnet_diagnostic.SA1502.severity = silent

# SA1201: Elements should appear in the correct order
dotnet_diagnostic.SA1201.severity = silent

# SA1505: Opening braces should not be followed by blank line
dotnet_diagnostic.SA1505.severity = silent

# SA1508: Closing braces should not be preceded by blank line
dotnet_diagnostic.SA1508.severity = silent

# SA1614: Element parameter documentation should have text
dotnet_diagnostic.SA1614.severity = silent

# SA1116: Split parameters should start on line after declaration
dotnet_diagnostic.SA1116.severity = silent

# SA1601: Partial elements should be documented
dotnet_diagnostic.SA1601.severity = silent

# SA1009: Closing parenthesis should be spaced correctly
dotnet_diagnostic.SA1009.severity = silent

# SA1202: Elements should be ordered by access
dotnet_diagnostic.SA1202.severity = silent

# SA1311: Static readonly fields should begin with upper-case letter
dotnet_diagnostic.SA1311.severity = silent

# SA1127: Generic type constraints should be on their own line
dotnet_diagnostic.SA1127.severity = silent

# SA1503: Braces should not be omitted
dotnet_diagnostic.SA1503.severity = silent

# SA1649: File name should match first type name
dotnet_diagnostic.SA1649.severity = silent

# SA1210: Using directives should be ordered alphabetically by namespace
dotnet_diagnostic.SA1210.severity = silent

# SA1028: Code should not contain trailing whitespace
dotnet_diagnostic.SA1028.severity = silent

# SA1204: Static elements should appear before instance elements
dotnet_diagnostic.SA1204.severity = silent

# SA1203: Constants should appear before fields
dotnet_diagnostic.SA1203.severity = silent

# SA1123: Do not place regions within elements
dotnet_diagnostic.SA1123.severity = silent

# SA1615: Element return value should be documented
dotnet_diagnostic.SA1615.severity = silent

# SA1611: Element parameters should be documented
dotnet_diagnostic.SA1611.severity = silent

# SA1124: Do not use regions
dotnet_diagnostic.SA1124.severity = silent

# SA1520: Use braces consistently
dotnet_diagnostic.SA1520.severity = silent

# SA1107: Code should not contain multiple statements on one line
dotnet_diagnostic.SA1107.severity = silent

# SA1312: Variable names should begin with lower-case letter
dotnet_diagnostic.SA1312.severity = error

# SA1519: Braces should not be omitted from multi-line child statement
dotnet_diagnostic.SA1519.severity = silent

# SA1000: Keywords should be spaced correctly
dotnet_diagnostic.SA1000.severity = silent

# SA1205: Partial elements should declare access
dotnet_diagnostic.SA1205.severity = silent

# SA1401: Fields should be private
dotnet_diagnostic.SA1401.severity = silent

# SA1622: Generic type parameter documentation should have text
dotnet_diagnostic.SA1622.severity = silent

# SA1627: Documentation text should not be empty
dotnet_diagnostic.SA1627.severity = silent

# SA1403: File may only contain a single namespace
dotnet_diagnostic.SA1403.severity = silent

# SA1602: Enumeration items should be documented
dotnet_diagnostic.SA1602.severity = silent

# SA1108: Block statements should not contain embedded comments
dotnet_diagnostic.SA1108.severity = silent

# SA1642: Constructor summary documentation should begin with standard text
dotnet_diagnostic.SA1642.severity = silent

# SA1117: Parameters should be on same line or separate lines
dotnet_diagnostic.SA1117.severity = silent

# SA1501: Statement should not be on a single line
dotnet_diagnostic.SA1501.severity = silent

# SA1500: Braces for multi-line statements should not share line
dotnet_diagnostic.SA1500.severity = silent

# SA1518: Use line endings correctly at end of file
dotnet_diagnostic.SA1518.severity = silent
Loading

0 comments on commit b6733bf

Please sign in to comment.