mirror of
https://github.com/nsnail/dot.git
synced 2025-06-17 21:13:21 +08:00
..
This commit is contained in:
parent
1ce8262bb3
commit
adc9ab53d7
@ -1,23 +1,26 @@
|
|||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
indent_style = space
|
|
||||||
indent_size = 4
|
|
||||||
end_of_line = lf
|
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
ij_xml_attribute_wrap = off
|
||||||
|
ij_xml_text_wrap = off
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
insert_final_newline = false
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[*.cs]
|
[*.cs]
|
||||||
dotnet_analyzer_diagnostic.severity = warning
|
dotnet_analyzer_diagnostic.severity = warning
|
||||||
dotnet_diagnostic.IDE0008.severity = none
|
|
||||||
dotnet_diagnostic.IDE0055.severity = none
|
|
||||||
dotnet_diagnostic.IDE0160.severity = none
|
|
||||||
dotnet_diagnostic.CA1707.severity = none
|
dotnet_diagnostic.CA1707.severity = none
|
||||||
dotnet_diagnostic.IDE0048.severity = none
|
|
||||||
dotnet_diagnostic.IDE0058.severity = none
|
|
||||||
dotnet_diagnostic.IDE0017.severity = none
|
|
||||||
dotnet_diagnostic.CA5350.severity = none
|
dotnet_diagnostic.CA5350.severity = none
|
||||||
dotnet_diagnostic.CA5351.severity = none
|
dotnet_diagnostic.CA5351.severity = none
|
||||||
|
dotnet_diagnostic.IDE0008.severity = none
|
||||||
|
dotnet_diagnostic.IDE0017.severity = none
|
||||||
|
dotnet_diagnostic.IDE0048.severity = none
|
||||||
|
dotnet_diagnostic.IDE0055.severity = none
|
||||||
|
dotnet_diagnostic.IDE0058.severity = none
|
||||||
|
dotnet_diagnostic.IDE0160.severity = none
|
||||||
|
|
||||||
|
|
||||||
# ReSharper properties
|
# ReSharper properties
|
||||||
@ -41,8 +44,8 @@ resharper_csharp_outdent_commas = true
|
|||||||
resharper_csharp_place_type_constraints_on_same_line = false
|
resharper_csharp_place_type_constraints_on_same_line = false
|
||||||
resharper_csharp_stick_comment = false
|
resharper_csharp_stick_comment = false
|
||||||
resharper_csharp_wrap_before_comma = true
|
resharper_csharp_wrap_before_comma = true
|
||||||
resharper_indent_nested_foreach_stmt = true
|
|
||||||
resharper_indent_nested_for_stmt = true
|
resharper_indent_nested_for_stmt = true
|
||||||
|
resharper_indent_nested_foreach_stmt = true
|
||||||
resharper_indent_nested_while_stmt = true
|
resharper_indent_nested_while_stmt = true
|
||||||
resharper_indent_preprocessor_if = usual_indent
|
resharper_indent_preprocessor_if = usual_indent
|
||||||
resharper_indent_preprocessor_other = usual_indent
|
resharper_indent_preprocessor_other = usual_indent
|
||||||
|
17
CodeQuality.props
Normal file
17
CodeQuality.props
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<Project>
|
||||||
|
<PropertyGroup>
|
||||||
|
<CodeAnalysisRuleSet>../StyleCopAnalyzers.ruleset</CodeAnalysisRuleSet>
|
||||||
|
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
|
||||||
|
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||||
|
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
|
||||||
|
<MSBuildWarningsAsErrors>true</MSBuildWarningsAsErrors>
|
||||||
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
<WarningsAsErrors>true</WarningsAsErrors>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
|
</ItemGroup>
|
||||||
|
</Project>
|
@ -6,6 +6,7 @@
|
|||||||
<Rule Id="SA0001" Action="Warning"/> <!-- XML comment analysis disabled -->
|
<Rule Id="SA0001" Action="Warning"/> <!-- XML comment analysis disabled -->
|
||||||
<Rule Id="SA0002" Action="Warning"/> <!-- Invalid settings file -->
|
<Rule Id="SA0002" Action="Warning"/> <!-- Invalid settings file -->
|
||||||
</Rules>
|
</Rules>
|
||||||
|
|
||||||
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.SpacingRules">
|
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.SpacingRules">
|
||||||
<Rule Id="SA1000" Action="Warning"/> <!-- Keywords should be spaced correctly -->
|
<Rule Id="SA1000" Action="Warning"/> <!-- Keywords should be spaced correctly -->
|
||||||
<Rule Id="SA1001" Action="None"/> <!-- Commas should be spaced correctly -->
|
<Rule Id="SA1001" Action="None"/> <!-- Commas should be spaced correctly -->
|
||||||
@ -48,7 +49,7 @@
|
|||||||
<Rule Id="SA1106" Action="Warning"/> <!-- Code should not contain empty statements -->
|
<Rule Id="SA1106" Action="Warning"/> <!-- Code should not contain empty statements -->
|
||||||
<Rule Id="SA1107" Action="Warning"/> <!-- Code should not contain multiple statements on one line -->
|
<Rule Id="SA1107" Action="Warning"/> <!-- Code should not contain multiple statements on one line -->
|
||||||
<Rule Id="SA1108" Action="Warning"/> <!-- Block statements should not contain embedded comments -->
|
<Rule Id="SA1108" Action="Warning"/> <!-- Block statements should not contain embedded comments -->
|
||||||
<Rule Id="SA1109" Action="None"/> <!-- Block statements should not contain embedded regions -->
|
<Rule Id="SA1109" Action="Warning"/> <!-- Block statements should not contain embedded regions -->
|
||||||
<Rule Id="SA1110" Action="Warning"/> <!-- Opening parenthesis or bracket should be on declaration line -->
|
<Rule Id="SA1110" Action="Warning"/> <!-- Opening parenthesis or bracket should be on declaration line -->
|
||||||
<Rule Id="SA1111" Action="Warning"/> <!-- Closing parenthesis should be on line of last parameter -->
|
<Rule Id="SA1111" Action="Warning"/> <!-- Closing parenthesis should be on line of last parameter -->
|
||||||
<Rule Id="SA1112" Action="Warning"/> <!-- Closing parenthesis should be on line of opening parenthesis -->
|
<Rule Id="SA1112" Action="Warning"/> <!-- Closing parenthesis should be on line of opening parenthesis -->
|
||||||
@ -64,7 +65,7 @@
|
|||||||
<Rule Id="SA1123" Action="Warning"/> <!-- Do not place regions within elements -->
|
<Rule Id="SA1123" Action="Warning"/> <!-- Do not place regions within elements -->
|
||||||
<Rule Id="SA1124" Action="Warning"/> <!-- Do not use regions -->
|
<Rule Id="SA1124" Action="Warning"/> <!-- Do not use regions -->
|
||||||
<Rule Id="SA1125" Action="Warning"/> <!-- Use shorthand for nullable types -->
|
<Rule Id="SA1125" Action="Warning"/> <!-- Use shorthand for nullable types -->
|
||||||
<Rule Id="SA1126" Action="None"/> <!-- Prefix calls correctly -->
|
<Rule Id="SA1126" Action="Warning"/> <!-- Prefix calls correctly -->
|
||||||
<Rule Id="SA1127" Action="Warning"/> <!-- Generic type constraints should be on their own line -->
|
<Rule Id="SA1127" Action="Warning"/> <!-- Generic type constraints should be on their own line -->
|
||||||
<Rule Id="SA1128" Action="Warning"/> <!-- Put constructor initializers on their own line -->
|
<Rule Id="SA1128" Action="Warning"/> <!-- Put constructor initializers on their own line -->
|
||||||
<Rule Id="SA1129" Action="Warning"/> <!-- Do not use default value type constructor -->
|
<Rule Id="SA1129" Action="Warning"/> <!-- Do not use default value type constructor -->
|
||||||
@ -77,7 +78,7 @@
|
|||||||
<Rule Id="SA1136" Action="Warning"/> <!-- Enum values should be on separate lines -->
|
<Rule Id="SA1136" Action="Warning"/> <!-- Enum values should be on separate lines -->
|
||||||
<Rule Id="SA1137" Action="Warning"/> <!-- Elements should have the same indentation -->
|
<Rule Id="SA1137" Action="Warning"/> <!-- Elements should have the same indentation -->
|
||||||
<Rule Id="SA1139" Action="Warning"/> <!-- Use literal suffix notation instead of casting -->
|
<Rule Id="SA1139" Action="Warning"/> <!-- Use literal suffix notation instead of casting -->
|
||||||
<Rule Id="SX1101" Action="None"/> <!-- Do not prefix local calls with 'this.' -->
|
<Rule Id="SX1101" Action="Warning"/> <!-- Do not prefix local calls with 'this.' -->
|
||||||
</Rules>
|
</Rules>
|
||||||
|
|
||||||
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.OrderingRules">
|
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.OrderingRules">
|
||||||
@ -89,25 +90,20 @@
|
|||||||
<Rule Id="SA1205" Action="Warning"/> <!-- Partial elements should declare access -->
|
<Rule Id="SA1205" Action="Warning"/> <!-- Partial elements should declare access -->
|
||||||
<Rule Id="SA1206" Action="Warning"/> <!-- Declaration keywords should follow order -->
|
<Rule Id="SA1206" Action="Warning"/> <!-- Declaration keywords should follow order -->
|
||||||
<Rule Id="SA1207" Action="Warning"/> <!-- Protected should come before internal -->
|
<Rule Id="SA1207" Action="Warning"/> <!-- Protected should come before internal -->
|
||||||
<Rule Id="SA1208" Action="Warning"/> <!-- System using directives should be placed before other
|
<Rule Id="SA1208" Action="Warning"/> <!-- System using directives should be placed before other using directives -->
|
||||||
using directives -->
|
<Rule Id="SA1209" Action="Warning"/> <!-- Using alias directives should be placed after other using directives -->
|
||||||
<Rule Id="SA1209" Action="Warning"/> <!-- Using alias directives should be placed after other using
|
<Rule Id="SA1210" Action="Warning"/> <!-- Using directives should be ordered alphabetically by namespace -->
|
||||||
directives -->
|
<Rule Id="SA1211" Action="Warning"/> <!-- Using alias directives should be ordered alphabetically by alias name -->
|
||||||
<Rule Id="SA1210" Action="Warning"/> <!-- Using directives should be ordered alphabetically by
|
|
||||||
namespace -->
|
|
||||||
<Rule Id="SA1211" Action="Warning"/> <!-- Using alias directives should be ordered alphabetically by
|
|
||||||
alias name -->
|
|
||||||
<Rule Id="SA1212" Action="Warning"/> <!-- Property accessors should follow order -->
|
<Rule Id="SA1212" Action="Warning"/> <!-- Property accessors should follow order -->
|
||||||
<Rule Id="SA1213" Action="Warning"/> <!-- Event accessors should follow order -->
|
<Rule Id="SA1213" Action="Warning"/> <!-- Event accessors should follow order -->
|
||||||
<Rule Id="SA1214" Action="Warning"/> <!-- Readonly fields should appear before non-readonly fields -->
|
<Rule Id="SA1214" Action="Warning"/> <!-- Readonly fields should appear before non-readonly fields -->
|
||||||
<Rule Id="SA1216" Action="Warning"/> <!-- Using static directives should be placed at the correct
|
<Rule Id="SA1216" Action="Warning"/> <!-- Using static directives should be placed at the correct location -->
|
||||||
location -->
|
|
||||||
<Rule Id="SA1217" Action="Warning"/> <!-- Using static directives should be ordered alphabetically -->
|
<Rule Id="SA1217" Action="Warning"/> <!-- Using static directives should be ordered alphabetically -->
|
||||||
</Rules>
|
</Rules>
|
||||||
|
|
||||||
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.NamingRules">
|
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.NamingRules">
|
||||||
<Rule Id="SA1300" Action="Warning"/> <!-- Element should begin with upper-case letter -->
|
<Rule Id="SA1300" Action="Warning"/> <!-- Element should begin with upper-case letter -->
|
||||||
<Rule Id="SA1301" Action="None"/> <!-- Element should begin with lower-case letter -->
|
<Rule Id="SA1301" Action="Warning"/> <!-- Element should begin with lower-case letter -->
|
||||||
<Rule Id="SA1302" Action="Warning"/> <!-- Interface names should begin with I -->
|
<Rule Id="SA1302" Action="Warning"/> <!-- Interface names should begin with I -->
|
||||||
<Rule Id="SA1303" Action="Warning"/> <!-- Const field names should begin with upper-case letter -->
|
<Rule Id="SA1303" Action="Warning"/> <!-- Const field names should begin with upper-case letter -->
|
||||||
<Rule Id="SA1304" Action="Warning"/> <!-- Non-private readonly fields should begin with upper-case letter -->
|
<Rule Id="SA1304" Action="Warning"/> <!-- Non-private readonly fields should begin with upper-case letter -->
|
||||||
@ -121,8 +117,8 @@
|
|||||||
<Rule Id="SA1312" Action="Warning"/> <!-- Variable names should begin with lower-case letter -->
|
<Rule Id="SA1312" Action="Warning"/> <!-- Variable names should begin with lower-case letter -->
|
||||||
<Rule Id="SA1313" Action="None"/> <!-- Parameter names should begin with lower-case letter -->
|
<Rule Id="SA1313" Action="None"/> <!-- Parameter names should begin with lower-case letter -->
|
||||||
<Rule Id="SA1314" Action="Warning"/> <!-- Type parameter names should begin with T -->
|
<Rule Id="SA1314" Action="Warning"/> <!-- Type parameter names should begin with T -->
|
||||||
<Rule Id="SX1309" Action="None"/> <!-- Field names should begin with underscore -->
|
<Rule Id="SX1309" Action="Warning"/> <!-- Field names should begin with underscore -->
|
||||||
<Rule Id="SX1309S" Action="None"/> <!-- Static field names should begin with underscore -->
|
<Rule Id="SX1309S" Action="Warning"/> <!-- Static field names should begin with underscore -->
|
||||||
</Rules>
|
</Rules>
|
||||||
|
|
||||||
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.MaintainabilityRules">
|
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers.MaintainabilityRules">
|
||||||
@ -136,10 +132,9 @@
|
|||||||
<Rule Id="SA1406" Action="Warning"/> <!-- Debug.Fail should provide message text -->
|
<Rule Id="SA1406" Action="Warning"/> <!-- Debug.Fail should provide message text -->
|
||||||
<Rule Id="SA1407" Action="None"/> <!-- Arithmetic expressions should declare precedence -->
|
<Rule Id="SA1407" Action="None"/> <!-- Arithmetic expressions should declare precedence -->
|
||||||
<Rule Id="SA1408" Action="Warning"/> <!-- Conditional expressions should declare precedence -->
|
<Rule Id="SA1408" Action="Warning"/> <!-- Conditional expressions should declare precedence -->
|
||||||
<Rule Id="SA1409" Action="None"/> <!-- Remove unnecessary code -->
|
<Rule Id="SA1409" Action="Warning"/> <!-- Remove unnecessary code -->
|
||||||
<Rule Id="SA1410" Action="Warning"/> <!-- Remove delegate parenthesis when possible -->
|
<Rule Id="SA1410" Action="Warning"/> <!-- Remove delegate parenthesis when possible -->
|
||||||
<Rule Id="SA1411" Action="Warning"/> <!-- Attribute constructor should not use unnecessary
|
<Rule Id="SA1411" Action="Warning"/> <!-- Attribute constructor should not use unnecessary parenthesis -->
|
||||||
parenthesis -->
|
|
||||||
<Rule Id="SA1412" Action="None"/> <!-- Store files as UTF-8 with byte order mark -->
|
<Rule Id="SA1412" Action="None"/> <!-- Store files as UTF-8 with byte order mark -->
|
||||||
<Rule Id="SA1413" Action="None"/> <!-- Use trailing comma in multi-line initializers -->
|
<Rule Id="SA1413" Action="None"/> <!-- Use trailing comma in multi-line initializers -->
|
||||||
</Rules>
|
</Rules>
|
||||||
@ -151,24 +146,20 @@
|
|||||||
<Rule Id="SA1503" Action="None"/> <!-- Braces should not be omitted -->
|
<Rule Id="SA1503" Action="None"/> <!-- Braces should not be omitted -->
|
||||||
<Rule Id="SA1504" Action="Warning"/> <!-- All accessors should be single-line or multi-line -->
|
<Rule Id="SA1504" Action="Warning"/> <!-- All accessors should be single-line or multi-line -->
|
||||||
<Rule Id="SA1505" Action="Warning"/> <!-- Opening braces should not be followed by blank line -->
|
<Rule Id="SA1505" Action="Warning"/> <!-- Opening braces should not be followed by blank line -->
|
||||||
<Rule Id="SA1506" Action="Warning"/> <!-- Element documentation headers should not be followed by
|
<Rule Id="SA1506" Action="Warning"/> <!-- Element documentation headers should not be followed by blank line -->
|
||||||
blank line -->
|
|
||||||
<Rule Id="SA1507" Action="Warning"/> <!-- Code should not contain multiple blank lines in a row -->
|
<Rule Id="SA1507" Action="Warning"/> <!-- Code should not contain multiple blank lines in a row -->
|
||||||
<Rule Id="SA1508" Action="Warning"/> <!-- Closing braces should not be preceded by blank line -->
|
<Rule Id="SA1508" Action="Warning"/> <!-- Closing braces should not be preceded by blank line -->
|
||||||
<Rule Id="SA1509" Action="Warning"/> <!-- Opening braces should not be preceded by blank line -->
|
<Rule Id="SA1509" Action="Warning"/> <!-- Opening braces should not be preceded by blank line -->
|
||||||
<Rule Id="SA1510" Action="Warning"/> <!-- Chained statement blocks should not be preceded by blank
|
<Rule Id="SA1510" Action="Warning"/> <!-- Chained statement blocks should not be preceded by blank line -->
|
||||||
line -->
|
|
||||||
<Rule Id="SA1511" Action="Warning"/> <!-- While-do footer should not be preceded by blank line -->
|
<Rule Id="SA1511" Action="Warning"/> <!-- While-do footer should not be preceded by blank line -->
|
||||||
<Rule Id="SA1512" Action="Warning"/> <!-- Single-line comments should not be followed by blank line -->
|
<Rule Id="SA1512" Action="Warning"/> <!-- Single-line comments should not be followed by blank line -->
|
||||||
<Rule Id="SA1513" Action="Warning"/> <!-- Closing brace should be followed by blank line -->
|
<Rule Id="SA1513" Action="Warning"/> <!-- Closing brace should be followed by blank line -->
|
||||||
<Rule Id="SA1514" Action="Warning"/> <!-- Element documentation header should be preceded by blank
|
<Rule Id="SA1514" Action="Warning"/> <!-- Element documentation header should be preceded by blank line -->
|
||||||
line -->
|
|
||||||
<Rule Id="SA1515" Action="Warning"/> <!-- Single-line comment should be preceded by blank line -->
|
<Rule Id="SA1515" Action="Warning"/> <!-- Single-line comment should be preceded by blank line -->
|
||||||
<Rule Id="SA1516" Action="Warning"/> <!-- Elements should be separated by blank line -->
|
<Rule Id="SA1516" Action="Warning"/> <!-- Elements should be separated by blank line -->
|
||||||
<Rule Id="SA1517" Action="Warning"/> <!-- Code should not contain blank lines at start of file -->
|
<Rule Id="SA1517" Action="Warning"/> <!-- Code should not contain blank lines at start of file -->
|
||||||
<Rule Id="SA1518" Action="Warning"/> <!-- Use line endings correctly at end of file -->
|
<Rule Id="SA1518" Action="Warning"/> <!-- Use line endings correctly at end of file -->
|
||||||
<Rule Id="SA1519" Action="Warning"/> <!-- Braces should not be omitted from multi-line child
|
<Rule Id="SA1519" Action="Warning"/> <!-- Braces should not be omitted from multi-line child statement -->
|
||||||
statement -->
|
|
||||||
<Rule Id="SA1520" Action="Warning"/> <!-- Use braces consistently -->
|
<Rule Id="SA1520" Action="Warning"/> <!-- Use braces consistently -->
|
||||||
</Rules>
|
</Rules>
|
||||||
|
|
||||||
@ -176,63 +167,55 @@
|
|||||||
<Rule Id="SA1600" Action="None"/> <!-- Elements should be documented -->
|
<Rule Id="SA1600" Action="None"/> <!-- Elements should be documented -->
|
||||||
<Rule Id="SA1601" Action="None"/> <!-- Partial elements should be documented -->
|
<Rule Id="SA1601" Action="None"/> <!-- Partial elements should be documented -->
|
||||||
<Rule Id="SA1602" Action="None"/> <!-- Enumeration items should be documented -->
|
<Rule Id="SA1602" Action="None"/> <!-- Enumeration items should be documented -->
|
||||||
<Rule Id="SA1603" Action="None"/> <!-- Documentation should contain valid XML -->
|
<Rule Id="SA1603" Action="Warning"/> <!-- Documentation should contain valid XML -->
|
||||||
<Rule Id="SA1604" Action="Warning"/> <!-- Element documentation should have summary -->
|
<Rule Id="SA1604" Action="Warning"/> <!-- Element documentation should have summary -->
|
||||||
<Rule Id="SA1605" Action="Warning"/> <!-- Partial element documentation should have summary -->
|
<Rule Id="SA1605" Action="Warning"/> <!-- Partial element documentation should have summary -->
|
||||||
<Rule Id="SA1606" Action="Warning"/> <!-- Element documentation should have summary text -->
|
<Rule Id="SA1606" Action="Warning"/> <!-- Element documentation should have summary text -->
|
||||||
<Rule Id="SA1607" Action="Warning"/> <!-- Partial element documentation should have summary text -->
|
<Rule Id="SA1607" Action="Warning"/> <!-- Partial element documentation should have summary text -->
|
||||||
<Rule Id="SA1608" Action="Warning"/> <!-- Element documentation should not have default summary -->
|
<Rule Id="SA1608" Action="Warning"/> <!-- Element documentation should not have default summary -->
|
||||||
<Rule Id="SA1609" Action="None"/> <!-- Property documentation should have value -->
|
<Rule Id="SA1609" Action="Warning"/> <!-- Property documentation should have value -->
|
||||||
<Rule Id="SA1610" Action="Warning"/> <!-- Property documentation should have value text -->
|
<Rule Id="SA1610" Action="Warning"/> <!-- Property documentation should have value text -->
|
||||||
<Rule Id="SA1611" Action="None"/> <!-- Element parameters should be documented -->
|
<Rule Id="SA1611" Action="None"/> <!-- Element parameters should be documented -->
|
||||||
<Rule Id="SA1612" Action="Warning"/> <!-- Element parameter documentation should match element
|
<Rule Id="SA1612" Action="Warning"/> <!-- Element parameter documentation should match element parameters -->
|
||||||
parameters -->
|
<Rule Id="SA1613" Action="Warning"/> <!-- Element parameter documentation should declare parameter name -->
|
||||||
<Rule Id="SA1613" Action="Warning"/> <!-- Element parameter documentation should declare parameter
|
|
||||||
name -->
|
|
||||||
<Rule Id="SA1614" Action="Warning"/> <!-- Element parameter documentation should have text -->
|
<Rule Id="SA1614" Action="Warning"/> <!-- Element parameter documentation should have text -->
|
||||||
<Rule Id="SA1615" Action="None"/> <!-- Element return value should be documented -->
|
<Rule Id="SA1615" Action="None"/> <!-- Element return value should be documented -->
|
||||||
<Rule Id="SA1616" Action="Warning"/> <!-- Element return value documentation should have text -->
|
<Rule Id="SA1616" Action="Warning"/> <!-- Element return value documentation should have text -->
|
||||||
<Rule Id="SA1617" Action="Warning"/> <!-- Void return value should not be documented -->
|
<Rule Id="SA1617" Action="Warning"/> <!-- Void return value should not be documented -->
|
||||||
<Rule Id="SA1618" Action="None"/> <!-- Generic type parameters should be documented -->
|
<Rule Id="SA1618" Action="None"/> <!-- Generic type parameters should be documented -->
|
||||||
<Rule Id="SA1619" Action="None"/> <!-- Generic type parameters should be documented partial class -->
|
<Rule Id="SA1619" Action="None"/> <!-- Generic type parameters should be documented partial class -->
|
||||||
<Rule Id="SA1620" Action="Warning"/> <!-- Generic type parameter documentation should match type
|
<Rule Id="SA1620" Action="Warning"/> <!-- Generic type parameter documentation should match type parameters -->
|
||||||
parameters -->
|
<Rule Id="SA1621" Action="Warning"/> <!-- Generic type parameter documentation should declare parameter name -->
|
||||||
<Rule Id="SA1621" Action="Warning"/> <!-- Generic type parameter documentation should declare
|
|
||||||
parameter name -->
|
|
||||||
<Rule Id="SA1622" Action="Warning"/> <!-- Generic type parameter documentation should have text -->
|
<Rule Id="SA1622" Action="Warning"/> <!-- Generic type parameter documentation should have text -->
|
||||||
<Rule Id="SA1623" Action="Warning"/> <!-- Property summary documentation should match accessors -->
|
<Rule Id="SA1623" Action="Warning"/> <!-- Property summary documentation should match accessors -->
|
||||||
<Rule Id="SA1624" Action="Warning"/> <!-- Property summary documentation should omit accessor with
|
<Rule Id="SA1624" Action="Warning"/> <!-- Property summary documentation should omit accessor with restricted access -->
|
||||||
restricted access -->
|
|
||||||
<Rule Id="SA1625" Action="Warning"/> <!-- Element documentation should not be copied and pasted -->
|
<Rule Id="SA1625" Action="Warning"/> <!-- Element documentation should not be copied and pasted -->
|
||||||
<Rule Id="SA1626" Action="Warning"/> <!-- Single-line comments should not use documentation style
|
<Rule Id="SA1626" Action="Warning"/> <!-- Single-line comments should not use documentation style slashes -->
|
||||||
slashes -->
|
|
||||||
<Rule Id="SA1627" Action="Warning"/> <!-- Documentation text should not be empty -->
|
<Rule Id="SA1627" Action="Warning"/> <!-- Documentation text should not be empty -->
|
||||||
<Rule Id="SA1628" Action="None"/> <!-- Documentation text should begin with a capital letter -->
|
<Rule Id="SA1628" Action="Warning"/> <!-- Documentation text should begin with a capital letter -->
|
||||||
<Rule Id="SA1629" Action="Warning"/> <!-- Documentation text should end with a period -->
|
<Rule Id="SA1629" Action="Warning"/> <!-- Documentation text should end with a period -->
|
||||||
<Rule Id="SA1630" Action="None"/> <!-- Documentation text should contain whitespace -->
|
<Rule Id="SA1630" Action="Warning"/> <!-- Documentation text should contain whitespace -->
|
||||||
<Rule Id="SA1631" Action="None"/> <!-- Documentation should meet character percentage -->
|
<Rule Id="SA1631" Action="Warning"/> <!-- Documentation should meet character percentage -->
|
||||||
<Rule Id="SA1632" Action="None"/> <!-- Documentation text should meet minimum character length -->
|
<Rule Id="SA1632" Action="Warning"/> <!-- Documentation text should meet minimum character length -->
|
||||||
<Rule Id="SA1633" Action="None"/> <!-- File should have header -->
|
<Rule Id="SA1633" Action="None"/> <!-- File should have header -->
|
||||||
<Rule Id="SA1634" Action="Warning"/> <!-- File header should show copyright -->
|
<Rule Id="SA1634" Action="Warning"/> <!-- File header should show copyright -->
|
||||||
<Rule Id="SA1635" Action="Warning"/> <!-- File header should have copyright text -->
|
<Rule Id="SA1635" Action="Warning"/> <!-- File header should have copyright text -->
|
||||||
<Rule Id="SA1636" Action="Warning"/> <!-- File header copyright text should match -->
|
<Rule Id="SA1636" Action="Warning"/> <!-- File header copyright text should match -->
|
||||||
<Rule Id="SA1637" Action="Warning"/> <!-- File header should contain file name -->
|
<Rule Id="SA1637" Action="Warning"/> <!-- File header should contain file name -->
|
||||||
<Rule Id="SA1638" Action="Warning"/> <!-- File header file name documentation should match file name
|
<Rule Id="SA1638" Action="Warning"/> <!-- File header file name documentation should match file name -->
|
||||||
-->
|
|
||||||
<Rule Id="SA1639" Action="Warning"/> <!-- File header should have summary -->
|
<Rule Id="SA1639" Action="Warning"/> <!-- File header should have summary -->
|
||||||
<Rule Id="SA1640" Action="Warning"/> <!-- File header should have valid company text -->
|
<Rule Id="SA1640" Action="Warning"/> <!-- File header should have valid company text -->
|
||||||
<Rule Id="SA1641" Action="Warning"/> <!-- File header company name text should match -->
|
<Rule Id="SA1641" Action="Warning"/> <!-- File header company name text should match -->
|
||||||
<Rule Id="SA1642" Action="Warning"/> <!-- Constructor summary documentation should begin with
|
<Rule Id="SA1642" Action="Warning"/> <!-- Constructor summary documentation should begin with standard text -->
|
||||||
standard text -->
|
<Rule Id="SA1643" Action="Warning"/> <!-- Destructor summary documentation should begin with standard text -->
|
||||||
<Rule Id="SA1643" Action="Warning"/> <!-- Destructor summary documentation should begin with
|
<Rule Id="SA1644" Action="Warning"/> <!-- Documentation headers should not contain blank lines -->
|
||||||
standard text -->
|
<Rule Id="SA1645" Action="Warning"/> <!-- Included documentation file does not exist -->
|
||||||
<Rule Id="SA1644" Action="None"/> <!-- Documentation headers should not contain blank lines -->
|
<Rule Id="SA1646" Action="Warning"/> <!-- Included documentation XPath does not exist -->
|
||||||
<Rule Id="SA1645" Action="None"/> <!-- Included documentation file does not exist -->
|
<Rule Id="SA1647" Action="Warning"/> <!-- Include node does not contain valid file and path -->
|
||||||
<Rule Id="SA1646" Action="None"/> <!-- Included documentation XPath does not exist -->
|
|
||||||
<Rule Id="SA1647" Action="None"/> <!-- Include node does not contain valid file and path -->
|
|
||||||
<Rule Id="SA1648" Action="Warning"/> <!-- Inheritdoc should be used with inheriting class -->
|
<Rule Id="SA1648" Action="Warning"/> <!-- Inheritdoc should be used with inheriting class -->
|
||||||
<Rule Id="SA1649" Action="Warning"/> <!-- File name should match first type name -->
|
<Rule Id="SA1649" Action="Warning"/> <!-- File name should match first type name -->
|
||||||
<Rule Id="SA1650" Action="None"/> <!-- Element documentation should be spelled correctly -->
|
<Rule Id="SA1650" Action="Warning"/> <!-- Element documentation should be spelled correctly -->
|
||||||
<Rule Id="SA1651" Action="Warning"/> <!-- Do not use placeholder elements -->
|
<Rule Id="SA1651" Action="Warning"/> <!-- Do not use placeholder elements -->
|
||||||
|
|
||||||
</Rules>
|
</Rules>
|
||||||
</RuleSet>
|
</RuleSet>
|
1
dot.sln
1
dot.sln
@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "meta", "meta", "{AD79881E-7
|
|||||||
build.cake = build.cake
|
build.cake = build.cake
|
||||||
code-format.cmd = code-format.cmd
|
code-format.cmd = code-format.cmd
|
||||||
CodeCleanupOnSave.csx = CodeCleanupOnSave.csx
|
CodeCleanupOnSave.csx = CodeCleanupOnSave.csx
|
||||||
|
CodeQuality.props = CodeQuality.props
|
||||||
Directory.Build.props = Directory.Build.props
|
Directory.Build.props = Directory.Build.props
|
||||||
dot.sln.DotSettings = dot.sln.DotSettings
|
dot.sln.DotSettings = dot.sln.DotSettings
|
||||||
dot.sln.DotSettings.user = dot.sln.DotSettings.user
|
dot.sln.DotSettings.user = dot.sln.DotSettings.user
|
||||||
|
@ -2,13 +2,10 @@
|
|||||||
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
||||||
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xml:space="preserve">
|
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xml:space="preserve">
|
||||||
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_CODE/@EntryValue">1</s:Int64>
|
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_CODE/@EntryValue">1</s:Int64>
|
||||||
<s:Int64
|
<s:Int64 x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue">1</s:Int64>
|
||||||
x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/KEEP_BLANK_LINES_IN_DECLARATIONS/@EntryValue">1</s:Int64>
|
|
||||||
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_FOR/@EntryValue">Required</s:String>
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_FOR/@EntryValue">Required</s:String>
|
||||||
<s:String
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_FOREACH/@EntryValue">Required</s:String>
|
||||||
x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_FOREACH/@EntryValue">Required</s:String>
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_IFELSE/@EntryValue">Required</s:String>
|
||||||
<s:String
|
|
||||||
x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_IFELSE/@EntryValue">Required</s:String>
|
|
||||||
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_WHILE/@EntryValue">Required</s:String>
|
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_WHILE/@EntryValue">Required</s:String>
|
||||||
<s:String x:Key="/Default/CodeStyle/CSharpFileLayoutPatterns/Pattern/@EntryValue"><?xml version="1.0" encoding="utf-16"?>
|
<s:String x:Key="/Default/CodeStyle/CSharpFileLayoutPatterns/Pattern/@EntryValue"><?xml version="1.0" encoding="utf-16"?>
|
||||||
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
|
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns">
|
||||||
@ -52,10 +49,8 @@
|
|||||||
</Patterns></s:String>
|
</Patterns></s:String>
|
||||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=Constants/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /></s:String>
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=Constants/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AA_BB" /></s:String>
|
||||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateConstants/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="AA_BB" /></s:String>
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateConstants/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="AA_BB" /></s:String>
|
||||||
<s:String
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></s:String>
|
||||||
x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateStaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></s:String>
|
|
||||||
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=StaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String>
|
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=StaticReadonly/@EntryIndexedValue"><Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /></s:String>
|
||||||
<s:Boolean x:Key="/Default/ReSpeller/ReSpellerEnabled/@EntryValue">False</s:Boolean>
|
<s:Boolean x:Key="/Default/ReSpeller/ReSpellerEnabled/@EntryValue">False</s:Boolean>
|
||||||
<s:String
|
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=TooWideLocalVariableScope/@EntryIndexedValue">HINT</s:String>
|
||||||
x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=TooWideLocalVariableScope/@EntryIndexedValue">HINT</s:String>
|
|
||||||
</wpf:ResourceDictionary>
|
</wpf:ResourceDictionary>
|
@ -28,6 +28,9 @@ internal sealed class TaskStatusColumn : ProgressColumn
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the alignment of the task description.
|
/// Gets or sets the alignment of the task description.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The alignment of the task description.
|
||||||
|
/// </value>
|
||||||
public Justify Alignment { get; set; } = Justify.Right;
|
public Justify Alignment { get; set; } = Justify.Right;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -135,7 +135,6 @@
|
|||||||
<value>密码长度</value>
|
<value>密码长度</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
|
|
||||||
<data name="PwdGenerateTypes" xml:space="preserve">
|
<data name="PwdGenerateTypes" xml:space="preserve">
|
||||||
<value>BitSet 1:[0-9],2:[a-z],4:[A-Z],8:[ascii.0x21-0x2F]</value>
|
<value>BitSet 1:[0-9],2:[a-z],4:[A-Z],8:[ascii.0x21-0x2F]</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -68,7 +68,8 @@ namespace Dot.Lang {
|
|||||||
<#
|
<#
|
||||||
var xml = new XmlDocument();
|
var xml = new XmlDocument();
|
||||||
xml.Load("Str.resx");
|
xml.Load("Str.resx");
|
||||||
foreach (XmlNode data in xml.SelectNodes("//root/data")!) {
|
foreach (XmlNode data in xml.SelectNodes("//root/data")!)
|
||||||
|
{
|
||||||
#>
|
#>
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <#= data.SelectSingleNode("value")?.InnerText #>
|
/// <#= data.SelectSingleNode("value")?.InnerText #>
|
||||||
|
@ -10,6 +10,9 @@ internal sealed class TaskResultColumn : ProgressColumn
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the alignment of the task description.
|
/// Gets or sets the alignment of the task description.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The alignment of the task description.
|
||||||
|
/// </value>
|
||||||
public Justify Alignment { get; set; } = Justify.Right;
|
public Justify Alignment { get; set; } = Justify.Right;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -27,6 +27,9 @@ internal sealed class TaskStatusColumn : ProgressColumn
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the alignment of the task description.
|
/// Gets or sets the alignment of the task description.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The alignment of the task description.
|
||||||
|
/// </value>
|
||||||
public Justify Alignment { get; set; } = Justify.Right;
|
public Justify Alignment { get; set; } = Justify.Right;
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
@ -1,19 +1,12 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<TargetFrameworks>net7.0-windows;net7.0</TargetFrameworks>
|
|
||||||
<UseWindowsForms Condition="'$(TargetFramework)' == 'net7.0-windows'">true</UseWindowsForms>
|
|
||||||
<RootNamespace>Dot</RootNamespace>
|
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<OutputType>Exe</OutputType>
|
||||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
<RootNamespace>Dot</RootNamespace>
|
||||||
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
|
<TargetFrameworks>net7.0-windows;net7.0</TargetFrameworks>
|
||||||
<MSBuildTreatWarningsAsErrors>true</MSBuildTreatWarningsAsErrors>
|
<UseWindowsForms Condition="'$(TargetFramework)' == 'net7.0-windows'">true</UseWindowsForms>
|
||||||
<MSBuildWarningsAsErrors>true</MSBuildWarningsAsErrors>
|
|
||||||
<WarningsAsErrors>true</WarningsAsErrors>
|
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
||||||
<CodeAnalysisRuleSet>../StyleCopAnalyzers.ruleset</CodeAnalysisRuleSet>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0-windows'">
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net7.0-windows'">
|
||||||
<DefineConstants>$(DefineConstants);NET7_0_WINDOWS</DefineConstants>
|
<DefineConstants>$(DefineConstants);NET7_0_WINDOWS</DefineConstants>
|
||||||
@ -22,10 +15,6 @@
|
|||||||
<PackageReference Include="NSExt" Version="1.0.9-alpha.0.1"/>
|
<PackageReference Include="NSExt" Version="1.0.9-alpha.0.1"/>
|
||||||
<PackageReference Include="Spectre.Console.Cli.NS" Version="0.45.1-preview.0.48"/>
|
<PackageReference Include="Spectre.Console.Cli.NS" Version="0.45.1-preview.0.48"/>
|
||||||
<PackageReference Include="Spectre.Console.NS" Version="0.45.1-preview.0.48"/>
|
<PackageReference Include="Spectre.Console.NS" Version="0.45.1-preview.0.48"/>
|
||||||
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
||||||
</PackageReference>
|
|
||||||
<PackageReference Condition="'$(TargetFramework)' == 'net7.0-windows'" Include="TextCopy" Version="6.2.0"/>
|
<PackageReference Condition="'$(TargetFramework)' == 'net7.0-windows'" Include="TextCopy" Version="6.2.0"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
@ -34,5 +23,6 @@
|
|||||||
<LastGenOutput>Str.Designer.cs</LastGenOutput>
|
<LastGenOutput>Str.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<Import Project="../CodeQuality.props"/>
|
||||||
<Import Project="../GenerateResx.targets"/>
|
<Import Project="../GenerateResx.targets"/>
|
||||||
</Project>
|
</Project>
|
Loading…
x
Reference in New Issue
Block a user