diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e451fc3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,542 @@ +# Copyright 2020 Energinet DataHub A/S +# +# Licensed under the Apache License, Version 2.0 (the "License2"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# To learn more about .editorconfig see https://aka.ms/editorconfigdocs + +############################################################## +# Core EditorConfig Options # +############################################################## + +# See https://docs.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2019#supported-settings + +# top-most EditorConfig file +root = true + +# All files +[*] +end_of_line = lf +indent_style = space + +# Terraform +[*.{tf}] +indent_size = 2 + +# Code files +[*.{cs,csx,vb,vbx}] +indent_size = 4 +insert_final_newline = true +charset = utf-8-bom +# Currently does not work in VS 2019, but works in VS Code. +trim_trailing_whitespace = true + +# XML project files +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] +indent_size = 2 + +# XML config files +[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] +indent_size = 2 + +# JSON files +[*.json] +indent_size = 2 + +# YAML files +[*.{yml,yaml}] +indent_size = 2 + +# PowerShell files +[*.{ps1, psm1, psd1}] +indent_size = 4 + +# Shell script files +[*.sh] +end_of_line = lf +indent_size = 2 + +############################################################## +# .NET Conventions # +############################################################## + +[*.{cs,vb}] + +############################### +# .NET Formatting # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions?view=vs-2019#net-formatting-settings + +# Sort using and Import directives with System.* appearing first +dotnet_sort_system_directives_first = true +# Place a blank line between using directive groups +dotnet_separate_import_directive_groups = false + +############################### +# .NET Code Style # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#net-code-style-settings + +# Avoid "this." and "Me." if not necessary +dotnet_style_qualification_for_field = false:error +dotnet_style_qualification_for_property = false:error +dotnet_style_qualification_for_method = false:error +dotnet_style_qualification_for_event = false:error + +# Use language keywords instead of framework type names for type references +dotnet_style_predefined_type_for_locals_parameters_members = true:error +dotnet_style_predefined_type_for_member_access = true:error + +# Modifier preferences +dotnet_style_require_accessibility_modifiers = for_non_interface_members:error +dotnet_style_readonly_field = true:error + +# Parentheses preferences +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:error +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:error +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:error +dotnet_style_parentheses_in_other_operators = always_for_clarity:error + +# Expression-level preferences (suggest more modern language features when available) +dotnet_style_object_initializer = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_explicit_tuple_names = true:error +dotnet_prefer_inferred_tuple_names = true:suggestion +dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_auto_properties = true:suggestion +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion +dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion +dotnet_style_prefer_conditional_expression_over_return = true:suggestion +dotnet_style_prefer_compound_assignment = true:suggestion + +# Null-checking preferences +dotnet_style_coalesce_expression = true:error +dotnet_style_null_propagation = true:error + +############################### +# .NET Code Quality # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#net-code-quality-settings + +# Flag methods with any accessibility that contain unused parameters +dotnet_code_quality_unused_parameters = all:suggestion + +############################### +# .NET Naming # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-naming-conventions?view=vs-2019 + +# Style Definitions +dotnet_naming_style.pascal_case_style.capitalization = pascal_case + +# Use PascalCase for constant fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = error +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style +dotnet_naming_symbols.constant_fields.applicable_kinds = field +dotnet_naming_symbols.constant_fields.applicable_accessibilities = * +dotnet_naming_symbols.constant_fields.required_modifiers = const + +# Instance fields are camelCase and start with _ +dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion +dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields +dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style + +dotnet_naming_symbols.instance_fields.applicable_kinds = field + +dotnet_naming_style.instance_field_style.capitalization = camel_case +dotnet_naming_style.instance_field_style.required_prefix = _ + +############################################################## +# C# Conventions # +############################################################## + +[*.cs] + +############################### +# C# Code Style # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#c-code-style-settings + +# Prefer "var" everywhere +csharp_style_var_for_built_in_types = true:suggestion +csharp_style_var_when_type_is_apparent = true:error +csharp_style_var_elsewhere = true:suggestion + +# Pattern matching preferences +csharp_style_pattern_matching_over_is_with_cast_check = true:error +csharp_style_pattern_matching_over_as_with_null_check = true:error + +# Inlined variable declarations +csharp_style_inlined_variable_declaration = true:suggestion + +# Expression-level preferences +csharp_prefer_simple_default_expression = true:error + +# Null-checking preferences +csharp_style_throw_expression = true:suggestion +csharp_style_conditional_delegate_call = true:suggestion + +# Code block preferences +csharp_prefer_braces = when_multiline:error + +# Unused value preferences +csharp_style_unused_value_expression_statement_preference = discard_variable:silent +csharp_style_unused_value_assignment_preference = discard_variable:suggestion + +# Index and range preferences +csharp_style_prefer_index_operator = true:suggestion +csharp_style_prefer_range_operator = true:suggestion + +# Misc. preferences +csharp_style_deconstructed_variable_declaration = true:suggestion +csharp_style_pattern_local_over_anonymous_function = true:suggestion +csharp_using_directive_placement = outside_namespace:error +csharp_prefer_static_local_function = true:suggestion +csharp_prefer_simple_using_statement = false:error +csharp_style_prefer_switch_expression = true:suggestion + +# Modifier preferences +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion + +############################### +# C# Formatting Rules # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions?view=vs-2019#c-formatting-settings + +# New line preferences +csharp_new_line_before_open_brace = all +csharp_new_line_before_else = true +csharp_new_line_before_catch = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_between_query_expression_clauses = true + +# Indentation preferences +csharp_indent_case_contents = true +csharp_indent_switch_labels = true +csharp_indent_labels = flush_left +csharp_indent_block_contents = true +csharp_indent_braces = false +csharp_indent_case_contents_when_block = true + +# Space preferences +csharp_space_after_cast = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_between_parentheses = false +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_around_binary_operators = before_and_after +csharp_space_between_method_declaration_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_call_parameter_list_parentheses = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_after_comma = true +csharp_space_before_comma = false +csharp_space_after_dot = false +csharp_space_before_dot = false +csharp_space_after_semicolon_in_for_statement = true +csharp_space_before_semicolon_in_for_statement = false +csharp_space_around_declaration_statements = false +csharp_space_before_open_square_brackets = false +csharp_space_between_empty_square_brackets = false +csharp_space_between_square_brackets = false + +# Wrapping preferences +csharp_preserve_single_line_statements = false +csharp_preserve_single_line_blocks = true + +############################### +# .NET Analyzers # +############################### + +dotnet_diagnostic.CA1001.severity = error +dotnet_diagnostic.CA1008.severity = none +dotnet_diagnostic.CA1009.severity = error +dotnet_diagnostic.CA1014.severity = error +dotnet_diagnostic.CA1016.severity = error +dotnet_diagnostic.CA1033.severity = error +dotnet_diagnostic.CA1049.severity = error +dotnet_diagnostic.CA1060.severity = error +dotnet_diagnostic.CA1061.severity = error +dotnet_diagnostic.CA1063.severity = error +dotnet_diagnostic.CA1065.severity = error +dotnet_diagnostic.CA1301.severity = error +dotnet_diagnostic.CA1303.severity = suggestion +dotnet_diagnostic.CA1400.severity = error +dotnet_diagnostic.CA1401.severity = error +dotnet_diagnostic.CA1403.severity = error +dotnet_diagnostic.CA1404.severity = error +dotnet_diagnostic.CA1405.severity = error +dotnet_diagnostic.CA1410.severity = error +dotnet_diagnostic.CA1415.severity = error +dotnet_diagnostic.CA1715.severity = error +dotnet_diagnostic.CA1812.severity = suggestion +dotnet_diagnostic.CA1821.severity = error +dotnet_diagnostic.CA1848.severity = suggestion +dotnet_diagnostic.CA1859.severity = suggestion +dotnet_diagnostic.CA1860.severity = error +dotnet_diagnostic.CA1861.severity = error +dotnet_diagnostic.CA1900.severity = error +dotnet_diagnostic.CA1901.severity = error +dotnet_diagnostic.CA2002.severity = error +dotnet_diagnostic.CA2100.severity = error +dotnet_diagnostic.CA2101.severity = error +dotnet_diagnostic.CA2108.severity = error +dotnet_diagnostic.CA2111.severity = error +dotnet_diagnostic.CA2112.severity = error +dotnet_diagnostic.CA2114.severity = error +dotnet_diagnostic.CA2116.severity = error +dotnet_diagnostic.CA2117.severity = error +dotnet_diagnostic.CA2122.severity = error +dotnet_diagnostic.CA2123.severity = error +dotnet_diagnostic.CA2124.severity = error +dotnet_diagnostic.CA2126.severity = error +dotnet_diagnostic.CA2131.severity = error +dotnet_diagnostic.CA2132.severity = error +dotnet_diagnostic.CA2133.severity = error +dotnet_diagnostic.CA2134.severity = error +dotnet_diagnostic.CA2137.severity = error +dotnet_diagnostic.CA2138.severity = error +dotnet_diagnostic.CA2140.severity = error +dotnet_diagnostic.CA2141.severity = error +dotnet_diagnostic.CA2146.severity = error +dotnet_diagnostic.CA2147.severity = error +dotnet_diagnostic.CA2149.severity = error +dotnet_diagnostic.CA2200.severity = error +dotnet_diagnostic.CA2202.severity = error +dotnet_diagnostic.CA2207.severity = error +dotnet_diagnostic.CA2212.severity = error +dotnet_diagnostic.CA2213.severity = error +dotnet_diagnostic.CA2214.severity = error +dotnet_diagnostic.CA2216.severity = error +dotnet_diagnostic.CA2220.severity = error +dotnet_diagnostic.CA2229.severity = error +dotnet_diagnostic.CA2231.severity = error +dotnet_diagnostic.CA2232.severity = error +dotnet_diagnostic.CA2235.severity = error +dotnet_diagnostic.CA2236.severity = error +dotnet_diagnostic.CA2237.severity = error +dotnet_diagnostic.CA2238.severity = error +dotnet_diagnostic.CA2240.severity = error +dotnet_diagnostic.CA2241.severity = error +dotnet_diagnostic.CA2242.severity = error +dotnet_diagnostic.CA2254.severity = error +dotnet_diagnostic.CS1591.severity = none + +############################### +# StyleCop Analyzers # +############################### + +# See rules here: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/tree/master/documentation + +dotnet_diagnostic.SA0001.severity = error +dotnet_diagnostic.SA1000.severity = error +dotnet_diagnostic.SA1001.severity = error +dotnet_diagnostic.SA1002.severity = error +dotnet_diagnostic.SA1003.severity = error +dotnet_diagnostic.SA1004.severity = error +dotnet_diagnostic.SA1005.severity = error +dotnet_diagnostic.SA1006.severity = error +dotnet_diagnostic.SA1007.severity = error +dotnet_diagnostic.SA1008.severity = error +dotnet_diagnostic.SA1009.severity = error +dotnet_diagnostic.SA1010.severity = error +dotnet_diagnostic.SA1011.severity = error +dotnet_diagnostic.SA1012.severity = error +dotnet_diagnostic.SA1013.severity = error +dotnet_diagnostic.SA1014.severity = error +dotnet_diagnostic.SA1015.severity = error +dotnet_diagnostic.SA1016.severity = error +dotnet_diagnostic.SA1017.severity = error +dotnet_diagnostic.SA1018.severity = error +dotnet_diagnostic.SA1019.severity = error +dotnet_diagnostic.SA1020.severity = error +dotnet_diagnostic.SA1021.severity = error +dotnet_diagnostic.SA1022.severity = error +dotnet_diagnostic.SA1023.severity = error +dotnet_diagnostic.SA1024.severity = error +dotnet_diagnostic.SA1025.severity = error +dotnet_diagnostic.SA1026.severity = error +dotnet_diagnostic.SA1027.severity = error +dotnet_diagnostic.SA1028.severity = error +dotnet_diagnostic.SA1100.severity = error +dotnet_diagnostic.SA1101.severity = none +dotnet_diagnostic.SA1102.severity = error +dotnet_diagnostic.SA1103.severity = error +dotnet_diagnostic.SA1104.severity = error +dotnet_diagnostic.SA1105.severity = error +dotnet_diagnostic.SA1106.severity = error +dotnet_diagnostic.SA1107.severity = error +dotnet_diagnostic.SA1108.severity = error +dotnet_diagnostic.SA1110.severity = error +dotnet_diagnostic.SA1111.severity = error +dotnet_diagnostic.SA1112.severity = error +dotnet_diagnostic.SA1113.severity = error +dotnet_diagnostic.SA1114.severity = error +dotnet_diagnostic.SA1115.severity = error +dotnet_diagnostic.SA1116.severity = error +dotnet_diagnostic.SA1117.severity = error +dotnet_diagnostic.SA1118.severity = error +dotnet_diagnostic.SA1119.severity = error +dotnet_diagnostic.SA1120.severity = error +dotnet_diagnostic.SA1121.severity = error +dotnet_diagnostic.SA1122.severity = error +dotnet_diagnostic.SA1123.severity = error +dotnet_diagnostic.SA1124.severity = error +dotnet_diagnostic.SA1125.severity = error +dotnet_diagnostic.SA1127.severity = error +dotnet_diagnostic.SA1128.severity = error +dotnet_diagnostic.SA1129.severity = error +dotnet_diagnostic.SA1130.severity = error +dotnet_diagnostic.SA1131.severity = error +dotnet_diagnostic.SA1132.severity = error +dotnet_diagnostic.SA1133.severity = error +dotnet_diagnostic.SA1134.severity = error +dotnet_diagnostic.SA1200.severity = error +dotnet_diagnostic.SA1201.severity = error +dotnet_diagnostic.SA1202.severity = error +dotnet_diagnostic.SA1203.severity = error +dotnet_diagnostic.SA1204.severity = error +dotnet_diagnostic.SA1205.severity = error +dotnet_diagnostic.SA1206.severity = error +dotnet_diagnostic.SA1207.severity = error +dotnet_diagnostic.SA1208.severity = error +dotnet_diagnostic.SA1209.severity = error +dotnet_diagnostic.SA1210.severity = error +dotnet_diagnostic.SA1211.severity = error +dotnet_diagnostic.SA1212.severity = error +dotnet_diagnostic.SA1213.severity = error +dotnet_diagnostic.SA1214.severity = error +dotnet_diagnostic.SA1216.severity = error +dotnet_diagnostic.SA1217.severity = error +dotnet_diagnostic.SA1300.severity = error +dotnet_diagnostic.SA1302.severity = error +dotnet_diagnostic.SA1303.severity = error +dotnet_diagnostic.SA1304.severity = error +dotnet_diagnostic.SA1305.severity = error +dotnet_diagnostic.SA1306.severity = error +dotnet_diagnostic.SA1307.severity = error +dotnet_diagnostic.SA1308.severity = error +dotnet_diagnostic.SA1309.severity = none +dotnet_diagnostic.SA1310.severity = error +dotnet_diagnostic.SA1311.severity = error +dotnet_diagnostic.SA1312.severity = error +dotnet_diagnostic.SA1313.severity = error +dotnet_diagnostic.SA1400.severity = error +dotnet_diagnostic.SA1401.severity = error +dotnet_diagnostic.SA1402.severity = error +dotnet_diagnostic.SA1403.severity = error +dotnet_diagnostic.SA1404.severity = error +dotnet_diagnostic.SA1405.severity = error +dotnet_diagnostic.SA1406.severity = error +dotnet_diagnostic.SA1407.severity = error +dotnet_diagnostic.SA1408.severity = error +dotnet_diagnostic.SA1410.severity = error +dotnet_diagnostic.SA1411.severity = error +dotnet_diagnostic.SA1412.severity = error +dotnet_diagnostic.SA1413.severity = none +dotnet_diagnostic.SA1500.severity = error +dotnet_diagnostic.SA1501.severity = error +dotnet_diagnostic.SA1502.severity = error +dotnet_diagnostic.SA1503.severity = none +dotnet_diagnostic.SA1504.severity = error +dotnet_diagnostic.SA1505.severity = error +dotnet_diagnostic.SA1506.severity = error +dotnet_diagnostic.SA1507.severity = error +dotnet_diagnostic.SA1508.severity = error +dotnet_diagnostic.SA1509.severity = error +dotnet_diagnostic.SA1510.severity = error +dotnet_diagnostic.SA1511.severity = error +dotnet_diagnostic.SA1512.severity = error +dotnet_diagnostic.SA1513.severity = error +dotnet_diagnostic.SA1514.severity = error +dotnet_diagnostic.SA1515.severity = error +dotnet_diagnostic.SA1516.severity = none +dotnet_diagnostic.SA1517.severity = error +dotnet_diagnostic.SA1518.severity = error +dotnet_diagnostic.SA1519.severity = error +dotnet_diagnostic.SA1520.severity = error +dotnet_diagnostic.SA1600.severity = suggestion +dotnet_diagnostic.SA1601.severity = error +dotnet_diagnostic.SA1602.severity = error +dotnet_diagnostic.SA1604.severity = error +dotnet_diagnostic.SA1605.severity = error +dotnet_diagnostic.SA1606.severity = error +dotnet_diagnostic.SA1607.severity = error +dotnet_diagnostic.SA1608.severity = error +dotnet_diagnostic.SA1610.severity = error +dotnet_diagnostic.SA1611.severity = error +dotnet_diagnostic.SA1612.severity = error +dotnet_diagnostic.SA1613.severity = error +dotnet_diagnostic.SA1614.severity = error +dotnet_diagnostic.SA1615.severity = suggestion +dotnet_diagnostic.SA1616.severity = error +dotnet_diagnostic.SA1617.severity = error +dotnet_diagnostic.SA1618.severity = suggestion +dotnet_diagnostic.SA1619.severity = error +dotnet_diagnostic.SA1620.severity = error +dotnet_diagnostic.SA1621.severity = error +dotnet_diagnostic.SA1622.severity = error +dotnet_diagnostic.SA1623.severity = suggestion +dotnet_diagnostic.SA1624.severity = error +dotnet_diagnostic.SA1625.severity = error +dotnet_diagnostic.SA1626.severity = error +dotnet_diagnostic.SA1627.severity = error +dotnet_diagnostic.SA1629.severity = error +dotnet_diagnostic.SA1633.severity = error +dotnet_diagnostic.SA1634.severity = error +dotnet_diagnostic.SA1635.severity = error +dotnet_diagnostic.SA1636.severity = error +dotnet_diagnostic.SA1637.severity = error +dotnet_diagnostic.SA1638.severity = error +dotnet_diagnostic.SA1640.severity = error +dotnet_diagnostic.SA1641.severity = error +dotnet_diagnostic.SA1642.severity = error +dotnet_diagnostic.SA1643.severity = error +dotnet_diagnostic.SA1648.severity = error +dotnet_diagnostic.SA1649.severity = error +dotnet_diagnostic.SA1651.severity = error +dotnet_diagnostic.SA1652.severity = error +dotnet_diagnostic.SX1101.severity = error +dotnet_diagnostic.SX1309.severity = error + +############################### +# Code Style rules (IDE) # +############################### + +# See rules here: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ + +dotnet_diagnostic.IDE0005.severity = error +dotnet_diagnostic.IDE0079.severity = error +dotnet_diagnostic.IDE0270.severity = none +dotnet_diagnostic.IDE0290.severity = none + +############################################################## +# C# Test Conventions # +############################################################## + +[*{.test,Tests}.cs] + +dotnet_diagnostic.VSTHRD200.severity = none +dotnet_diagnostic.CA1707.severity = none +dotnet_diagnostic.CA1861.severity = none +dotnet_diagnostic.SA0001.severity = none diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..290f450 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,34 @@ + + + + AllEnabledByDefault + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + diff --git a/SettlementReport.sln b/SettlementReport.sln index f71d989..bdd87cf 100644 --- a/SettlementReport.sln +++ b/SettlementReport.sln @@ -3,9 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "source", "source", "{9805FFFF-9C74-4E1F-9FE8-0423C9469E33}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "settlement-report", "settlement-report", "{8A8252D2-968E-4097-8D84-5E1A4287AB23}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Hosts", "Hosts", "{9805FFFF-9C74-4E1F-9FE8-0423C9469E33}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Common.Infrastructure", "source\settlement-report\Common.Infrastructure\Common.Infrastructure.csproj", "{90CB46D5-6345-40A2-BACC-9D3C211EF692}" EndProject @@ -31,14 +29,15 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SettlementReports.UnitTests EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SettlementReports.Function", "source\settlement-report\SettlementReports.Function\SettlementReports.Function.csproj", "{323D0FB4-7D5C-4C44-8C52-C629766750F8}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "legacy", "legacy", "{DA1A3074-1719-45B5-BECE-703B9AA1F9CB}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{92E7938D-A590-44A7-9720-DCA505366390}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {90CB46D5-6345-40A2-BACC-9D3C211EF692}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {90CB46D5-6345-40A2-BACC-9D3C211EF692}.Debug|Any CPU.Build.0 = Debug|Any CPU @@ -89,19 +88,17 @@ Global {323D0FB4-7D5C-4C44-8C52-C629766750F8}.Release|Any CPU.ActiveCfg = Release|Any CPU {323D0FB4-7D5C-4C44-8C52-C629766750F8}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection GlobalSection(NestedProjects) = preSolution - {8A8252D2-968E-4097-8D84-5E1A4287AB23} = {9805FFFF-9C74-4E1F-9FE8-0423C9469E33} - {90CB46D5-6345-40A2-BACC-9D3C211EF692} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {A119215C-4161-4BDC-8E7C-0DA6DD655079} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {EB86F2BA-AC67-4A51-BDD7-E391CDFDF265} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {F16F641E-9989-4BD9-97D8-2135DD52B803} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {63FCEA68-F792-4860-88AD-7EF163AD667F} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {016FF5AF-759C-4A11-ABA1-723C6F925953} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {90B61921-AF88-4010-AFB8-08FAA3EBF173} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {401D1558-5548-455F-B6DE-619DD9ECB8BB} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {B9A8CF9A-7B62-481E-A155-DA07CD3172E9} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {16B95F69-FEED-4E17-9010-B97C3591CBD5} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {AC7E764C-12EF-492A-A60D-2E284AF2D31D} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} - {323D0FB4-7D5C-4C44-8C52-C629766750F8} = {8A8252D2-968E-4097-8D84-5E1A4287AB23} + {A119215C-4161-4BDC-8E7C-0DA6DD655079} = {DA1A3074-1719-45B5-BECE-703B9AA1F9CB} + {F16F641E-9989-4BD9-97D8-2135DD52B803} = {92E7938D-A590-44A7-9720-DCA505366390} + {63FCEA68-F792-4860-88AD-7EF163AD667F} = {DA1A3074-1719-45B5-BECE-703B9AA1F9CB} + {016FF5AF-759C-4A11-ABA1-723C6F925953} = {9805FFFF-9C74-4E1F-9FE8-0423C9469E33} + {B9A8CF9A-7B62-481E-A155-DA07CD3172E9} = {92E7938D-A590-44A7-9720-DCA505366390} + {AC7E764C-12EF-492A-A60D-2E284AF2D31D} = {92E7938D-A590-44A7-9720-DCA505366390} + {323D0FB4-7D5C-4C44-8C52-C629766750F8} = {9805FFFF-9C74-4E1F-9FE8-0423C9469E33} + {DA1A3074-1719-45B5-BECE-703B9AA1F9CB} = {9805FFFF-9C74-4E1F-9FE8-0423C9469E33} EndGlobalSection EndGlobal diff --git a/source/debug.editorconfig b/source/debug.editorconfig new file mode 100644 index 0000000..fb4686d --- /dev/null +++ b/source/debug.editorconfig @@ -0,0 +1,543 @@ +# Copyright 2020 Energinet DataHub A/S +# +# Licensed under the Apache License, Version 2.0 (the "License2"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# To learn more about .editorconfig see https://aka.ms/editorconfigdocs + +############################################################## +# Core EditorConfig Options # +############################################################## + +# See https://docs.microsoft.com/en-us/visualstudio/ide/create-portable-custom-editor-options?view=vs-2019#supported-settings + +# top-most EditorConfig file +root = true + +# All files +[*] +end_of_line = lf +indent_style = space + +# Terraform +[*.{tf}] +indent_size = 2 + +# Code files +[*.{cs,csx,vb,vbx}] +indent_size = 4 +insert_final_newline = true +charset = utf-8-bom +# Currently does not work in VS 2019, but works in VS Code. +trim_trailing_whitespace = true + +# XML project files +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] +indent_size = 2 + +# XML config files +[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] +indent_size = 2 + +# JSON files +[*.json] +indent_size = 2 + +# YAML files +[*.{yml,yaml}] +indent_size = 2 + +# PowerShell files +[*.{ps1, psm1, psd1}] +indent_size = 4 + +# Shell script files +[*.sh] +end_of_line = lf +indent_size = 2 + +############################################################## +# .NET Conventions # +############################################################## + +[*.{cs,vb}] + +############################### +# .NET Formatting # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions?view=vs-2019#net-formatting-settings + +# Sort using and Import directives with System.* appearing first +dotnet_sort_system_directives_first = true +# Place a blank line between using directive groups +dotnet_separate_import_directive_groups = false + +############################### +# .NET Code Style # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#net-code-style-settings + +# Avoid "this." and "Me." if not necessary +dotnet_style_qualification_for_field = false:error +dotnet_style_qualification_for_property = false:error +dotnet_style_qualification_for_method = false:error +dotnet_style_qualification_for_event = false:error + +# Use language keywords instead of framework type names for type references +dotnet_style_predefined_type_for_locals_parameters_members = true:error +dotnet_style_predefined_type_for_member_access = true:error + +# Modifier preferences +dotnet_style_require_accessibility_modifiers = for_non_interface_members:error +dotnet_style_readonly_field = true:error + +# Parentheses preferences +dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:error +dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:error +dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:error +dotnet_style_parentheses_in_other_operators = always_for_clarity:error + +# Expression-level preferences (suggest more modern language features when available) +dotnet_style_object_initializer = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_explicit_tuple_names = true:error +dotnet_prefer_inferred_tuple_names = true:suggestion +dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_auto_properties = true:suggestion +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion +dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion +dotnet_style_prefer_conditional_expression_over_return = true:suggestion +dotnet_style_prefer_compound_assignment = true:suggestion + +# Null-checking preferences +dotnet_style_coalesce_expression = true:error +dotnet_style_null_propagation = true:error + +############################### +# .NET Code Quality # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#net-code-quality-settings + +# Flag methods with any accessibility that contain unused parameters +dotnet_code_quality_unused_parameters = all:suggestion + +############################### +# .NET Naming # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-naming-conventions?view=vs-2019 + +# Style Definitions +dotnet_naming_style.pascal_case_style.capitalization = pascal_case + +# Use PascalCase for constant fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = error +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style +dotnet_naming_symbols.constant_fields.applicable_kinds = field +dotnet_naming_symbols.constant_fields.applicable_accessibilities = * +dotnet_naming_symbols.constant_fields.required_modifiers = const + +# Instance fields are camelCase and start with _ +dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion +dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields +dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style + +dotnet_naming_symbols.instance_fields.applicable_kinds = field + +dotnet_naming_style.instance_field_style.capitalization = camel_case +dotnet_naming_style.instance_field_style.required_prefix = _ + +############################################################## +# C# Conventions # +############################################################## + +[*.cs] + +############################### +# C# Code Style # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-language-conventions?view=vs-2019#c-code-style-settings + +# Prefer "var" everywhere +csharp_style_var_for_built_in_types = true:suggestion +csharp_style_var_when_type_is_apparent = true:error +csharp_style_var_elsewhere = true:suggestion + +# Pattern matching preferences +csharp_style_pattern_matching_over_is_with_cast_check = true:error +csharp_style_pattern_matching_over_as_with_null_check = true:error + +# Inlined variable declarations +csharp_style_inlined_variable_declaration = true:suggestion + +# Expression-level preferences +csharp_prefer_simple_default_expression = true:error + +# Null-checking preferences +csharp_style_throw_expression = true:suggestion +csharp_style_conditional_delegate_call = true:suggestion + +# Code block preferences +csharp_prefer_braces = when_multiline:error + +# Unused value preferences +csharp_style_unused_value_expression_statement_preference = discard_variable:silent +csharp_style_unused_value_assignment_preference = discard_variable:suggestion + +# Index and range preferences +csharp_style_prefer_index_operator = true:suggestion +csharp_style_prefer_range_operator = true:suggestion + +# Misc. preferences +csharp_style_deconstructed_variable_declaration = true:suggestion +csharp_style_pattern_local_over_anonymous_function = true:suggestion +csharp_using_directive_placement = outside_namespace:error +csharp_prefer_static_local_function = true:suggestion +csharp_prefer_simple_using_statement = false:error +csharp_style_prefer_switch_expression = true:suggestion + +# Modifier preferences +csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion + +############################### +# C# Formatting Rules # +############################### + +# See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-formatting-conventions?view=vs-2019#c-formatting-settings + +# New line preferences +csharp_new_line_before_open_brace = all +csharp_new_line_before_else = true +csharp_new_line_before_catch = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_between_query_expression_clauses = true + +# Indentation preferences +csharp_indent_case_contents = true +csharp_indent_switch_labels = true +csharp_indent_labels = flush_left +csharp_indent_block_contents = true +csharp_indent_braces = false +csharp_indent_case_contents_when_block = true + +# Space preferences +csharp_space_after_cast = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_between_parentheses = false +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_around_binary_operators = before_and_after +csharp_space_between_method_declaration_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_call_parameter_list_parentheses = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_after_comma = true +csharp_space_before_comma = false +csharp_space_after_dot = false +csharp_space_before_dot = false +csharp_space_after_semicolon_in_for_statement = true +csharp_space_before_semicolon_in_for_statement = false +csharp_space_around_declaration_statements = false +csharp_space_before_open_square_brackets = false +csharp_space_between_empty_square_brackets = false +csharp_space_between_square_brackets = false + +# Wrapping preferences +csharp_preserve_single_line_statements = false +csharp_preserve_single_line_blocks = true + +############################### +# .NET Analyzers # +############################### + +dotnet_diagnostic.CA1001.severity = error +dotnet_diagnostic.CA1008.severity = none +dotnet_diagnostic.CA1009.severity = error +dotnet_diagnostic.CA1014.severity = error +dotnet_diagnostic.CA1016.severity = error +dotnet_diagnostic.CA1033.severity = error +dotnet_diagnostic.CA1049.severity = error +dotnet_diagnostic.CA1060.severity = error +dotnet_diagnostic.CA1061.severity = error +dotnet_diagnostic.CA1063.severity = error +dotnet_diagnostic.CA1065.severity = error +dotnet_diagnostic.CA1301.severity = error +dotnet_diagnostic.CA1303.severity = suggestion +dotnet_diagnostic.CA1400.severity = error +dotnet_diagnostic.CA1401.severity = error +dotnet_diagnostic.CA1403.severity = error +dotnet_diagnostic.CA1404.severity = error +dotnet_diagnostic.CA1405.severity = error +dotnet_diagnostic.CA1410.severity = error +dotnet_diagnostic.CA1415.severity = error +dotnet_diagnostic.CA1715.severity = error +dotnet_diagnostic.CA1812.severity = suggestion +dotnet_diagnostic.CA1821.severity = error +dotnet_diagnostic.CA1848.severity = suggestion +dotnet_diagnostic.CA1859.severity = suggestion +dotnet_diagnostic.CA1860.severity = error +dotnet_diagnostic.CA1861.severity = error +dotnet_diagnostic.CA1900.severity = error +dotnet_diagnostic.CA1901.severity = error +dotnet_diagnostic.CA2002.severity = error +dotnet_diagnostic.CA2100.severity = error +dotnet_diagnostic.CA2101.severity = error +dotnet_diagnostic.CA2108.severity = error +dotnet_diagnostic.CA2111.severity = error +dotnet_diagnostic.CA2112.severity = error +dotnet_diagnostic.CA2114.severity = error +dotnet_diagnostic.CA2116.severity = error +dotnet_diagnostic.CA2117.severity = error +dotnet_diagnostic.CA2122.severity = error +dotnet_diagnostic.CA2123.severity = error +dotnet_diagnostic.CA2124.severity = error +dotnet_diagnostic.CA2126.severity = error +dotnet_diagnostic.CA2131.severity = error +dotnet_diagnostic.CA2132.severity = error +dotnet_diagnostic.CA2133.severity = error +dotnet_diagnostic.CA2134.severity = error +dotnet_diagnostic.CA2137.severity = error +dotnet_diagnostic.CA2138.severity = error +dotnet_diagnostic.CA2140.severity = error +dotnet_diagnostic.CA2141.severity = error +dotnet_diagnostic.CA2146.severity = error +dotnet_diagnostic.CA2147.severity = error +dotnet_diagnostic.CA2149.severity = error +dotnet_diagnostic.CA2200.severity = error +dotnet_diagnostic.CA2202.severity = error +dotnet_diagnostic.CA2207.severity = error +dotnet_diagnostic.CA2212.severity = error +dotnet_diagnostic.CA2213.severity = error +dotnet_diagnostic.CA2214.severity = error +dotnet_diagnostic.CA2216.severity = error +dotnet_diagnostic.CA2220.severity = error +dotnet_diagnostic.CA2229.severity = error +dotnet_diagnostic.CA2231.severity = error +dotnet_diagnostic.CA2232.severity = error +dotnet_diagnostic.CA2235.severity = error +dotnet_diagnostic.CA2236.severity = error +dotnet_diagnostic.CA2237.severity = error +dotnet_diagnostic.CA2238.severity = error +dotnet_diagnostic.CA2240.severity = error +dotnet_diagnostic.CA2241.severity = error +dotnet_diagnostic.CA2242.severity = error +dotnet_diagnostic.CA2254.severity = error +dotnet_diagnostic.CS1591.severity = none +dotnet_diagnostic.CS1998.severity = none + +############################### +# StyleCop Analyzers # +############################### + +# See rules here: https://github.com/DotNetAnalyzers/StyleCopAnalyzers/tree/master/documentation + +dotnet_diagnostic.SA0001.severity = error +dotnet_diagnostic.SA1000.severity = error +dotnet_diagnostic.SA1001.severity = error +dotnet_diagnostic.SA1002.severity = error +dotnet_diagnostic.SA1003.severity = error +dotnet_diagnostic.SA1004.severity = error +dotnet_diagnostic.SA1005.severity = suggestion +dotnet_diagnostic.SA1006.severity = error +dotnet_diagnostic.SA1007.severity = error +dotnet_diagnostic.SA1008.severity = error +dotnet_diagnostic.SA1009.severity = error +dotnet_diagnostic.SA1010.severity = error +dotnet_diagnostic.SA1011.severity = error +dotnet_diagnostic.SA1012.severity = error +dotnet_diagnostic.SA1013.severity = error +dotnet_diagnostic.SA1014.severity = error +dotnet_diagnostic.SA1015.severity = suggestion +dotnet_diagnostic.SA1016.severity = error +dotnet_diagnostic.SA1017.severity = error +dotnet_diagnostic.SA1018.severity = error +dotnet_diagnostic.SA1019.severity = error +dotnet_diagnostic.SA1020.severity = error +dotnet_diagnostic.SA1021.severity = error +dotnet_diagnostic.SA1022.severity = error +dotnet_diagnostic.SA1023.severity = error +dotnet_diagnostic.SA1024.severity = error +dotnet_diagnostic.SA1025.severity = error +dotnet_diagnostic.SA1026.severity = error +dotnet_diagnostic.SA1027.severity = error +dotnet_diagnostic.SA1028.severity = error +dotnet_diagnostic.SA1100.severity = error +dotnet_diagnostic.SA1101.severity = none +dotnet_diagnostic.SA1102.severity = error +dotnet_diagnostic.SA1103.severity = error +dotnet_diagnostic.SA1104.severity = error +dotnet_diagnostic.SA1105.severity = error +dotnet_diagnostic.SA1106.severity = error +dotnet_diagnostic.SA1107.severity = error +dotnet_diagnostic.SA1108.severity = error +dotnet_diagnostic.SA1110.severity = error +dotnet_diagnostic.SA1111.severity = error +dotnet_diagnostic.SA1112.severity = error +dotnet_diagnostic.SA1113.severity = error +dotnet_diagnostic.SA1114.severity = error +dotnet_diagnostic.SA1115.severity = error +dotnet_diagnostic.SA1116.severity = error +dotnet_diagnostic.SA1117.severity = error +dotnet_diagnostic.SA1118.severity = error +dotnet_diagnostic.SA1119.severity = error +dotnet_diagnostic.SA1120.severity = error +dotnet_diagnostic.SA1121.severity = error +dotnet_diagnostic.SA1122.severity = error +dotnet_diagnostic.SA1123.severity = error +dotnet_diagnostic.SA1124.severity = error +dotnet_diagnostic.SA1125.severity = error +dotnet_diagnostic.SA1127.severity = error +dotnet_diagnostic.SA1128.severity = error +dotnet_diagnostic.SA1129.severity = error +dotnet_diagnostic.SA1130.severity = error +dotnet_diagnostic.SA1131.severity = error +dotnet_diagnostic.SA1132.severity = error +dotnet_diagnostic.SA1133.severity = error +dotnet_diagnostic.SA1134.severity = error +dotnet_diagnostic.SA1200.severity = error +dotnet_diagnostic.SA1201.severity = error +dotnet_diagnostic.SA1202.severity = error +dotnet_diagnostic.SA1203.severity = error +dotnet_diagnostic.SA1204.severity = error +dotnet_diagnostic.SA1205.severity = error +dotnet_diagnostic.SA1206.severity = error +dotnet_diagnostic.SA1207.severity = error +dotnet_diagnostic.SA1208.severity = error +dotnet_diagnostic.SA1209.severity = error +dotnet_diagnostic.SA1210.severity = error +dotnet_diagnostic.SA1211.severity = error +dotnet_diagnostic.SA1212.severity = error +dotnet_diagnostic.SA1213.severity = error +dotnet_diagnostic.SA1214.severity = error +dotnet_diagnostic.SA1216.severity = error +dotnet_diagnostic.SA1217.severity = error +dotnet_diagnostic.SA1300.severity = error +dotnet_diagnostic.SA1302.severity = error +dotnet_diagnostic.SA1303.severity = error +dotnet_diagnostic.SA1304.severity = error +dotnet_diagnostic.SA1305.severity = error +dotnet_diagnostic.SA1306.severity = error +dotnet_diagnostic.SA1307.severity = error +dotnet_diagnostic.SA1308.severity = error +dotnet_diagnostic.SA1309.severity = none +dotnet_diagnostic.SA1310.severity = error +dotnet_diagnostic.SA1311.severity = error +dotnet_diagnostic.SA1312.severity = error +dotnet_diagnostic.SA1313.severity = error +dotnet_diagnostic.SA1400.severity = error +dotnet_diagnostic.SA1401.severity = error +dotnet_diagnostic.SA1402.severity = error +dotnet_diagnostic.SA1403.severity = error +dotnet_diagnostic.SA1404.severity = error +dotnet_diagnostic.SA1405.severity = error +dotnet_diagnostic.SA1406.severity = error +dotnet_diagnostic.SA1407.severity = error +dotnet_diagnostic.SA1408.severity = error +dotnet_diagnostic.SA1410.severity = error +dotnet_diagnostic.SA1411.severity = error +dotnet_diagnostic.SA1412.severity = error +dotnet_diagnostic.SA1413.severity = none +dotnet_diagnostic.SA1500.severity = error +dotnet_diagnostic.SA1501.severity = error +dotnet_diagnostic.SA1502.severity = error +dotnet_diagnostic.SA1503.severity = none +dotnet_diagnostic.SA1504.severity = error +dotnet_diagnostic.SA1505.severity = error +dotnet_diagnostic.SA1506.severity = error +dotnet_diagnostic.SA1507.severity = error +dotnet_diagnostic.SA1508.severity = error +dotnet_diagnostic.SA1509.severity = error +dotnet_diagnostic.SA1510.severity = error +dotnet_diagnostic.SA1511.severity = error +dotnet_diagnostic.SA1512.severity = none +dotnet_diagnostic.SA1513.severity = error +dotnet_diagnostic.SA1514.severity = error +dotnet_diagnostic.SA1515.severity = suggestion +dotnet_diagnostic.SA1516.severity = none +dotnet_diagnostic.SA1517.severity = error +dotnet_diagnostic.SA1518.severity = error +dotnet_diagnostic.SA1519.severity = error +dotnet_diagnostic.SA1520.severity = error +dotnet_diagnostic.SA1600.severity = suggestion +dotnet_diagnostic.SA1601.severity = error +dotnet_diagnostic.SA1602.severity = error +dotnet_diagnostic.SA1604.severity = error +dotnet_diagnostic.SA1605.severity = error +dotnet_diagnostic.SA1606.severity = error +dotnet_diagnostic.SA1607.severity = error +dotnet_diagnostic.SA1608.severity = error +dotnet_diagnostic.SA1610.severity = error +dotnet_diagnostic.SA1611.severity = error +dotnet_diagnostic.SA1612.severity = error +dotnet_diagnostic.SA1613.severity = error +dotnet_diagnostic.SA1614.severity = error +dotnet_diagnostic.SA1615.severity = suggestion +dotnet_diagnostic.SA1616.severity = error +dotnet_diagnostic.SA1617.severity = error +dotnet_diagnostic.SA1618.severity = suggestion +dotnet_diagnostic.SA1619.severity = error +dotnet_diagnostic.SA1620.severity = error +dotnet_diagnostic.SA1621.severity = error +dotnet_diagnostic.SA1622.severity = error +dotnet_diagnostic.SA1623.severity = suggestion +dotnet_diagnostic.SA1624.severity = error +dotnet_diagnostic.SA1625.severity = error +dotnet_diagnostic.SA1626.severity = error +dotnet_diagnostic.SA1627.severity = error +dotnet_diagnostic.SA1629.severity = error +dotnet_diagnostic.SA1633.severity = error +dotnet_diagnostic.SA1634.severity = error +dotnet_diagnostic.SA1635.severity = error +dotnet_diagnostic.SA1636.severity = error +dotnet_diagnostic.SA1637.severity = error +dotnet_diagnostic.SA1638.severity = error +dotnet_diagnostic.SA1640.severity = error +dotnet_diagnostic.SA1641.severity = error +dotnet_diagnostic.SA1642.severity = error +dotnet_diagnostic.SA1643.severity = error +dotnet_diagnostic.SA1648.severity = error +dotnet_diagnostic.SA1649.severity = error +dotnet_diagnostic.SA1651.severity = error +dotnet_diagnostic.SA1652.severity = error +dotnet_diagnostic.SX1101.severity = error +dotnet_diagnostic.SX1309.severity = error + +############################### +# Code Style rules (IDE) # +############################### + +# See rules here: https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ + +dotnet_diagnostic.IDE0005.severity = error +dotnet_diagnostic.IDE0079.severity = error +dotnet_diagnostic.IDE0270.severity = none +dotnet_diagnostic.IDE0290.severity = none + +############################################################## +# C# Test Conventions # +############################################################## + +[*{.test,Tests}.cs] + +dotnet_diagnostic.VSTHRD200.severity = none +dotnet_diagnostic.CA1707.severity = none +dotnet_diagnostic.CA1861.severity = none +dotnet_diagnostic.SA0001.severity = none diff --git a/source/settlement-report/Common.Infrastructure/Common.Infrastructure.csproj b/source/settlement-report/Common.Infrastructure/Common.Infrastructure.csproj index 4f23cac..4be3cda 100644 --- a/source/settlement-report/Common.Infrastructure/Common.Infrastructure.csproj +++ b/source/settlement-report/Common.Infrastructure/Common.Infrastructure.csproj @@ -17,16 +17,21 @@ limitations under the License. Energinet.DataHub.SettlementReport.Common.Infrastructure Energinet.DataHub.SettlementReport.Common.Infrastructure + enable + true + true + true + true - - - + + + - + diff --git a/source/settlement-report/DatabaseMigration/DatabaseMigration.csproj b/source/settlement-report/DatabaseMigration/DatabaseMigration.csproj index 86d81ce..a9cddf0 100644 --- a/source/settlement-report/DatabaseMigration/DatabaseMigration.csproj +++ b/source/settlement-report/DatabaseMigration/DatabaseMigration.csproj @@ -35,6 +35,5 @@ limitations under the License. - diff --git a/source/settlement-report/Orchestration.SettlementReports.IntegrationTests/Orchestration.SettlementReports.IntegrationTests.csproj b/source/settlement-report/Orchestration.SettlementReports.IntegrationTests/Orchestration.SettlementReports.IntegrationTests.csproj index 31d7029..2a997c8 100644 --- a/source/settlement-report/Orchestration.SettlementReports.IntegrationTests/Orchestration.SettlementReports.IntegrationTests.csproj +++ b/source/settlement-report/Orchestration.SettlementReports.IntegrationTests/Orchestration.SettlementReports.IntegrationTests.csproj @@ -13,14 +13,14 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - + + + + + + + + runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/source/settlement-report/Orchestration.SettlementReports/Orchestration.SettlementReports.csproj b/source/settlement-report/Orchestration.SettlementReports/Orchestration.SettlementReports.csproj index 162194a..ee78ce3 100644 --- a/source/settlement-report/Orchestration.SettlementReports/Orchestration.SettlementReports.csproj +++ b/source/settlement-report/Orchestration.SettlementReports/Orchestration.SettlementReports.csproj @@ -4,20 +4,25 @@ Energinet.DataHub.SettlementReport.Orchestration.SettlementReports v4 Exe + enable + true + true + true + true - + - - - + + + - - + + diff --git a/source/settlement-report/SettlementReports.Application/SettlementReports.Application.csproj b/source/settlement-report/SettlementReports.Application/SettlementReports.Application.csproj index 267f5c5..918c671 100644 --- a/source/settlement-report/SettlementReports.Application/SettlementReports.Application.csproj +++ b/source/settlement-report/SettlementReports.Application/SettlementReports.Application.csproj @@ -2,10 +2,15 @@ Energinet.DataHub.SettlementReport.Application Energinet.DataHub.SettlementReport.Application + enable + true + true + true + true - - + + diff --git a/source/settlement-report/SettlementReports.Function/SettlementReports.Function.csproj b/source/settlement-report/SettlementReports.Function/SettlementReports.Function.csproj index 7abee20..7537959 100644 --- a/source/settlement-report/SettlementReports.Function/SettlementReports.Function.csproj +++ b/source/settlement-report/SettlementReports.Function/SettlementReports.Function.csproj @@ -1,37 +1,41 @@  - - net8.0 - V4 - Exe - enable - enable - - - - - - - - - - - - - - - - - - - - - - - - PreserveNewest - - - - - + + net8.0 + V4 + Exe + enable + enable + true + true + true + true + + + + + + + + + + + + + + + + + + + + + + + + PreserveNewest + + + + + \ No newline at end of file diff --git a/source/settlement-report/SettlementReports.Infrastructure/SettlementReports.Infrastructure.csproj b/source/settlement-report/SettlementReports.Infrastructure/SettlementReports.Infrastructure.csproj index c09e2c4..8a065d4 100644 --- a/source/settlement-report/SettlementReports.Infrastructure/SettlementReports.Infrastructure.csproj +++ b/source/settlement-report/SettlementReports.Infrastructure/SettlementReports.Infrastructure.csproj @@ -2,24 +2,29 @@ Energinet.DataHub.SettlementReport.Infrastructure Energinet.DataHub.SettlementReport.Infrastructure + enable + true + true + true + true - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - + + + + diff --git a/source/settlement-report/SettlementReports.IntegrationTests/SettlementReports.IntegrationTests.csproj b/source/settlement-report/SettlementReports.IntegrationTests/SettlementReports.IntegrationTests.csproj index 410c313..20d2937 100644 --- a/source/settlement-report/SettlementReports.IntegrationTests/SettlementReports.IntegrationTests.csproj +++ b/source/settlement-report/SettlementReports.IntegrationTests/SettlementReports.IntegrationTests.csproj @@ -7,12 +7,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/source/settlement-report/SettlementReports.Interfaces/SettlementReports.Interfaces.csproj b/source/settlement-report/SettlementReports.Interfaces/SettlementReports.Interfaces.csproj index a79a1ef..ff8ea69 100644 --- a/source/settlement-report/SettlementReports.Interfaces/SettlementReports.Interfaces.csproj +++ b/source/settlement-report/SettlementReports.Interfaces/SettlementReports.Interfaces.csproj @@ -1,7 +1,12 @@ - + Energinet.DataHub.SettlementReport.Interfaces Energinet.DataHub.SettlementReport.Interfaces + enable + true + true + true + true diff --git a/source/settlement-report/SettlementReports.UnitTests/SettlementReports.UnitTests.csproj b/source/settlement-report/SettlementReports.UnitTests/SettlementReports.UnitTests.csproj index 668b86b..1a4c593 100644 --- a/source/settlement-report/SettlementReports.UnitTests/SettlementReports.UnitTests.csproj +++ b/source/settlement-report/SettlementReports.UnitTests/SettlementReports.UnitTests.csproj @@ -7,12 +7,12 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/source/settlement-report/SettlementReports.WebAPI/SettlementReports.WebAPI.csproj b/source/settlement-report/SettlementReports.WebAPI/SettlementReports.WebAPI.csproj index 7df9940..76d7873 100644 --- a/source/settlement-report/SettlementReports.WebAPI/SettlementReports.WebAPI.csproj +++ b/source/settlement-report/SettlementReports.WebAPI/SettlementReports.WebAPI.csproj @@ -1,29 +1,33 @@ - - net8.0 - enable - enable - SettlementReports.WebAPI - + + net8.0 + enable + enable + SettlementReports.WebAPI + true + true + true + true + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - + + + + + diff --git a/source/settlement-report/Test.Core/Test.Core.csproj b/source/settlement-report/Test.Core/Test.Core.csproj index 9bfb015..a62cabc 100644 --- a/source/settlement-report/Test.Core/Test.Core.csproj +++ b/source/settlement-report/Test.Core/Test.Core.csproj @@ -19,13 +19,13 @@ limitations under the License. Energinet.DataHub.SettlementReport.Test.Core - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + runtime; build; native; contentfiles; analyzers; buildtransitive