From c4fcd441466ebb29a01ed389648463201826effc Mon Sep 17 00:00:00 2001 From: Riccardo De Agostini Date: Fri, 1 Apr 2022 10:20:43 +0200 Subject: [PATCH] Use VS2022; use .NET 6; update code style rules. --- .globalconfig | 418 +++++++++ Cecil.XmlDocNames.sln | 23 +- Cecil.XmlDocNames.sln.DotSettings | 795 +++++++++++------- .../Cecil.XmlDocNames.csproj | 3 +- stylecop.json | 15 +- .../ExampleAssembly/ExampleAssembly.csproj | 12 +- .../Cecil.XmlDocNames.Tests.csproj | 9 +- tests/Common.targets | 6 +- 8 files changed, 939 insertions(+), 342 deletions(-) create mode 100644 .globalconfig diff --git a/.globalconfig b/.globalconfig new file mode 100644 index 0000000..9b7cf38 --- /dev/null +++ b/.globalconfig @@ -0,0 +1,418 @@ +# Global AnalyzerConfig file +# See https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/configuration-files#global-analyzerconfig + +is_global = true + +#### .NET Coding Conventions #### + +dotnet_style_operator_placement_when_wrapping = beginning_of_line + +# Organize usings +dotnet_separate_import_directive_groups = false +dotnet_sort_system_directives_first = true + +# this. and Me. preferences +dotnet_style_qualification_for_event = false:suggestion +dotnet_style_qualification_for_field = false:suggestion +dotnet_style_qualification_for_method = false:suggestion +dotnet_style_qualification_for_property = false:suggestion + +# Language keywords vs BCL types preferences +dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion +dotnet_style_predefined_type_for_member_access = true:suggestion + +# Parentheses preferences +dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:suggestion +dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:suggestion +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion +dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion + +# Modifier preferences +dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent + +# Expression-level preferences +dotnet_style_coalesce_expression = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_explicit_tuple_names = true:warning +dotnet_style_null_propagation = true:suggestion +dotnet_style_object_initializer = true:suggestion +dotnet_style_prefer_auto_properties = true:suggestion +dotnet_style_prefer_compound_assignment = true:suggestion +dotnet_style_prefer_simplified_boolean_expressions = true:suggestion +dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion +dotnet_style_prefer_conditional_expression_over_return = false:suggestion +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_inferred_tuple_names = true:suggestion +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion +dotnet_style_prefer_simplified_interpolation = true:suggestion + +# Field preferences +dotnet_style_readonly_field = true:suggestion + +# Parameter preferences +dotnet_code_quality_unused_parameters = non_public:suggestion + +#### C# Coding Conventions #### + +# Namespace declarations +csharp_style_namespace_declarations = file_scoped:warning + +# var preferences +csharp_style_var_elsewhere = true:suggestion +csharp_style_var_for_built_in_types = true:suggestion +csharp_style_var_when_type_is_apparent = true:suggestion + +# Expression-bodied members +csharp_style_expression_bodied_accessors = true:suggestion +csharp_style_expression_bodied_constructors = false:suggestion +csharp_style_expression_bodied_indexers = true:suggestion +csharp_style_expression_bodied_lambdas = true:suggestion +csharp_style_expression_bodied_local_functions = when_on_single_line:suggestion +csharp_style_expression_bodied_methods = true:suggestion +csharp_style_expression_bodied_operators = when_on_single_line:suggestion +csharp_style_expression_bodied_properties = true:suggestion + +# Pattern matching preferences +csharp_style_pattern_matching_over_as_with_null_check = true:suggestion +csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion +csharp_style_prefer_switch_expression = true:suggestion +csharp_style_prefer_not_pattern = true:suggestion + +# Null-checking preferences +csharp_style_conditional_delegate_call = true:suggestion + +# Modifier preferences +csharp_prefer_static_local_function = true:suggestion +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async + +# Code-block preferences +csharp_prefer_braces = when_multiline:suggestion +csharp_prefer_simple_using_statement = true:suggestion + +# Expression-level preferences +csharp_prefer_simple_default_expression = true:suggestion +csharp_style_deconstructed_variable_declaration = true:suggestion +csharp_style_inlined_variable_declaration = true:suggestion +csharp_style_pattern_local_over_anonymous_function = true:suggestion +csharp_style_prefer_index_operator = true:suggestion +csharp_style_prefer_range_operator = true:suggestion +csharp_style_throw_expression = true:suggestion +csharp_style_unused_value_assignment_preference = discard_variable:suggestion +csharp_style_unused_value_expression_statement_preference = discard_variable:suggestion + +# 'using' directive preferences +csharp_using_directive_placement = outside_namespace:warning + +#### C# Formatting Rules #### + +# New line preferences +csharp_new_line_before_catch = true +csharp_new_line_before_else = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_open_brace = types,anonymous_types,anonymous_methods,local_functions,methods,indexers,events,properties,accessors,control_blocks +csharp_new_line_between_query_expression_clauses = true + +# Indentation preferences +csharp_indent_block_contents = true +csharp_indent_braces = false +csharp_indent_case_contents = true +csharp_indent_case_contents_when_block = true +csharp_indent_labels = one_less_than_current +csharp_indent_switch_labels = true + +# Space preferences +csharp_space_after_cast = false +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_after_comma = true +csharp_space_after_dot = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_after_semicolon_in_for_statement = true +csharp_space_around_binary_operators = before_and_after +csharp_space_around_declaration_statements = false +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_before_comma = false +csharp_space_before_dot = false +csharp_space_before_open_square_brackets = false +csharp_space_before_semicolon_in_for_statement = false +csharp_space_between_empty_square_brackets = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_between_method_call_parameter_list_parentheses = false +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false +csharp_space_between_method_declaration_name_and_open_parenthesis = false +csharp_space_between_method_declaration_parameter_list_parentheses = false +csharp_space_between_parentheses = false +csharp_space_between_square_brackets = false + +# Wrapping preferences +csharp_preserve_single_line_blocks = true +csharp_preserve_single_line_statements = false + +#### Naming styles #### + +# Naming rules + +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i + +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.types_should_be_pascal_case.symbols = types +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case + +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = silent +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case + +# Symbol specifications + +dotnet_naming_symbols.interface.applicable_kinds = interface +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal +dotnet_naming_symbols.interface.required_modifiers = + +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal +dotnet_naming_symbols.types.required_modifiers = + +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal +dotnet_naming_symbols.non_field_members.required_modifiers = + +# Naming styles + +dotnet_naming_style.pascal_case.required_prefix = +dotnet_naming_style.pascal_case.required_suffix = +dotnet_naming_style.pascal_case.word_separator = +dotnet_naming_style.pascal_case.capitalization = pascal_case + +dotnet_naming_style.begins_with_i.required_prefix = I +dotnet_naming_style.begins_with_i.required_suffix = +dotnet_naming_style.begins_with_i.word_separator = +dotnet_naming_style.begins_with_i.capitalization = pascal_case + +### Miscellaneous code analysis configuration + +dotnet_diagnostic.IDE0043.severity = warning +dotnet_diagnostic.IDE0076.severity = warning +dotnet_diagnostic.IDE0077.severity = warning +dotnet_diagnostic.CA1000.severity = silent +dotnet_diagnostic.CA1001.severity = warning +dotnet_diagnostic.CA1032.severity = suggestion +dotnet_diagnostic.CA1070.severity = warning +dotnet_diagnostic.CA1047.severity = warning +dotnet_diagnostic.CA1303.severity = none # CA1303: Do not pass literals as localized parameters +dotnet_code_quality.CA1303.use_naming_heuristic = false +dotnet_code_quality.CA1062.exclude_extension_method_this_parameter = true # Extension methods: null check may be skipped on "this" parameter +dotnet_code_quality.dispose_ownership_transfer_at_constructor = true # Disposables passed to a constructor must be disposed by the constructed object + +### StyleCop Analyzers rules ### + +# StyleCop Analyzers - Special rules +dotnet_diagnostic.SA0001.severity = warning # XML comment analysis disabled +dotnet_diagnostic.SA0002.severity = warning # Invalid settings file + +# StyleCop Analyzers - Spacing rules +dotnet_diagnostic.SA1000.severity = warning # Keywords should be spaced correctly +dotnet_diagnostic.SA1001.severity = warning # Commas should be spaced correctly +dotnet_diagnostic.SA1002.severity = warning # Semicolons should be spaced correctly +dotnet_diagnostic.SA1003.severity = warning # Symbols should be spaced correctly +dotnet_diagnostic.SA1004.severity = warning # Documentation lines should begin with single space +dotnet_diagnostic.SA1005.severity = warning # Single line comments should begin with single space +dotnet_diagnostic.SA1006.severity = warning # Preprocessor keywords should not be preceded by space +dotnet_diagnostic.SA1007.severity = warning # Operator keyword should be followed by space +dotnet_diagnostic.SA1008.severity = warning # Opening parenthesis should be spaced correctly +dotnet_diagnostic.SA1009.severity = warning # Closing parenthesis should be spaced correctly +dotnet_diagnostic.SA1010.severity = warning # Opening square brackets should be spaced correctly +dotnet_diagnostic.SA1011.severity = warning # Closing square brackets should be spaced correctly +dotnet_diagnostic.SA1012.severity = warning # Opening braces should be spaced correctly +dotnet_diagnostic.SA1013.severity = warning # Closing braces should be spaced correctly +dotnet_diagnostic.SA1014.severity = warning # Opening generic brackets should be spaced correctly +dotnet_diagnostic.SA1015.severity = warning # Closing generic brackets should be spaced correctly +dotnet_diagnostic.SA1016.severity = warning # Opening attribute brackets should be spaced correctly +dotnet_diagnostic.SA1017.severity = warning # Closing attribute brackets should be spaced correctly +dotnet_diagnostic.SA1018.severity = warning # Nullable type symbols should be spaced correctly +dotnet_diagnostic.SA1019.severity = warning # Member access symbols should be spaced correctly +dotnet_diagnostic.SA1020.severity = warning # Increment decrement symbols should be spaced correctly +dotnet_diagnostic.SA1021.severity = warning # Negative signs should be spaced correctly +dotnet_diagnostic.SA1022.severity = warning # Positive signs should be spaced correctly +dotnet_diagnostic.SA1023.severity = warning # Dereference and access of symbols should be spaced correctly +dotnet_diagnostic.SA1024.severity = warning # Colons should be spaced correctly +dotnet_diagnostic.SA1025.severity = warning # Code should not contain multiple whitespace in a row +dotnet_diagnostic.SA1026.severity = warning # Code should not contain space after new or stackalloc keyword in implicitly typed array allocation +dotnet_diagnostic.SA1027.severity = warning # Use tabs correctly +dotnet_diagnostic.SA1028.severity = warning # Code should not contain trailing whitespace + +# StyleCop Analyzers - Readability rules +dotnet_diagnostic.SA1100.severity = warning # Do not prefix calls with base unless local implementation exists +dotnet_diagnostic.SA1101.severity = none # Prefix local calls with this +dotnet_diagnostic.SX1101.severity = warning # Do not prefix local calls with this +dotnet_diagnostic.SA1102.severity = warning # Query clause should follow previous clause +dotnet_diagnostic.SA1103.severity = warning # Query clauses should be on separate lines or all on one line +dotnet_diagnostic.SA1104.severity = warning # Query clause should begin on new line when previous clause spans multiple lines +dotnet_diagnostic.SA1105.severity = warning # Query clauses spanning multiple lines should begin on own line +dotnet_diagnostic.SA1106.severity = warning # Code should not contain empty statements +dotnet_diagnostic.SA1107.severity = warning # Code should not contain multiple statements on one line +dotnet_diagnostic.SA1108.severity = warning # Block statements should not contain embedded comments +dotnet_diagnostic.SA1109.severity = warning # Block statements should not contain embedded regions +dotnet_diagnostic.SA1110.severity = warning # Opening parenthesis or bracket should be on declaration line +dotnet_diagnostic.SA1111.severity = warning # Closing parenthesis should be on line of last parameter +dotnet_diagnostic.SA1112.severity = warning # Closing parenthesis should be on line of opening parenthesis +dotnet_diagnostic.SA1113.severity = warning # Comma should be on the same line as previous parameter +dotnet_diagnostic.SA1114.severity = warning # Parameter list should follow declaration +dotnet_diagnostic.SA1115.severity = warning # Parameter should follow comma +dotnet_diagnostic.SA1116.severity = warning # Split parameters should start on line after declaration +dotnet_diagnostic.SA1117.severity = warning # Parameters should be on same line or separate lines +dotnet_diagnostic.SA1118.severity = warning # Parameter should not span multiple lines +dotnet_diagnostic.SA1120.severity = warning # Comments should contain text +dotnet_diagnostic.SA1121.severity = warning # Use built-in type alias +dotnet_diagnostic.SA1122.severity = warning # Use string.Empty for empty strings +dotnet_diagnostic.SA1123.severity = warning # Do not place regions within elements +dotnet_diagnostic.SA1124.severity = warning # Do not use regions +dotnet_diagnostic.SA1125.severity = warning # Use shorthand for nullable types +dotnet_diagnostic.SA1126.severity = warning # Prefix calls correctly +dotnet_diagnostic.SA1127.severity = warning # Generic type constraints should be on their own line +dotnet_diagnostic.SA1128.severity = warning # Put constructor initializers on their own line +dotnet_diagnostic.SA1129.severity = warning # Do not use default value type constructor +dotnet_diagnostic.SA1130.severity = warning # Use lambda syntax +dotnet_diagnostic.SA1131.severity = warning # Use readable conditions +dotnet_diagnostic.SA1132.severity = warning # Do not combine fields +dotnet_diagnostic.SA1133.severity = warning # Do not combine attributes +dotnet_diagnostic.SA1134.severity = warning # Attributes should not share line +dotnet_diagnostic.SA1135.severity = warning # Using directives should be qualified +dotnet_diagnostic.SA1136.severity = warning # Enum values should be on separate lines +dotnet_diagnostic.SA1137.severity = warning # Elements should have the same indentation +dotnet_diagnostic.SA1139.severity = warning # Use literal suffix notation instead of casting + +# StyleCop Analyzers - Ordering rules +dotnet_diagnostic.SA1200.severity = warning # Using directives should be placed correctly +dotnet_diagnostic.SA1201.severity = warning # Elements should appear in the correct order +dotnet_diagnostic.SA1202.severity = warning # Elements should be ordered by access +dotnet_diagnostic.SA1203.severity = warning # Constants should appear before fields +dotnet_diagnostic.SA1204.severity = warning # Static elements should appear before instance elements +dotnet_diagnostic.SA1205.severity = none # Partial elements should declare access +dotnet_diagnostic.SA1206.severity = warning # Declaration keywords should follow order +dotnet_diagnostic.SA1207.severity = warning # Protected should come before internal +dotnet_diagnostic.SA1208.severity = warning # System using directives should be placed before other using directives +dotnet_diagnostic.SA1209.severity = warning # Using alias directives should be placed after other using directives +dotnet_diagnostic.SA1210.severity = warning # Using directives should be ordered alphabetically by namespace +dotnet_diagnostic.SA1211.severity = warning # Using alias directives should be ordered alphabetically by alias name +dotnet_diagnostic.SA1212.severity = warning # Property accessors should follow order +dotnet_diagnostic.SA1213.severity = warning # Event accessors should follow order +dotnet_diagnostic.SA1214.severity = warning # Readonly fields should appear before non-readonly fields +dotnet_diagnostic.SA1216.severity = warning # Using static directives should be placed at the correct location +dotnet_diagnostic.SA1217.severity = warning # Using static directives should be ordered alphabetically + +# StyleCop Analyzers - Naming rules +dotnet_diagnostic.SA1300.severity = warning # Element should begin with upper-case letter +dotnet_diagnostic.SA1301.severity = warning # Element should begin with lower-case letter +dotnet_diagnostic.SA1302.severity = warning # Interface names should begin with I +dotnet_diagnostic.SA1303.severity = warning # Const field names should begin with upper-case letter +dotnet_diagnostic.SA1304.severity = warning # Non-private readonly fields should begin with upper-case letter +dotnet_diagnostic.SA1305.severity = warning # Field names should not use Hungarian notation +dotnet_diagnostic.SA1306.severity = warning # Field names should begin with lower-case letter +dotnet_diagnostic.SA1307.severity = warning # Accessible fields should begin with upper-case letter +dotnet_diagnostic.SA1308.severity = warning # Variable names should not be prefixed +dotnet_diagnostic.SA1309.severity = none # Private instance field names should not begin with underscore +dotnet_diagnostic.SX1309.severity = warning # Private instance field names should begin with underscore +dotnet_diagnostic.SX1309S.severity = none # Static field names should begin with underscore +dotnet_diagnostic.SA1310.severity = warning # Field names should not contain underscore +dotnet_diagnostic.SA1311.severity = warning # Static readonly fields should begin with upper-case letter +dotnet_diagnostic.SA1312.severity = warning # Variable names should begin with lower-case letter +dotnet_diagnostic.SA1313.severity = warning # Parameter names should begin with lower-case letter +dotnet_diagnostic.SA1314.severity = warning # Type parameter names should begin with T + +# StyleCop Analyzers - Maintainability rules +dotnet_diagnostic.SA1119.severity = warning # Statement should not use unnecessary parenthesis +dotnet_diagnostic.SA1400.severity = warning # Access modifier should be declared +dotnet_diagnostic.SA1401.severity = warning # Fields should be private +dotnet_diagnostic.SA1402.severity = warning # File may only contain a single type +dotnet_diagnostic.SA1403.severity = warning # File may only contain a single namespace +dotnet_diagnostic.SA1404.severity = warning # Code analysis suppression should have justification +dotnet_diagnostic.SA1405.severity = warning # Debug.Assert should provide message text +dotnet_diagnostic.SA1406.severity = warning # Debug.Fail should provide message text +dotnet_diagnostic.SA1407.severity = none # Arithmetic expressions should declare precedence +dotnet_diagnostic.SA1408.severity = warning # Conditional expressions should declare precedence +dotnet_diagnostic.SA1409.severity = none # Remove unnecessary code +dotnet_diagnostic.SA1410.severity = warning # Remove delegate parenthesis when possible +dotnet_diagnostic.SA1411.severity = warning # Attribute constructor should not use unnecessary parenthesis +dotnet_diagnostic.SA1412.severity = warning # Store files as UTF-8 with byte order mark +dotnet_diagnostic.SA1413.severity = warning # Use trailing comma in multi-line initializers + +# StyleCop Analyzers - Layout rules +dotnet_diagnostic.SA1500.severity = warning # Braces for multi-line statements should not share line +dotnet_diagnostic.SA1501.severity = warning # Statement should not be on a single line +dotnet_diagnostic.SA1502.severity = warning # Element should not be on a single line +dotnet_diagnostic.SA1503.severity = warning # Braces should not be omitted +dotnet_diagnostic.SA1504.severity = warning # All accessors should be single-line or multi-line +dotnet_diagnostic.SA1505.severity = warning # Opening braces should not be followed by blank line +dotnet_diagnostic.SA1506.severity = warning # Element documentation headers should not be followed by blank line +dotnet_diagnostic.SA1507.severity = warning # Code should not contain multiple blank lines in a row +dotnet_diagnostic.SA1508.severity = warning # Closing braces should not be preceded by blank line +dotnet_diagnostic.SA1509.severity = warning # Opening braces should not be preceded by blank line +dotnet_diagnostic.SA1510.severity = warning # Chained statement blocks should not be preceded by blank line +dotnet_diagnostic.SA1511.severity = warning # While-do footer should not be preceded by blank line +dotnet_diagnostic.SA1512.severity = warning # Single-line comments should not be followed by blank line +dotnet_diagnostic.SA1513.severity = warning # Closing brace should be followed by blank line +dotnet_diagnostic.SA1514.severity = warning # Element documentation header should be preceded by blank line +dotnet_diagnostic.SA1515.severity = warning # Single-line comment should be preceded by blank line +dotnet_diagnostic.SA1516.severity = none # Elements should be separated by blank line +dotnet_diagnostic.SA1517.severity = warning # Code should not contain blank lines at start of file +dotnet_diagnostic.SA1518.severity = warning # Use line endings correctly at end of file +dotnet_diagnostic.SA1519.severity = warning # Braces should not be omitted from multi-line child statement +dotnet_diagnostic.SA1520.severity = warning # Use braces consistently + +# StyleCop Analyzers - Documentation rules +dotnet_diagnostic.SA1600.severity = warning # Elements should be documented +dotnet_diagnostic.SA1601.severity = none # Partial elements should be documented +dotnet_diagnostic.SA1602.severity = warning # Enumeration items should be documented +dotnet_diagnostic.SA1603.severity = warning # Documentation should contain valid XML +dotnet_diagnostic.SA1604.severity = warning # Element documentation should have summary +dotnet_diagnostic.SA1605.severity = warning # Partial element documentation should have summary +dotnet_diagnostic.SA1606.severity = warning # Element documentation should have summary text +dotnet_diagnostic.SA1607.severity = warning # Partial element documentation should have summary text +dotnet_diagnostic.SA1608.severity = warning # Element documentation should not have default summary +dotnet_diagnostic.SA1609.severity = none # Property documentation should have value +dotnet_diagnostic.SA1610.severity = none # Property documentation should have value text +dotnet_diagnostic.SA1611.severity = warning # Element parameters should be documented +dotnet_diagnostic.SA1612.severity = warning # Element parameter documentation should match element parameters +dotnet_diagnostic.SA1613.severity = warning # Element parameter documentation should declare parameter name +dotnet_diagnostic.SA1614.severity = warning # Element parameter documentation should have text +dotnet_diagnostic.SA1615.severity = warning # Element return value should be documented +dotnet_diagnostic.SA1616.severity = warning # Element return value documentation should have text +dotnet_diagnostic.SA1617.severity = warning # Void return value should not be documented +dotnet_diagnostic.SA1618.severity = warning # Generic type parameters should be documented +dotnet_diagnostic.SA1619.severity = warning # Generic type parameters should be documented partial class +dotnet_diagnostic.SA1620.severity = warning # Generic type parameter documentation should match type parameters +dotnet_diagnostic.SA1621.severity = warning # Generic type parameter documentation should declare parameter name +dotnet_diagnostic.SA1622.severity = warning # Generic type parameter documentation should have text +dotnet_diagnostic.SA1623.severity = warning # Property summary documentation should match accessors +dotnet_diagnostic.SA1624.severity = warning # Property summary documentation should omit accessor with restricted access +dotnet_diagnostic.SA1625.severity = warning # Element documentation should not be copied and pasted +dotnet_diagnostic.SA1626.severity = warning # Single-line comments should not use documentation style slashes +dotnet_diagnostic.SA1627.severity = warning # Documentation text should not be empty +dotnet_diagnostic.SA1628.severity = warning # Documentation text should begin with a capital letter +dotnet_diagnostic.SA1629.severity = warning # Documentation text should end with a period +dotnet_diagnostic.SA1630.severity = warning # Documentation text should contain whitespace +dotnet_diagnostic.SA1631.severity = none # Documentation should meet character percentage +dotnet_diagnostic.SA1632.severity = none # Documentation text should meet minimum character length +dotnet_diagnostic.SA1633.severity = warning # File should have header +dotnet_diagnostic.SA1634.severity = warning # File header should show copyright +dotnet_diagnostic.SA1635.severity = warning # File header should have copyright text +dotnet_diagnostic.SA1636.severity = warning # File header copyright text should match +dotnet_diagnostic.SA1637.severity = warning # File header should contain file name +dotnet_diagnostic.SA1638.severity = warning # File header file name documentation should match file name +dotnet_diagnostic.SA1639.severity = warning # File header should have summary +dotnet_diagnostic.SA1640.severity = warning # File header should have valid company text +dotnet_diagnostic.SA1641.severity = warning # File header company name text should match +dotnet_diagnostic.SA1642.severity = warning # Constructor summary documentation should begin with standard text +dotnet_diagnostic.SA1643.severity = warning # Destructor summary documentation should begin with standard text +dotnet_diagnostic.SA1644.severity = warning # Documentation headers should not contain blank lines +dotnet_diagnostic.SA1645.severity = warning # Included documentation file does not exist +dotnet_diagnostic.SA1646.severity = warning # Included documentation XPath does not exist +dotnet_diagnostic.SA1647.severity = warning # Include node does not contain valid file and path +dotnet_diagnostic.SA1648.severity = warning # Inheritdoc should be used with inheriting class +dotnet_diagnostic.SA1649.severity = warning # File name should match first type name +dotnet_diagnostic.SA1650.severity = warning # Element documentation should be spelled correctly +dotnet_diagnostic.SA1651.severity = warning # Do not use placeholder elements diff --git a/Cecil.XmlDocNames.sln b/Cecil.XmlDocNames.sln index d1e3241..6897c77 100644 --- a/Cecil.XmlDocNames.sln +++ b/Cecil.XmlDocNames.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29613.14 +# Visual Studio Version 17 +VisualStudioVersion = 17.0.32014.148 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cecil.XmlDocNames", "src\Cecil.XmlDocNames\Cecil.XmlDocNames.csproj", "{62CB2CBD-955F-4020-8CCE-4804D8BCBE30}" EndProject @@ -16,6 +16,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "- Configuration", "- Configuration", "{46B5153B-C518-4A48-BF6B-39989F54BB59}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + .globalconfig = .globalconfig Common.props = Common.props Directory.Build.props = Directory.Build.props Directory.Build.targets = Directory.Build.targets @@ -25,12 +26,24 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "- Configuration", "- Config VERSION = VERSION EndProjectSection EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{666B431F-DEA5-45E1-A271-84060570A7E8}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{666B431F-DEA5-45E1-A271-84060570A7E8}" + ProjectSection(SolutionItems) = preProject + tests\Common.targets = tests\Common.targets + EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cecil.XmlDocNames.Tests", "tests\Cecil.XmlDocNames.Tests\Cecil.XmlDocNames.Tests.csproj", "{C772984C-CAF9-47FD-A478-08D0EA798C32}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExampleAssembly", "testFixtures\ExampleAssembly\ExampleAssembly.csproj", "{EFA5A940-A95E-4BA9-B4B5-EA8E265CBF86}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0C568C24-8153-453E-B697-050A899D4BE3}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "testFixtures", "testFixtures", "{0C479E0D-8D11-4F4A-8195-969BA1821944}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "- Configuration", "- Configuration", "{9CD028C0-4CEC-4CA1-BC92-366E3E397BD3}" + ProjectSection(SolutionItems) = preProject + tests\Common.targets = tests\Common.targets + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -54,8 +67,10 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution + {62CB2CBD-955F-4020-8CCE-4804D8BCBE30} = {0C568C24-8153-453E-B697-050A899D4BE3} {C772984C-CAF9-47FD-A478-08D0EA798C32} = {666B431F-DEA5-45E1-A271-84060570A7E8} - {EFA5A940-A95E-4BA9-B4B5-EA8E265CBF86} = {666B431F-DEA5-45E1-A271-84060570A7E8} + {EFA5A940-A95E-4BA9-B4B5-EA8E265CBF86} = {0C479E0D-8D11-4F4A-8195-969BA1821944} + {9CD028C0-4CEC-4CA1-BC92-366E3E397BD3} = {666B431F-DEA5-45E1-A271-84060570A7E8} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {79026CCC-2B02-4EDF-90C7-E25646EF436E} diff --git a/Cecil.XmlDocNames.sln.DotSettings b/Cecil.XmlDocNames.sln.DotSettings index c5a19c2..69f1c6f 100644 --- a/Cecil.XmlDocNames.sln.DotSettings +++ b/Cecil.XmlDocNames.sln.DotSettings @@ -1,333 +1,500 @@  - SOLUTION - True - WARNING - WARNING - WARNING - WARNING - WARNING + None + NotCompiledCode - WARNING - WARNING + True + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + DoShow + WARNING + WARNING + WARNING + WARNING + WARNING + Experimental + True - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - DO_NOT_SHOW - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - WARNING - True - True - True - True + True + False + True + + + + True + END_OF_LINE + 1 + 1 + 1 + 1 + 1 + 1 + TOGETHER_SAME_LINE + False + END_OF_LINE + 0 + 0 + False True - 1 - 16 + True + True NEVER NEVER + False NEVER - False - CHOP_IF_LONG + False True - 132 - 132 - False - <?xml version="1.0" encoding="utf-16"?> -<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> - <TypePattern DisplayName="Non-reorderable types"> - <TypePattern.Match> - <Or> - <And> - <Kind Is="Interface" /> - <Or> - <HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> - <HasAttribute Name="System.Runtime.InteropServices.ComImport" /> - </Or> - </And> - <Kind Is="Struct" /> - <HasAttribute Name="JetBrains.Annotations.NoReorderAttribute" /> - <HasAttribute Name="JetBrains.Annotations.NoReorder" /> - </Or> - </TypePattern.Match> - </TypePattern> - <TypePattern DisplayName="xUnit.net Test Classes" RemoveRegions="All"> - <TypePattern.Match> - <And> - <Kind Is="Class" /> - <HasMember> - <And> - <Kind Is="Method" /> - <HasAttribute Name="Xunit.FactAttribute" Inherited="True" /> - <HasAttribute Name="Xunit.TheoryAttribute" Inherited="True" /> - </And> - </HasMember> - </And> - </TypePattern.Match> - <Entry DisplayName="Setup/Teardown Methods"> - <Entry.Match> - <Or> - <Kind Is="Constructor" /> - <And> - <Kind Is="Method" /> - <ImplementsInterface Name="System.IDisposable" /> - </And> - </Or> - </Entry.Match> - <Entry.SortBy> - <Kind Order="Constructor" /> - </Entry.SortBy> - </Entry> - <Entry DisplayName="All other members" /> - <Entry Priority="100" DisplayName="Test Methods"> - <Entry.Match> - <And> - <Kind Is="Method" /> - <HasAttribute Name="Xunit.FactAttribute" /> - <HasAttribute Name="Xunit.TheoryAttribute" /> - </And> - </Entry.Match> - <Entry.SortBy> - <Name /> - </Entry.SortBy> - </Entry> - </TypePattern> - <TypePattern DisplayName="NUnit Test Fixtures" RemoveRegions="All"> - <TypePattern.Match> - <And> - <Kind Is="Class" /> - <Or> - <HasAttribute Name="NUnit.Framework.TestFixtureAttribute" Inherited="True" /> - <HasAttribute Name="NUnit.Framework.TestFixtureSourceAttribute" Inherited="True" /> - <HasMember> - <And> - <Kind Is="Method" /> - <HasAttribute Name="NUnit.Framework.TestAttribute" /> - <HasAttribute Name="NUnit.Framework.TestCaseAttribute" /> - <HasAttribute Name="NUnit.Framework.TestCaseSourceAttribute" /> - </And> - </HasMember> - </Or> - </And> - </TypePattern.Match> - <Entry DisplayName="Setup/Teardown Methods"> - <Entry.Match> - <And> - <Kind Is="Method" /> - <Or> - <HasAttribute Name="NUnit.Framework.SetUpAttribute" Inherited="True" /> - <HasAttribute Name="NUnit.Framework.TearDownAttribute" Inherited="True" /> - <HasAttribute Name="NUnit.Framework.TestFixtureSetUpAttribute" Inherited="True" /> - <HasAttribute Name="NUnit.Framework.TestFixtureTearDownAttribute" Inherited="True" /> - <HasAttribute Name="NUnit.Framework.OneTimeSetUpAttribute" Inherited="True" /> - <HasAttribute Name="NUnit.Framework.OneTimeTearDownAttribute" Inherited="True" /> - </Or> - </And> - </Entry.Match> - </Entry> - <Entry DisplayName="All other members" /> - <Entry Priority="100" DisplayName="Test Methods"> - <Entry.Match> - <And> - <Kind Is="Method" /> - <HasAttribute Name="NUnit.Framework.TestAttribute" /> - <HasAttribute Name="NUnit.Framework.TestCaseAttribute" /> - <HasAttribute Name="NUnit.Framework.TestCaseSourceAttribute" /> - </And> - </Entry.Match> - <Entry.SortBy> - <Name /> - </Entry.SortBy> - </Entry> - </TypePattern> - <TypePattern DisplayName="Default Pattern" RemoveRegions="All"> - <Entry Priority="100" DisplayName="Public Delegates"> - <Entry.Match> - <And> - <Access Is="Public" /> - <Kind Is="Delegate" /> - </And> - </Entry.Match> - <Entry.SortBy> - <Name /> - </Entry.SortBy> - </Entry> - <Entry Priority="100" DisplayName="Public Enums"> - <Entry.Match> - <And> - <Access Is="Public" /> - <Kind Is="Enum" /> - </And> - </Entry.Match> - <Entry.SortBy> - <Name /> - </Entry.SortBy> - </Entry> - <Entry DisplayName="Static Fields and Constants"> - <Entry.Match> - <Or> - <Kind Is="Constant" /> - <And> - <Kind Is="Field" /> - <Static /> - </And> - </Or> - </Entry.Match> - <Entry.SortBy> - <Kind Order="Constant Field" /> - </Entry.SortBy> - </Entry> - <Entry DisplayName="Fields"> - <Entry.Match> - <And> - <Kind Is="Field" /> - <Not> - <Static /> - </Not> - </And> - </Entry.Match> - <Entry.SortBy> - <Readonly /> - <Name /> - </Entry.SortBy> - </Entry> - <Entry DisplayName="Constructors"> - <Entry.Match> - <Kind Is="Constructor" /> - </Entry.Match> - <Entry.SortBy> - <Static /> - </Entry.SortBy> - </Entry> - <Entry DisplayName="Properties, Indexers"> - <Entry.Match> - <Or> - <Kind Is="Property" /> - <Kind Is="Indexer" /> - </Or> - </Entry.Match> - </Entry> - <Entry Priority="100" DisplayName="Interface Implementations"> - <Entry.Match> - <And> - <Kind Is="Member" /> - <ImplementsInterface /> - </And> - </Entry.Match> - <Entry.SortBy> - <ImplementsInterface Immediate="True" /> - </Entry.SortBy> - </Entry> - <Entry DisplayName="All other members" /> - <Entry DisplayName="Nested Types"> - <Entry.Match> - <Kind Is="Type" /> - </Entry.Match> - </Entry> - </TypePattern> -</Patterns> - True - False - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="I" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> - False - True - DO_NOTHING - LIVE_MONITOR - LIVE_MONITOR - DO_NOTHING - LIVE_MONITOR - LIVE_MONITOR - LIVE_MONITOR - LIVE_MONITOR - LIVE_MONITOR - LIVE_MONITOR - LIVE_MONITOR - LIVE_MONITOR - DO_NOTHING - LIVE_MONITOR + True + True + False + CHOP_ALWAYS + True + True + True + False + CIDR + IO + IP + NA + NAWI + OK + SQ + UI + WS + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb"><ExtraRule Prefix="_" Suffix="" Style="aaBb_AaBb" /></Policy> + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="_" Suffix="" Style="aaBb" /></Policy> + <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /> + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> + <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb_AaBb" /> + 2 + True + <Configurator><ConnectList /></Configurator> + True True True True - True True - False - - True + System.CodeDom.Compiler.GeneratedCodeAttribute + <data><AttributeFilter ClassMask="System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute" IsEnabled="True" /><AttributeFilter ClassMask="System.CodeDom.Compiler.GeneratedCodeAttribute" IsEnabled="True" /></data> + True + True True True True True True - \ No newline at end of file + diff --git a/src/Cecil.XmlDocNames/Cecil.XmlDocNames.csproj b/src/Cecil.XmlDocNames/Cecil.XmlDocNames.csproj index 891cbec..e9d992d 100644 --- a/src/Cecil.XmlDocNames/Cecil.XmlDocNames.csproj +++ b/src/Cecil.XmlDocNames/Cecil.XmlDocNames.csproj @@ -9,7 +9,6 @@ netstandard2.0 - true true @@ -18,4 +17,4 @@ - \ No newline at end of file + diff --git a/stylecop.json b/stylecop.json index 871a1c1..f790721 100644 --- a/stylecop.json +++ b/stylecop.json @@ -5,12 +5,6 @@ "settings": { - "indentation": { - "indentationSize": 4, - "tabSize": 4, - "useTabs": false - }, - "spacingRules": { }, @@ -22,7 +16,7 @@ "elementOrder": [ "kind", "accessibility", "constant", "static", "readonly" ], "systemUsingDirectivesFirst": true, "usingDirectivesPlacement": "outsideNamespace", - "blankLinesBetweenUsingGroups": "allow" + "blankLinesBetweenUsingGroups": "omit" }, "namingRules": { @@ -39,18 +33,19 @@ "layoutRules": { "newlineAtEndOfFile": "require", - "allowConsecutiveUsings": true + "allowConsecutiveUsings": true, + "allowDoWhileOnClosingBrace": true }, "documentationRules": { "companyName": "Tenacom", - "copyrightText": "{decoration}\nCopyright (C) {copyrightHolders}. All rights reserved.\nLicensed under the {licenseName} license.\nSee {licenseFile} file in the project root for full license information.\n\nPart of this file may be third-party code, distributed under a compatible license.\nSee {thirdPartyNoticeFile} file in the project root for third-party copyright notices.\n{decoration}", + "copyrightText": "{decoration}\nCopyright (C) {copyrightHolders}. All rights reserved.\nLicensed under the {licenseName} license.\nSee the {licenseFile} file in the project root for full license information.\n\nPart of this file may be third-party code, distributed under a compatible license.\nSee the {thirdPartyNoticeFile} file in the project root for third-party copyright notices.\n{decoration}", "variables": { "copyrightHolders": "Riccardo De Agostini and Tenacom", "licenseName": "MIT", "licenseFile": "LICENSE", "thirdPartyNoticeFile": "THIRD-PARTY-NOTICES", - "decoration": "-----------------------------------------------------------------------------------" + "decoration": "---------------------------------------------------------------------------------------" }, "xmlHeader": false, "documentInterfaces": true, diff --git a/testFixtures/ExampleAssembly/ExampleAssembly.csproj b/testFixtures/ExampleAssembly/ExampleAssembly.csproj index 0368966..d750a9b 100644 --- a/testFixtures/ExampleAssembly/ExampleAssembly.csproj +++ b/testFixtures/ExampleAssembly/ExampleAssembly.csproj @@ -1,10 +1,8 @@ - net5.0 + net6.0 false - false - false false false @@ -13,4 +11,12 @@ + + + CA1051;$(NoWarn) + CA1062;$(NoWarn) + CA1822;$(NoWarn) + SA1201;$(NoWarn) + SA1401;$(NoWarn) + diff --git a/tests/Cecil.XmlDocNames.Tests/Cecil.XmlDocNames.Tests.csproj b/tests/Cecil.XmlDocNames.Tests/Cecil.XmlDocNames.Tests.csproj index cb4f69c..eb97bae 100644 --- a/tests/Cecil.XmlDocNames.Tests/Cecil.XmlDocNames.Tests.csproj +++ b/tests/Cecil.XmlDocNames.Tests/Cecil.XmlDocNames.Tests.csproj @@ -1,7 +1,7 @@ - net5.0 + net6.0 @@ -16,11 +16,4 @@ - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - \ No newline at end of file diff --git a/tests/Common.targets b/tests/Common.targets index ab98ec3..533efc0 100644 --- a/tests/Common.targets +++ b/tests/Common.targets @@ -1,5 +1,9 @@ + + CA1707;$(NoWarn) + + all @@ -7,4 +11,4 @@ - \ No newline at end of file +