From 492700af53bcf779080b5bef607918c6a1d67dbd Mon Sep 17 00:00:00 2001 From: Corniel Nobel Date: Tue, 19 Nov 2024 20:59:35 +0100 Subject: [PATCH] Drop BOM header from UTF-8 encoded files (#48) --- .editorconfig | 109 +----------------- .github/workflows/test.yaml | 2 +- .globalconfig | 106 +++++++++++++++++ .net.csproj | 2 +- Qowaiv.DomainModel.sln | 2 +- example/ConquerClub.Domain/Army.cs | 2 +- example/ConquerClub.Domain/AttackResult.cs | 2 +- .../ConquerClub.Domain/Commands/Advance.cs | 2 +- example/ConquerClub.Domain/Commands/Attack.cs | 2 +- .../ConquerClub.Domain/Commands/AutoAttack.cs | 2 +- .../ConquerClub.Domain/Commands/Command.cs | 2 +- example/ConquerClub.Domain/Commands/Deploy.cs | 2 +- .../ConquerClub.Domain/Commands/Reinforce.cs | 2 +- example/ConquerClub.Domain/Commands/Resign.cs | 2 +- example/ConquerClub.Domain/Commands/Start.cs | 2 +- .../ConquerClub.Domain.csproj | 2 +- example/ConquerClub.Domain/Continent.cs | 2 +- example/ConquerClub.Domain/Country.cs | 2 +- .../Diagnostics/CollectionDebugView.cs | 2 +- example/ConquerClub.Domain/Dice.cs | 2 +- example/ConquerClub.Domain/Events/Advanced.cs | 2 +- .../Events/ArmiesInitialized.cs | 2 +- .../Events/ArmyInitiated.cs | 2 +- example/ConquerClub.Domain/Events/Attacked.cs | 2 +- .../ConquerClub.Domain/Events/Conquered.cs | 2 +- example/ConquerClub.Domain/Events/Deployed.cs | 2 +- example/ConquerClub.Domain/Events/Finished.cs | 2 +- .../Events/MapInitialized.cs | 2 +- .../ConquerClub.Domain/Events/Reinforced.cs | 2 +- example/ConquerClub.Domain/Events/Resigned.cs | 2 +- .../Events/SettingsInitialized.cs | 2 +- .../ConquerClub.Domain/Events/TurnStarted.cs | 2 +- .../Extensions/ConquerClub.Domain.Country.cs | 2 +- example/ConquerClub.Domain/Game.Actions.cs | 2 +- example/ConquerClub.Domain/Game.cs | 2 +- example/ConquerClub.Domain/GamePhase.cs | 2 +- .../Handlers/CommandHandler.cs | 2 +- .../Handlers/GameCommandHandler.cs | 2 +- .../ConquerClub.Domain/Messages.Designer.cs | 2 +- example/ConquerClub.Domain/Messages.resx | 2 +- example/ConquerClub.Domain/Musts.cs | 2 +- example/ConquerClub.Domain/Player.cs | 2 +- .../Properties/GlobalUsings.cs | 2 +- example/ConquerClub.Domain/Settings.cs | 2 +- .../Validation/CountryValidator.cs | 2 +- .../Validation/GameValidator.cs | 2 +- example/ConquerClub.Domain/_Ids.cs | 2 +- example/ConquerClub.UnitTests/Arrange.cs | 2 +- .../ConquerClub.UnitTests.csproj | 2 +- example/ConquerClub.UnitTests/Deploy_specs.cs | 2 +- .../Game_advance_specs.cs | 2 +- .../Game_attack_specs.cs | 2 +- .../Game_auto_attack_specs.cs | 2 +- .../Game_resign_specs.cs | 2 +- example/ConquerClub.UnitTests/Game_specs.cs | 2 +- .../Properties/GlobalUsings.cs | 2 +- shared/Guard.cs | 2 +- specs/Benchmarks/Benchmarks.csproj | 2 +- specs/Benchmarks/Collections/Added.cs | 2 +- specs/Benchmarks/Collections/Aggregate_id.cs | 2 +- specs/Benchmarks/Collections/Aggregation.cs | 2 +- specs/Benchmarks/Collections/BatchCreation.cs | 2 +- specs/Benchmarks/Collections/Creation.cs | 2 +- specs/Benchmarks/Collections/Iteration.cs | 2 +- specs/Benchmarks/Program.cs | 2 +- specs/Benchmarks/Properties/GlobalUsings.cs | 2 +- specs/Benchmarks/README.md | 2 +- .../AssertionFailed.cs | 2 +- .../Diagnostics/CollectionDebugView.cs | 2 +- .../Contracts/AssertionAttribute.cs | 2 +- .../QowaivDomainModelFluentAssertions.cs | 2 +- .../Extensions/System.Text.StringBuilder.cs | 2 +- .../FluentAssertions/EventBufferAssertions.cs | 2 +- .../Properties/GlobalUsings.cs | 2 +- .../Qowaiv.DomainModel.TestTools.csproj | 2 +- src/Qowaiv.DomainModel.TestTools/README.md | 2 +- src/Qowaiv.DomainModel/Aggregate.cs | 2 +- .../Aggregate_TAggregate.cs | 2 +- .../Aggregate_TAggregate_TId.cs | 2 +- .../Collections/Enumerator.cs | 2 +- src/Qowaiv.DomainModel/Collections/If.cs | 2 +- src/Qowaiv.DomainModel/Collections/IfState.cs | 2 +- .../Collections/ImmutableCollection.cs | 2 +- .../Collections/ReadOnlySet.cs | 2 +- src/Qowaiv.DomainModel/Collections/Then.cs | 2 +- .../Commands/CommandProcessor.cs | 2 +- .../Commands/UnresolvedCommandHandler.cs | 2 +- .../Diagnostics/CollectionDebugView.cs | 2 +- src/Qowaiv.DomainModel/EventBuffer.cs | 2 +- src/Qowaiv.DomainModel/EventBuffer_TId.cs | 2 +- src/Qowaiv.DomainModel/EventDispatcher.cs | 2 +- .../Extensions/System.Array.cs | 2 +- .../Internal/AppendOnlyCollection.cs | 2 +- src/Qowaiv.DomainModel/Internal/Singleton.cs | 2 +- src/Qowaiv.DomainModel/Obsolete.cs | 2 +- .../Properties/GlobalUsings.cs | 2 +- .../Qowaiv.DomainModel.csproj | 2 +- .../Qowaiv.Validation.Guarding/Musts.cs | 2 +- .../QowaivDomainModelMessages.Designer.cs | 2 +- .../QowaivDomainModelMessages.resx | 2 +- src/Qowaiv.DomainModel/README.md | 2 +- .../ExpressionCompilingEventDispatcher.cs | 2 +- .../Collections/Immutable_Collection_specs.cs | 2 +- .../Commands/CommandProcessor_specs.cs | 2 +- .../Event_buffer_specs.cs | 2 +- .../Event_sourced_aggregate_specs.cs | 2 +- .../Models/AggregateStub.cs | 2 +- .../Models/Events/ArrayEvent.cs | 2 +- .../Models/Events/ComplexEvent.cs | 2 +- .../Models/Events/DateOfBirthUpdated.cs | 2 +- .../Models/Events/EmptyEvent.cs | 2 +- .../Models/Events/InvalidEvent.cs | 2 +- .../Models/Events/NameUpdated.cs | 2 +- .../Models/Events/OtherEvent.cs | 2 +- .../Models/Events/SimpleEvent.cs | 2 +- .../Models/Events/SimpleInitEvent.cs | 2 +- .../Models/Events/StoredEvent.cs | 2 +- .../Models/SimpleEventSourcedAggregate.cs | 2 +- .../SimpleEventSourcedAggregateValidator.cs | 2 +- .../Must_specs.cs | 2 +- .../NuGet_packages_specs.cs | 2 +- .../Pre_processing_events_specs.cs | 2 +- .../Properties/GlobalUsings.cs | 2 +- .../Qowaiv.DomainModel.UnitTests.csproj | 2 +- ...ession_compiling_event_dispatcher_specs.cs | 2 +- .../Supported_EventTypes_specs.cs | 2 +- .../TestTools/EmptyTestClassAttribute.cs | 2 +- 127 files changed, 233 insertions(+), 232 deletions(-) create mode 100644 .globalconfig diff --git a/.editorconfig b/.editorconfig index 264b0b5..d4d8f4a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,7 +1,9 @@ root = true + [*] end_of_line = crlf insert_final_newline = true +charset = utf-8 # Code files [*.{cs,cshtml,ts}] @@ -20,110 +22,3 @@ csharp_style_inlined_variable_declaration = true:warning # IDE0018: Inline varia csharp_prefer_simple_default_expression = true:warning # IDE0034: Simplify 'default' expression dotnet_style_prefer_compound_assignment = true:warning # IDE0054: Use compound assignment csharp_style_unused_value_assignment_preference = discard_variable:warning # IDE0059: Unnecessary assignment of a value - -dotnet_diagnostic.IDE1006.severity = none # Naming Styles -dotnet_diagnostic.IDE0005.severity = warning # Using directive unnecessary -dotnet_diagnostic.IDE0079.severity = warning # Unnecessary suppression -dotnet_diagnostic.IDE0090.severity = warning # Simplify new expression - -dotnet_diagnostic.CA1845.severity = none # Use span-based 'string.Concat' -dotnet_diagnostic.CA1846.severity = none # Prefer 'AsSpan' over 'Substring' -dotnet_diagnostic.CA2231.severity = none # Overload operator equals on overriding value type Equals - -dotnet_diagnostic.CA1069.severity = warning # Enums values should not be duplicated -dotnet_diagnostic.CA1806.severity = warning # Do not ignore method results -dotnet_diagnostic.CA1816.severity = warning # Dispose methods should call SuppressFinalize -dotnet_diagnostic.CA1822.severity = warning # Member that does not access instance data can be marked as static -dotnet_diagnostic.CA1825.severity = warning # Avoid unnecessary zero-length array allocations -dotnet_diagnostic.CA1845.severity = warning # Prefer strongly-typed Append and Insert method overloads on StringBuilder -dotnet_diagnostic.CA1847.severity = warning # Use char literal for a single character lookup -dotnet_diagnostic.CA2016.severity = warning # Forward the 'CancellationToken' parameter to methods -dotnet_diagnostic.CA2211.severity = warning # Non-constant fields should not be visible -dotnet_diagnostic.CA2249.severity = warning # Consider using 'string.Contains' instead of 'string.IndexOf' -dotnet_diagnostic.CA2254.severity = warning # Template should be a static expression -dotnet_diagnostic.CS8763.severity = warning # A method marked [DoesNotReturn] should not return. -dotnet_diagnostic.CS8770.severity = warning # Method lacks [DoesNotReturn] annotation to match implemented or overridden member. - -dotnet_diagnostic.QW0001.severity = none # Use a testable Time Provider -dotnet_diagnostic.QW0003.severity = warning # Decorate Pure functions - -dotnet_diagnostic.SA1001.severity = none # Commas should not be preceded by whitespace -dotnet_diagnostic.SA1101.severity = none # Prefix local calls with this. -dotnet_diagnostic.SA1127.severity = none # Generic type constraints should be on their own line. -dotnet_diagnostic.SA1128.severity = none # Constructor initializes should be on their own line. -dotnet_diagnostic.SA1200.severity = none # using directive is placed outside of a namespace element. -dotnet_diagnostic.SA1201.severity = none # Order of different members. -dotnet_diagnostic.SA1202.severity = none # Sort members based on visibillity. -dotnet_diagnostic.SA1203.severity = none # Constants before non-constants. -dotnet_diagnostic.SA1204.severity = none # Sort members based on static/instance. -dotnet_diagnostic.SA1208.severity = none # System using directives must be placed before other using directives. -dotnet_diagnostic.SA1214.severity = none # Sort readonly fields before non-readonly fields. -dotnet_diagnostic.SA1300.severity = none # Enum members should not start with lower-case character. -dotnet_diagnostic.SA1304.severity = none # None-private fields should begin with upper-case character. -dotnet_diagnostic.SA1306.severity = none # Fields should begin with lower-case character. -dotnet_diagnostic.SA1307.severity = none # Fields should begin with upper-case character. -dotnet_diagnostic.SA1308.severity = none # Fields should begin with 'm_' prefix. -dotnet_diagnostic.SA1309.severity = none # Fields should begin with underscore. -dotnet_diagnostic.SA1310.severity = none # Fields should not contain underscores. -dotnet_diagnostic.SA1302.severity = none # Interface names should start with an I. -dotnet_diagnostic.SA1311.severity = none # Static read-only fields should begin with upper-case character. -dotnet_diagnostic.SA1503.severity = none # Braces should not be omitted. -dotnet_diagnostic.SA1513.severity = none # Closing brace should be followed by an empty line. -dotnet_diagnostic.SA1519.severity = none # Braces should not be omitted from multi-line childe statement. -dotnet_diagnostic.SA1520.severity = none # Use braces consistently. -dotnet_diagnostic.SA1600.severity = none # Elements should be documented. -dotnet_diagnostic.SA1601.severity = none # Partial elements should be documented. -dotnet_diagnostic.SA1602.severity = none # Enumerations should be documented. -dotnet_diagnostic.SA1611.severity = none # The documentation for parameter x is missing. -dotnet_diagnostic.SA1615.severity = none # The documentation return value. -dotnet_diagnostic.SA1618.severity = none # The documentation type parameter. -dotnet_diagnostic.SA1623.severity = none # The property's documentation summary text should begin with: 'Gets'. -dotnet_diagnostic.SA1633.severity = none # The file header is missing or not located at the top of the file. -dotnet_diagnostic.SA1636.severity = none # The file header should contain match copyright from settings. -dotnet_diagnostic.SA1637.severity = none # The file header should contain file name. -dotnet_diagnostic.SA1640.severity = none # The copyright tag should contain a non-empty company attribute. - -dotnet_diagnostic.SA1401.severity = suggestion # Fields should be private. -dotnet_diagnostic.SA1402.severity = suggestion # File may only contain one type. -dotnet_diagnostic.SA1407.severity = suggestion # Arithmetic expressions should declare precedence. -dotnet_diagnostic.SA1501.severity = suggestion # Statement should not be on single line. -dotnet_diagnostic.SA1502.severity = suggestion # Element should not be on single line. -dotnet_diagnostic.SA1512.severity = suggestion # Single-line comment should be followed by blank line. -dotnet_diagnostic.SA1515.severity = suggestion # Single-line comment should be preceded by blank line. -dotnet_diagnostic.SA1649.severity = suggestion # File name should match first type name. - -dotnet_diagnostic.S100.severity = none # Properties should be named in PascalCase -dotnet_diagnostic.S101.severity = none # Types should be named in PascalCase -dotnet_diagnostic.S2328.severity = none # GetHashCode() should not reference mutable fields -dotnet_diagnostic.S2178.severity = none # Short-circuit logic should be used in boolean contexts - '&' is used instead of && to accommodate expressions with nullable booleans too. -dotnet_diagnostic.S3376.severity = none # EventArgs, and Exception type names should end with the type being extended -dotnet_diagnostic.S3376.severity = none # Attribute, EventArgs, and Exception type names should end with the type being extended -dotnet_diagnostic.S4136.severity = none # Method overloads should be grouped together - -dotnet_diagnostic.S1133.severity = suggestion # Deprecated code should be removed - -dotnet_diagnostic.S107.severity = warning # Methods should not have too many parameters -dotnet_diagnostic.S127.severity = warning # Methods should not have too many parameters -dotnet_diagnostic.S134.severity = warning # Control flow statements "if", "switch", "for", "foreach", "while", "do" and "try" should not be nested too deeply -dotnet_diagnostic.S138.severity = warning # Functions should not have too many lines of code -dotnet_diagnostic.S1067.severity = warning # Expressions should not be too complex -dotnet_diagnostic.S1144.severity = warning # Unused private types or members should be removed -dotnet_diagnostic.S1172.severity = warning # Unused method parameters should be removed -dotnet_diagnostic.S1185.severity = warning # Overriding members should do more than simply call the same member in the base class -dotnet_diagnostic.S1227.severity = warning # break statements should not be used except for switch cases -dotnet_diagnostic.S1479.severity = warning # Consider reworking this 'switch' to reduce the number of 'case's to at most 30 -dotnet_diagnostic.S1541.severity = warning # Methods and properties should not be too complex -dotnet_diagnostic.S1858.severity = warning # "ToString()" calls should not be redundant -dotnet_diagnostic.S1694.severity = warning # An abstract class should have both abstract and concrete methods -dotnet_diagnostic.S2197.severity = warning # Modulus results should not be checked for direct equa -dotnet_diagnostic.S2302.severity = warning # "nameof" should be used -dotnet_diagnostic.S2342.severity = warning # Rename this enumeration to match naming convention -dotnet_diagnostic.S2436.severity = warning # Types and methods should not have too many generic parameters -dotnet_diagnostic.S2701.severity = warning # Literal boolean values should not be used in assertions -dotnet_diagnostic.S3215.severity = warning # Interface instances should not be cast to concrete types -dotnet_diagnostic.S3218.severity = warning # Inner class members should not shadow outer class "static" or type members -dotnet_diagnostic.S3257.severity = warning # Declarations and initializations should be as concise as possible -dotnet_diagnostic.S3776.severity = warning # Cognitive Complexity of methods should not be too high -dotnet_diagnostic.S3925.severity = warning # "ISerializable" should be implemented correctly -dotnet_diagnostic.S3900.severity = warning # Arguments of public methods should be validated against null -dotnet_diagnostic.S6354.severity = warning # Use a testable (date) time provider instead diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f72bee9..f687e7f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,4 +14,4 @@ jobs: with: dotnet-version: '9.0.x' - name: Test with .NET - run: dotnet test Qowaiv.DomainModel.sln --configuration Release + run: dotnet test Qowaiv.DomainModel.sln --configuration Release diff --git a/.globalconfig b/.globalconfig new file mode 100644 index 0000000..59a74c0 --- /dev/null +++ b/.globalconfig @@ -0,0 +1,106 @@ +dotnet_diagnostic.IDE1006.severity = none # Naming Styles +dotnet_diagnostic.IDE0005.severity = warning # Using directive unnecessary +dotnet_diagnostic.IDE0079.severity = warning # Unnecessary suppression +dotnet_diagnostic.IDE0090.severity = warning # Simplify new expression + +dotnet_diagnostic.CA1845.severity = none # Use span-based 'string.Concat' +dotnet_diagnostic.CA1846.severity = none # Prefer 'AsSpan' over 'Substring' +dotnet_diagnostic.CA2231.severity = none # Overload operator equals on overriding value type Equals + +dotnet_diagnostic.CA1069.severity = warning # Enums values should not be duplicated +dotnet_diagnostic.CA1806.severity = warning # Do not ignore method results +dotnet_diagnostic.CA1816.severity = warning # Dispose methods should call SuppressFinalize +dotnet_diagnostic.CA1822.severity = warning # Member that does not access instance data can be marked as static +dotnet_diagnostic.CA1825.severity = warning # Avoid unnecessary zero-length array allocations +dotnet_diagnostic.CA1845.severity = warning # Prefer strongly-typed Append and Insert method overloads on StringBuilder +dotnet_diagnostic.CA1847.severity = warning # Use char literal for a single character lookup +dotnet_diagnostic.CA2016.severity = warning # Forward the 'CancellationToken' parameter to methods +dotnet_diagnostic.CA2211.severity = warning # Non-constant fields should not be visible +dotnet_diagnostic.CA2249.severity = warning # Consider using 'string.Contains' instead of 'string.IndexOf' +dotnet_diagnostic.CA2254.severity = warning # Template should be a static expression +dotnet_diagnostic.CS8763.severity = warning # A method marked [DoesNotReturn] should not return. +dotnet_diagnostic.CS8770.severity = warning # Method lacks [DoesNotReturn] annotation to match implemented or overridden member. + +dotnet_diagnostic.QW0001.severity = none # Use a testable Time Provider +dotnet_diagnostic.QW0003.severity = warning # Decorate Pure functions + +dotnet_diagnostic.SA1001.severity = none # Commas should not be preceded by whitespace +dotnet_diagnostic.SA1101.severity = none # Prefix local calls with this. +dotnet_diagnostic.SA1127.severity = none # Generic type constraints should be on their own line. +dotnet_diagnostic.SA1128.severity = none # Constructor initializes should be on their own line. +dotnet_diagnostic.SA1200.severity = none # using directive is placed outside of a namespace element. +dotnet_diagnostic.SA1201.severity = none # Order of different members. +dotnet_diagnostic.SA1202.severity = none # Sort members based on visibillity. +dotnet_diagnostic.SA1203.severity = none # Constants before non-constants. +dotnet_diagnostic.SA1204.severity = none # Sort members based on static/instance. +dotnet_diagnostic.SA1208.severity = none # System using directives must be placed before other using directives. +dotnet_diagnostic.SA1214.severity = none # Sort readonly fields before non-readonly fields. +dotnet_diagnostic.SA1300.severity = none # Enum members should not start with lower-case character. +dotnet_diagnostic.SA1304.severity = none # None-private fields should begin with upper-case character. +dotnet_diagnostic.SA1306.severity = none # Fields should begin with lower-case character. +dotnet_diagnostic.SA1307.severity = none # Fields should begin with upper-case character. +dotnet_diagnostic.SA1308.severity = none # Fields should begin with 'm_' prefix. +dotnet_diagnostic.SA1309.severity = none # Fields should begin with underscore. +dotnet_diagnostic.SA1310.severity = none # Fields should not contain underscores. +dotnet_diagnostic.SA1302.severity = none # Interface names should start with an I. +dotnet_diagnostic.SA1311.severity = none # Static read-only fields should begin with upper-case character. +dotnet_diagnostic.SA1503.severity = none # Braces should not be omitted. +dotnet_diagnostic.SA1513.severity = none # Closing brace should be followed by an empty line. +dotnet_diagnostic.SA1519.severity = none # Braces should not be omitted from multi-line childe statement. +dotnet_diagnostic.SA1520.severity = none # Use braces consistently. +dotnet_diagnostic.SA1600.severity = none # Elements should be documented. +dotnet_diagnostic.SA1601.severity = none # Partial elements should be documented. +dotnet_diagnostic.SA1602.severity = none # Enumerations should be documented. +dotnet_diagnostic.SA1611.severity = none # The documentation for parameter x is missing. +dotnet_diagnostic.SA1615.severity = none # The documentation return value. +dotnet_diagnostic.SA1618.severity = none # The documentation type parameter. +dotnet_diagnostic.SA1623.severity = none # The property's documentation summary text should begin with: 'Gets'. +dotnet_diagnostic.SA1633.severity = none # The file header is missing or not located at the top of the file. +dotnet_diagnostic.SA1636.severity = none # The file header should contain match copyright from settings. +dotnet_diagnostic.SA1637.severity = none # The file header should contain file name. +dotnet_diagnostic.SA1640.severity = none # The copyright tag should contain a non-empty company attribute. + +dotnet_diagnostic.SA1401.severity = suggestion # Fields should be private. +dotnet_diagnostic.SA1402.severity = suggestion # File may only contain one type. +dotnet_diagnostic.SA1407.severity = suggestion # Arithmetic expressions should declare precedence. +dotnet_diagnostic.SA1501.severity = suggestion # Statement should not be on single line. +dotnet_diagnostic.SA1502.severity = suggestion # Element should not be on single line. +dotnet_diagnostic.SA1512.severity = suggestion # Single-line comment should be followed by blank line. +dotnet_diagnostic.SA1515.severity = suggestion # Single-line comment should be preceded by blank line. +dotnet_diagnostic.SA1649.severity = suggestion # File name should match first type name. + +dotnet_diagnostic.S100.severity = none # Properties should be named in PascalCase +dotnet_diagnostic.S101.severity = none # Types should be named in PascalCase +dotnet_diagnostic.S2328.severity = none # GetHashCode() should not reference mutable fields +dotnet_diagnostic.S2178.severity = none # Short-circuit logic should be used in boolean contexts - '&' is used instead of && to accommodate expressions with nullable booleans too. +dotnet_diagnostic.S3376.severity = none # EventArgs, and Exception type names should end with the type being extended +dotnet_diagnostic.S3376.severity = none # Attribute, EventArgs, and Exception type names should end with the type being extended +dotnet_diagnostic.S4136.severity = none # Method overloads should be grouped together + +dotnet_diagnostic.S1133.severity = suggestion # Deprecated code should be removed + +dotnet_diagnostic.S107.severity = warning # Methods should not have too many parameters +dotnet_diagnostic.S127.severity = warning # Methods should not have too many parameters +dotnet_diagnostic.S134.severity = warning # Control flow statements "if", "switch", "for", "foreach", "while", "do" and "try" should not be nested too deeply +dotnet_diagnostic.S138.severity = warning # Functions should not have too many lines of code +dotnet_diagnostic.S1067.severity = warning # Expressions should not be too complex +dotnet_diagnostic.S1144.severity = warning # Unused private types or members should be removed +dotnet_diagnostic.S1172.severity = warning # Unused method parameters should be removed +dotnet_diagnostic.S1185.severity = warning # Overriding members should do more than simply call the same member in the base class +dotnet_diagnostic.S1227.severity = warning # break statements should not be used except for switch cases +dotnet_diagnostic.S1479.severity = warning # Consider reworking this 'switch' to reduce the number of 'case's to at most 30 +dotnet_diagnostic.S1541.severity = warning # Methods and properties should not be too complex +dotnet_diagnostic.S1858.severity = warning # "ToString()" calls should not be redundant +dotnet_diagnostic.S1694.severity = warning # An abstract class should have both abstract and concrete methods +dotnet_diagnostic.S2197.severity = warning # Modulus results should not be checked for direct equa +dotnet_diagnostic.S2302.severity = warning # "nameof" should be used +dotnet_diagnostic.S2342.severity = warning # Rename this enumeration to match naming convention +dotnet_diagnostic.S2436.severity = warning # Types and methods should not have too many generic parameters +dotnet_diagnostic.S2701.severity = warning # Literal boolean values should not be used in assertions +dotnet_diagnostic.S3215.severity = warning # Interface instances should not be cast to concrete types +dotnet_diagnostic.S3218.severity = warning # Inner class members should not shadow outer class "static" or type members +dotnet_diagnostic.S3257.severity = warning # Declarations and initializations should be as concise as possible +dotnet_diagnostic.S3776.severity = warning # Cognitive Complexity of methods should not be too high +dotnet_diagnostic.S3925.severity = warning # "ISerializable" should be implemented correctly +dotnet_diagnostic.S3900.severity = warning # Arguments of public methods should be validated against null +dotnet_diagnostic.S6354.severity = warning # Use a testable (date) time provider instead diff --git a/.net.csproj b/.net.csproj index 66ef606..c993398 100644 --- a/.net.csproj +++ b/.net.csproj @@ -1,4 +1,4 @@ - + netstandard2.0 diff --git a/Qowaiv.DomainModel.sln b/Qowaiv.DomainModel.sln index 7804f18..0aaa2d6 100644 --- a/Qowaiv.DomainModel.sln +++ b/Qowaiv.DomainModel.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.5.33627.172 diff --git a/example/ConquerClub.Domain/Army.cs b/example/ConquerClub.Domain/Army.cs index 488f4e3..fa9fb3a 100644 --- a/example/ConquerClub.Domain/Army.cs +++ b/example/ConquerClub.Domain/Army.cs @@ -1,4 +1,4 @@ -using Qowaiv; +using Qowaiv; using System.Text.RegularExpressions; namespace ConquerClub.Domain; diff --git a/example/ConquerClub.Domain/AttackResult.cs b/example/ConquerClub.Domain/AttackResult.cs index 159c46d..9965db1 100644 --- a/example/ConquerClub.Domain/AttackResult.cs +++ b/example/ConquerClub.Domain/AttackResult.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain; +namespace ConquerClub.Domain; /// Represents the outcome of an attack. [DebuggerDisplay("{DebuggerDisplay}")] diff --git a/example/ConquerClub.Domain/Commands/Advance.cs b/example/ConquerClub.Domain/Commands/Advance.cs index 2e2ccd3..c5ed9e9 100644 --- a/example/ConquerClub.Domain/Commands/Advance.cs +++ b/example/ConquerClub.Domain/Commands/Advance.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Commands; +namespace ConquerClub.Domain.Commands; public record Advance(Army To, GameId Game, int ExpectedVersion) : Command(Game, ExpectedVersion); diff --git a/example/ConquerClub.Domain/Commands/Attack.cs b/example/ConquerClub.Domain/Commands/Attack.cs index 150ca07..021f426 100644 --- a/example/ConquerClub.Domain/Commands/Attack.cs +++ b/example/ConquerClub.Domain/Commands/Attack.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Commands; +namespace ConquerClub.Domain.Commands; public record Attack( CountryId Attacker, diff --git a/example/ConquerClub.Domain/Commands/AutoAttack.cs b/example/ConquerClub.Domain/Commands/AutoAttack.cs index 7001f1d..9587b91 100644 --- a/example/ConquerClub.Domain/Commands/AutoAttack.cs +++ b/example/ConquerClub.Domain/Commands/AutoAttack.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Commands; +namespace ConquerClub.Domain.Commands; public record AutoAttack( CountryId Attacker, diff --git a/example/ConquerClub.Domain/Commands/Command.cs b/example/ConquerClub.Domain/Commands/Command.cs index f0178dc..09ac9a8 100644 --- a/example/ConquerClub.Domain/Commands/Command.cs +++ b/example/ConquerClub.Domain/Commands/Command.cs @@ -1,3 +1,3 @@ -namespace ConquerClub.Domain.Commands; +namespace ConquerClub.Domain.Commands; public record Command(GameId Game, int ExpectedVersion); diff --git a/example/ConquerClub.Domain/Commands/Deploy.cs b/example/ConquerClub.Domain/Commands/Deploy.cs index 2851bd2..0970f89 100644 --- a/example/ConquerClub.Domain/Commands/Deploy.cs +++ b/example/ConquerClub.Domain/Commands/Deploy.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Commands; +namespace ConquerClub.Domain.Commands; public record Deploy( CountryId Country, diff --git a/example/ConquerClub.Domain/Commands/Reinforce.cs b/example/ConquerClub.Domain/Commands/Reinforce.cs index 79af9b6..7cc165e 100644 --- a/example/ConquerClub.Domain/Commands/Reinforce.cs +++ b/example/ConquerClub.Domain/Commands/Reinforce.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Commands; +namespace ConquerClub.Domain.Commands; public record Reinforce( CountryId From, diff --git a/example/ConquerClub.Domain/Commands/Resign.cs b/example/ConquerClub.Domain/Commands/Resign.cs index 012f0f3..9739a32 100644 --- a/example/ConquerClub.Domain/Commands/Resign.cs +++ b/example/ConquerClub.Domain/Commands/Resign.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Commands; +namespace ConquerClub.Domain.Commands; public record Resign(GameId Game, int ExpectedVersion) : Command(Game, ExpectedVersion); diff --git a/example/ConquerClub.Domain/Commands/Start.cs b/example/ConquerClub.Domain/Commands/Start.cs index fd27def..bfe9186 100644 --- a/example/ConquerClub.Domain/Commands/Start.cs +++ b/example/ConquerClub.Domain/Commands/Start.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Commands; +namespace ConquerClub.Domain.Commands; public record Start( Country[] Countries, diff --git a/example/ConquerClub.Domain/ConquerClub.Domain.csproj b/example/ConquerClub.Domain/ConquerClub.Domain.csproj index 1fb9096..37afcba 100644 --- a/example/ConquerClub.Domain/ConquerClub.Domain.csproj +++ b/example/ConquerClub.Domain/ConquerClub.Domain.csproj @@ -1,4 +1,4 @@ - + diff --git a/example/ConquerClub.Domain/Continent.cs b/example/ConquerClub.Domain/Continent.cs index 3f2a3df..d6492a8 100644 --- a/example/ConquerClub.Domain/Continent.cs +++ b/example/ConquerClub.Domain/Continent.cs @@ -1,4 +1,4 @@ -using ConquerClub.Domain.Diagnostics; +using ConquerClub.Domain.Diagnostics; namespace ConquerClub.Domain; diff --git a/example/ConquerClub.Domain/Country.cs b/example/ConquerClub.Domain/Country.cs index 9b4c0a2..9e7c2c2 100644 --- a/example/ConquerClub.Domain/Country.cs +++ b/example/ConquerClub.Domain/Country.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain; +namespace ConquerClub.Domain; /// Represents a region/country/territory. public sealed class Country diff --git a/example/ConquerClub.Domain/Diagnostics/CollectionDebugView.cs b/example/ConquerClub.Domain/Diagnostics/CollectionDebugView.cs index 0b0024b..3ffc6d4 100644 --- a/example/ConquerClub.Domain/Diagnostics/CollectionDebugView.cs +++ b/example/ConquerClub.Domain/Diagnostics/CollectionDebugView.cs @@ -1,4 +1,4 @@ -#pragma warning disable S2365 +#pragma warning disable S2365 // Properties should not make collection or array copies // Required for debugging purposes. diff --git a/example/ConquerClub.Domain/Dice.cs b/example/ConquerClub.Domain/Dice.cs index 74c37b7..605fbea 100644 --- a/example/ConquerClub.Domain/Dice.cs +++ b/example/ConquerClub.Domain/Dice.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain; +namespace ConquerClub.Domain; /// Represents the (default) dice based attack. public static class Dice diff --git a/example/ConquerClub.Domain/Events/Advanced.cs b/example/ConquerClub.Domain/Events/Advanced.cs index d4640fa..926b8ba 100644 --- a/example/ConquerClub.Domain/Events/Advanced.cs +++ b/example/ConquerClub.Domain/Events/Advanced.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Events +namespace ConquerClub.Domain.Events { public record Advanced(Army To); } diff --git a/example/ConquerClub.Domain/Events/ArmiesInitialized.cs b/example/ConquerClub.Domain/Events/ArmiesInitialized.cs index 720f850..400d85c 100644 --- a/example/ConquerClub.Domain/Events/ArmiesInitialized.cs +++ b/example/ConquerClub.Domain/Events/ArmiesInitialized.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Events +namespace ConquerClub.Domain.Events { public record ArmiesInitialized(params Army[] Armies); } diff --git a/example/ConquerClub.Domain/Events/ArmyInitiated.cs b/example/ConquerClub.Domain/Events/ArmyInitiated.cs index ddb3739..9eec09d 100644 --- a/example/ConquerClub.Domain/Events/ArmyInitiated.cs +++ b/example/ConquerClub.Domain/Events/ArmyInitiated.cs @@ -1,3 +1,3 @@ -namespace ConquerClub.Domain.Events; +namespace ConquerClub.Domain.Events; public record ArmyInitiated(CountryId Country, Army Army); diff --git a/example/ConquerClub.Domain/Events/Attacked.cs b/example/ConquerClub.Domain/Events/Attacked.cs index 37fe9ba..2532a3c 100644 --- a/example/ConquerClub.Domain/Events/Attacked.cs +++ b/example/ConquerClub.Domain/Events/Attacked.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Events; +namespace ConquerClub.Domain.Events; public record Attacked( CountryId Attacker, diff --git a/example/ConquerClub.Domain/Events/Conquered.cs b/example/ConquerClub.Domain/Events/Conquered.cs index 2d1f642..f2c8bce 100644 --- a/example/ConquerClub.Domain/Events/Conquered.cs +++ b/example/ConquerClub.Domain/Events/Conquered.cs @@ -1,3 +1,3 @@ -namespace ConquerClub.Domain.Events; +namespace ConquerClub.Domain.Events; public record Conquered(CountryId Attacker, CountryId Defender); diff --git a/example/ConquerClub.Domain/Events/Deployed.cs b/example/ConquerClub.Domain/Events/Deployed.cs index 9f44f5c..92eb39b 100644 --- a/example/ConquerClub.Domain/Events/Deployed.cs +++ b/example/ConquerClub.Domain/Events/Deployed.cs @@ -1,3 +1,3 @@ -namespace ConquerClub.Domain.Events; +namespace ConquerClub.Domain.Events; public record Deployed(CountryId Country, Army Army); diff --git a/example/ConquerClub.Domain/Events/Finished.cs b/example/ConquerClub.Domain/Events/Finished.cs index ff32caa..7d55add 100644 --- a/example/ConquerClub.Domain/Events/Finished.cs +++ b/example/ConquerClub.Domain/Events/Finished.cs @@ -1,3 +1,3 @@ -namespace ConquerClub.Domain.Events; +namespace ConquerClub.Domain.Events; public sealed record Finished(); diff --git a/example/ConquerClub.Domain/Events/MapInitialized.cs b/example/ConquerClub.Domain/Events/MapInitialized.cs index d6687df..c585064 100644 --- a/example/ConquerClub.Domain/Events/MapInitialized.cs +++ b/example/ConquerClub.Domain/Events/MapInitialized.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Events; +namespace ConquerClub.Domain.Events; public record MapInitialized( IReadOnlyCollection Continents, diff --git a/example/ConquerClub.Domain/Events/Reinforced.cs b/example/ConquerClub.Domain/Events/Reinforced.cs index a0346fc..6c26fdd 100644 --- a/example/ConquerClub.Domain/Events/Reinforced.cs +++ b/example/ConquerClub.Domain/Events/Reinforced.cs @@ -1,3 +1,3 @@ -namespace ConquerClub.Domain.Events; +namespace ConquerClub.Domain.Events; public record Reinforced(CountryId From, CountryId To, Army Army); diff --git a/example/ConquerClub.Domain/Events/Resigned.cs b/example/ConquerClub.Domain/Events/Resigned.cs index dfe38b4..1bdf3f0 100644 --- a/example/ConquerClub.Domain/Events/Resigned.cs +++ b/example/ConquerClub.Domain/Events/Resigned.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Events +namespace ConquerClub.Domain.Events { public record Resigned(Player Player); } diff --git a/example/ConquerClub.Domain/Events/SettingsInitialized.cs b/example/ConquerClub.Domain/Events/SettingsInitialized.cs index f7a75fb..6edcd41 100644 --- a/example/ConquerClub.Domain/Events/SettingsInitialized.cs +++ b/example/ConquerClub.Domain/Events/SettingsInitialized.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Events +namespace ConquerClub.Domain.Events { public record SettingsInitialized(int Players, int RoundLimit, bool FogOfWar); } diff --git a/example/ConquerClub.Domain/Events/TurnStarted.cs b/example/ConquerClub.Domain/Events/TurnStarted.cs index 053fe58..40d8257 100644 --- a/example/ConquerClub.Domain/Events/TurnStarted.cs +++ b/example/ConquerClub.Domain/Events/TurnStarted.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Events +namespace ConquerClub.Domain.Events { public record TurnStarted(Army Deployments); } diff --git a/example/ConquerClub.Domain/Extensions/ConquerClub.Domain.Country.cs b/example/ConquerClub.Domain/Extensions/ConquerClub.Domain.Country.cs index 94f00c7..b0a362f 100644 --- a/example/ConquerClub.Domain/Extensions/ConquerClub.Domain.Country.cs +++ b/example/ConquerClub.Domain/Extensions/ConquerClub.Domain.Country.cs @@ -1,4 +1,4 @@ -using Qowaiv.Validation.Messages; +using Qowaiv.Validation.Messages; namespace ConquerClub.Domain; diff --git a/example/ConquerClub.Domain/Game.Actions.cs b/example/ConquerClub.Domain/Game.Actions.cs index 8e635a7..02ca78c 100644 --- a/example/ConquerClub.Domain/Game.Actions.cs +++ b/example/ConquerClub.Domain/Game.Actions.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain; +namespace ConquerClub.Domain; public sealed partial class Game : Aggregate { diff --git a/example/ConquerClub.Domain/Game.cs b/example/ConquerClub.Domain/Game.cs index af23eda..d00e0b8 100644 --- a/example/ConquerClub.Domain/Game.cs +++ b/example/ConquerClub.Domain/Game.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain; +namespace ConquerClub.Domain; public sealed partial class Game : Aggregate { diff --git a/example/ConquerClub.Domain/GamePhase.cs b/example/ConquerClub.Domain/GamePhase.cs index b094abe..20181ea 100644 --- a/example/ConquerClub.Domain/GamePhase.cs +++ b/example/ConquerClub.Domain/GamePhase.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain +namespace ConquerClub.Domain { public enum GamePhase { diff --git a/example/ConquerClub.Domain/Handlers/CommandHandler.cs b/example/ConquerClub.Domain/Handlers/CommandHandler.cs index defc31d..8a53ae3 100644 --- a/example/ConquerClub.Domain/Handlers/CommandHandler.cs +++ b/example/ConquerClub.Domain/Handlers/CommandHandler.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain.Handlers; +namespace ConquerClub.Domain.Handlers; public interface CommandHandler { diff --git a/example/ConquerClub.Domain/Handlers/GameCommandHandler.cs b/example/ConquerClub.Domain/Handlers/GameCommandHandler.cs index 4c8f42b..2c3bc44 100644 --- a/example/ConquerClub.Domain/Handlers/GameCommandHandler.cs +++ b/example/ConquerClub.Domain/Handlers/GameCommandHandler.cs @@ -1,4 +1,4 @@ -using Qowaiv.Validation.Guarding; +using Qowaiv.Validation.Guarding; namespace ConquerClub.Domain.Handlers; diff --git a/example/ConquerClub.Domain/Messages.Designer.cs b/example/ConquerClub.Domain/Messages.Designer.cs index 0113110..f5fcaaf 100644 --- a/example/ConquerClub.Domain/Messages.Designer.cs +++ b/example/ConquerClub.Domain/Messages.Designer.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 diff --git a/example/ConquerClub.Domain/Messages.resx b/example/ConquerClub.Domain/Messages.resx index dc21cfd..a6eb211 100644 --- a/example/ConquerClub.Domain/Messages.resx +++ b/example/ConquerClub.Domain/Messages.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx diff --git a/example/ConquerClub.Domain/Musts.cs b/example/ConquerClub.Domain/Musts.cs index adb0343..a3c5f13 100644 --- a/example/ConquerClub.Domain/Musts.cs +++ b/example/ConquerClub.Domain/Musts.cs @@ -1,4 +1,4 @@ -using Qowaiv.Validation.Messages; +using Qowaiv.Validation.Messages; using Must = Qowaiv.Validation.Guarding.Must; namespace ConquerClub.Domain; diff --git a/example/ConquerClub.Domain/Player.cs b/example/ConquerClub.Domain/Player.cs index e63c7cf..86114e3 100644 --- a/example/ConquerClub.Domain/Player.cs +++ b/example/ConquerClub.Domain/Player.cs @@ -1,4 +1,4 @@ -#pragma warning disable S1210 // "Equals" and the comparison operators should be overridden when implementing "IComparable" +#pragma warning disable S1210 // "Equals" and the comparison operators should be overridden when implementing "IComparable" // Players should be sortable, but less than, or greater than has no meaning here. using Qowaiv; diff --git a/example/ConquerClub.Domain/Properties/GlobalUsings.cs b/example/ConquerClub.Domain/Properties/GlobalUsings.cs index b883943..2e105ff 100644 --- a/example/ConquerClub.Domain/Properties/GlobalUsings.cs +++ b/example/ConquerClub.Domain/Properties/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using ConquerClub.Domain.Commands; +global using ConquerClub.Domain.Commands; global using ConquerClub.Domain.Events; global using ConquerClub.Domain.Validation; global using MathNet.Numerics.Random; diff --git a/example/ConquerClub.Domain/Settings.cs b/example/ConquerClub.Domain/Settings.cs index 4268098..9058338 100644 --- a/example/ConquerClub.Domain/Settings.cs +++ b/example/ConquerClub.Domain/Settings.cs @@ -1,4 +1,4 @@ -namespace ConquerClub.Domain +namespace ConquerClub.Domain { public record Settings(int Players, int RoundLimit, bool FogOfWar); } diff --git a/example/ConquerClub.Domain/Validation/CountryValidator.cs b/example/ConquerClub.Domain/Validation/CountryValidator.cs index bd339ca..e961375 100644 --- a/example/ConquerClub.Domain/Validation/CountryValidator.cs +++ b/example/ConquerClub.Domain/Validation/CountryValidator.cs @@ -1,4 +1,4 @@ -using FluentValidation; +using FluentValidation; using Qowaiv.Validation.Fluent; namespace ConquerClub.Domain.Validation diff --git a/example/ConquerClub.Domain/Validation/GameValidator.cs b/example/ConquerClub.Domain/Validation/GameValidator.cs index c3a86c7..3bf7940 100644 --- a/example/ConquerClub.Domain/Validation/GameValidator.cs +++ b/example/ConquerClub.Domain/Validation/GameValidator.cs @@ -1,4 +1,4 @@ -using FluentValidation; +using FluentValidation; using Qowaiv.Validation.Fluent; namespace ConquerClub.Domain.Validation diff --git a/example/ConquerClub.Domain/_Ids.cs b/example/ConquerClub.Domain/_Ids.cs index 5c365bf..23fdc40 100644 --- a/example/ConquerClub.Domain/_Ids.cs +++ b/example/ConquerClub.Domain/_Ids.cs @@ -1,4 +1,4 @@ -using Qowaiv; +using Qowaiv; namespace ConquerClub.Domain; diff --git a/example/ConquerClub.UnitTests/Arrange.cs b/example/ConquerClub.UnitTests/Arrange.cs index 868e645..c58ee65 100644 --- a/example/ConquerClub.UnitTests/Arrange.cs +++ b/example/ConquerClub.UnitTests/Arrange.cs @@ -1,4 +1,4 @@ -using Buffer = Qowaiv.DomainModel.EventBuffer>; +using Buffer = Qowaiv.DomainModel.EventBuffer>; namespace ConquerClub.UnitTests; diff --git a/example/ConquerClub.UnitTests/ConquerClub.UnitTests.csproj b/example/ConquerClub.UnitTests/ConquerClub.UnitTests.csproj index aa8895b..3bdaaa3 100644 --- a/example/ConquerClub.UnitTests/ConquerClub.UnitTests.csproj +++ b/example/ConquerClub.UnitTests/ConquerClub.UnitTests.csproj @@ -1,4 +1,4 @@ - + diff --git a/example/ConquerClub.UnitTests/Deploy_specs.cs b/example/ConquerClub.UnitTests/Deploy_specs.cs index 10f0964..1f9f205 100644 --- a/example/ConquerClub.UnitTests/Deploy_specs.cs +++ b/example/ConquerClub.UnitTests/Deploy_specs.cs @@ -1,4 +1,4 @@ -using static ConquerClub.UnitTests.Arrange; +using static ConquerClub.UnitTests.Arrange; using Commands = ConquerClub.Domain.Commands; namespace Deploy_specs; diff --git a/example/ConquerClub.UnitTests/Game_advance_specs.cs b/example/ConquerClub.UnitTests/Game_advance_specs.cs index 4882a20..dc9cb9c 100644 --- a/example/ConquerClub.UnitTests/Game_advance_specs.cs +++ b/example/ConquerClub.UnitTests/Game_advance_specs.cs @@ -1,4 +1,4 @@ -using static ConquerClub.UnitTests.Arrange; +using static ConquerClub.UnitTests.Arrange; namespace Game_specs; diff --git a/example/ConquerClub.UnitTests/Game_attack_specs.cs b/example/ConquerClub.UnitTests/Game_attack_specs.cs index f3a781f..1cc81e1 100644 --- a/example/ConquerClub.UnitTests/Game_attack_specs.cs +++ b/example/ConquerClub.UnitTests/Game_attack_specs.cs @@ -1,4 +1,4 @@ -using static ConquerClub.UnitTests.Arrange; +using static ConquerClub.UnitTests.Arrange; using Commands = ConquerClub.Domain.Commands; namespace Game_specs; diff --git a/example/ConquerClub.UnitTests/Game_auto_attack_specs.cs b/example/ConquerClub.UnitTests/Game_auto_attack_specs.cs index eafb59a..4a5bdd4 100644 --- a/example/ConquerClub.UnitTests/Game_auto_attack_specs.cs +++ b/example/ConquerClub.UnitTests/Game_auto_attack_specs.cs @@ -1,4 +1,4 @@ -using static ConquerClub.UnitTests.Arrange; +using static ConquerClub.UnitTests.Arrange; using Commands = ConquerClub.Domain.Commands; namespace Game_specs; diff --git a/example/ConquerClub.UnitTests/Game_resign_specs.cs b/example/ConquerClub.UnitTests/Game_resign_specs.cs index eaf0434..a1d2760 100644 --- a/example/ConquerClub.UnitTests/Game_resign_specs.cs +++ b/example/ConquerClub.UnitTests/Game_resign_specs.cs @@ -1,4 +1,4 @@ -using static ConquerClub.UnitTests.Arrange; +using static ConquerClub.UnitTests.Arrange; namespace Game_specs; diff --git a/example/ConquerClub.UnitTests/Game_specs.cs b/example/ConquerClub.UnitTests/Game_specs.cs index 8931f4a..12c9836 100644 --- a/example/ConquerClub.UnitTests/Game_specs.cs +++ b/example/ConquerClub.UnitTests/Game_specs.cs @@ -1,4 +1,4 @@ -using static ConquerClub.UnitTests.Arrange; +using static ConquerClub.UnitTests.Arrange; using Commands = ConquerClub.Domain.Commands; namespace Game_specs; diff --git a/example/ConquerClub.UnitTests/Properties/GlobalUsings.cs b/example/ConquerClub.UnitTests/Properties/GlobalUsings.cs index 3f5aa0e..517413f 100644 --- a/example/ConquerClub.UnitTests/Properties/GlobalUsings.cs +++ b/example/ConquerClub.UnitTests/Properties/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using ConquerClub.Domain; +global using ConquerClub.Domain; global using ConquerClub.Domain.Commands; global using ConquerClub.Domain.Events; global using ConquerClub.Domain.Handlers; diff --git a/shared/Guard.cs b/shared/Guard.cs index faa45d7..b1d285d 100644 --- a/shared/Guard.cs +++ b/shared/Guard.cs @@ -1,4 +1,4 @@ -//----------------------------------------------------------------------- +//----------------------------------------------------------------------- // // Copyright (c) Corniel Nobel. All rights reserved. // See: https://github.com/Corniel/Grenadiers/blob/master/LICENSE.md diff --git a/specs/Benchmarks/Benchmarks.csproj b/specs/Benchmarks/Benchmarks.csproj index 3a0e2a1..6f1f2db 100644 --- a/specs/Benchmarks/Benchmarks.csproj +++ b/specs/Benchmarks/Benchmarks.csproj @@ -1,4 +1,4 @@ - + net9.0 diff --git a/specs/Benchmarks/Collections/Added.cs b/specs/Benchmarks/Collections/Added.cs index 205d4f2..409543c 100644 --- a/specs/Benchmarks/Collections/Added.cs +++ b/specs/Benchmarks/Collections/Added.cs @@ -1,4 +1,4 @@ -using Qowaiv.DomainModel.Collections; +using Qowaiv.DomainModel.Collections; namespace Benchmarks.Collections; diff --git a/specs/Benchmarks/Collections/Aggregate_id.cs b/specs/Benchmarks/Collections/Aggregate_id.cs index f1f9481..9b71af8 100644 --- a/specs/Benchmarks/Collections/Aggregate_id.cs +++ b/specs/Benchmarks/Collections/Aggregate_id.cs @@ -1,4 +1,4 @@ -namespace Benchmarks.Collections; +namespace Benchmarks.Collections; public sealed class Aggregate_id : Aggregate { diff --git a/specs/Benchmarks/Collections/Aggregation.cs b/specs/Benchmarks/Collections/Aggregation.cs index d56ee0a..6253896 100644 --- a/specs/Benchmarks/Collections/Aggregation.cs +++ b/specs/Benchmarks/Collections/Aggregation.cs @@ -1,4 +1,4 @@ -namespace Benchmarks.Collections; +namespace Benchmarks.Collections; public class Aggregation { diff --git a/specs/Benchmarks/Collections/BatchCreation.cs b/specs/Benchmarks/Collections/BatchCreation.cs index 9a4f1c1..751a5ab 100644 --- a/specs/Benchmarks/Collections/BatchCreation.cs +++ b/specs/Benchmarks/Collections/BatchCreation.cs @@ -1,4 +1,4 @@ -namespace Benchmarks.Collections; +namespace Benchmarks.Collections; [MemoryDiagnoser] public class BatchCreation diff --git a/specs/Benchmarks/Collections/Creation.cs b/specs/Benchmarks/Collections/Creation.cs index e512e23..e98fabc 100644 --- a/specs/Benchmarks/Collections/Creation.cs +++ b/specs/Benchmarks/Collections/Creation.cs @@ -1,4 +1,4 @@ -namespace Benchmarks.Collections; +namespace Benchmarks.Collections; [MemoryDiagnoser] public class Creation diff --git a/specs/Benchmarks/Collections/Iteration.cs b/specs/Benchmarks/Collections/Iteration.cs index f36e4c8..74b83d8 100644 --- a/specs/Benchmarks/Collections/Iteration.cs +++ b/specs/Benchmarks/Collections/Iteration.cs @@ -1,4 +1,4 @@ -namespace Benchmarks.Collections; +namespace Benchmarks.Collections; public class Iteration { diff --git a/specs/Benchmarks/Program.cs b/specs/Benchmarks/Program.cs index 35e0fda..865a2a0 100644 --- a/specs/Benchmarks/Program.cs +++ b/specs/Benchmarks/Program.cs @@ -1,4 +1,4 @@ -using Benchmarks.Collections; +using Benchmarks.Collections; namespace Benchmarks; diff --git a/specs/Benchmarks/Properties/GlobalUsings.cs b/specs/Benchmarks/Properties/GlobalUsings.cs index 18f6369..9f759fd 100644 --- a/specs/Benchmarks/Properties/GlobalUsings.cs +++ b/specs/Benchmarks/Properties/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using BenchmarkDotNet.Attributes; +global using BenchmarkDotNet.Attributes; global using BenchmarkDotNet.Running; global using Qowaiv.DomainModel; global using System; diff --git a/specs/Benchmarks/README.md b/specs/Benchmarks/README.md index 5a7af1b..2db6ac3 100644 --- a/specs/Benchmarks/README.md +++ b/specs/Benchmarks/README.md @@ -1,4 +1,4 @@ -# Benchmarks +# Benchmarks ## Event Buffer The `Qowaiv.DomainModel.EventBuffer` is an append-only immutable collection. diff --git a/src/Qowaiv.DomainModel.TestTools/AssertionFailed.cs b/src/Qowaiv.DomainModel.TestTools/AssertionFailed.cs index 8c4fac2..8bcef8e 100644 --- a/src/Qowaiv.DomainModel.TestTools/AssertionFailed.cs +++ b/src/Qowaiv.DomainModel.TestTools/AssertionFailed.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.TestTools; +namespace Qowaiv.DomainModel.TestTools; /// Assert exception. /// diff --git a/src/Qowaiv.DomainModel.TestTools/Diagnostics/CollectionDebugView.cs b/src/Qowaiv.DomainModel.TestTools/Diagnostics/CollectionDebugView.cs index d9bf9a0..dce2a03 100644 --- a/src/Qowaiv.DomainModel.TestTools/Diagnostics/CollectionDebugView.cs +++ b/src/Qowaiv.DomainModel.TestTools/Diagnostics/CollectionDebugView.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.TestTools.Diagnostics; +namespace Qowaiv.DomainModel.TestTools.Diagnostics; /// Allows the debugger to display collections. [ExcludeFromCodeCoverage] diff --git a/src/Qowaiv.DomainModel.TestTools/Diagnostics/Contracts/AssertionAttribute.cs b/src/Qowaiv.DomainModel.TestTools/Diagnostics/Contracts/AssertionAttribute.cs index df91f66..07cb24e 100644 --- a/src/Qowaiv.DomainModel.TestTools/Diagnostics/Contracts/AssertionAttribute.cs +++ b/src/Qowaiv.DomainModel.TestTools/Diagnostics/Contracts/AssertionAttribute.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.TestTools.Diagnostics.Contracts; +namespace Qowaiv.DomainModel.TestTools.Diagnostics.Contracts; /// To mark a method explicitly as impure. [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] diff --git a/src/Qowaiv.DomainModel.TestTools/Extensions/QowaivDomainModelFluentAssertions.cs b/src/Qowaiv.DomainModel.TestTools/Extensions/QowaivDomainModelFluentAssertions.cs index 417b580..493e5bb 100644 --- a/src/Qowaiv.DomainModel.TestTools/Extensions/QowaivDomainModelFluentAssertions.cs +++ b/src/Qowaiv.DomainModel.TestTools/Extensions/QowaivDomainModelFluentAssertions.cs @@ -1,4 +1,4 @@ -using Qowaiv.DomainModel; +using Qowaiv.DomainModel; using Qowaiv.DomainModel.TestTools.FluentAssertions; using System.Diagnostics.Contracts; diff --git a/src/Qowaiv.DomainModel.TestTools/Extensions/System.Text.StringBuilder.cs b/src/Qowaiv.DomainModel.TestTools/Extensions/System.Text.StringBuilder.cs index c8ee11d..8fbb6f2 100644 --- a/src/Qowaiv.DomainModel.TestTools/Extensions/System.Text.StringBuilder.cs +++ b/src/Qowaiv.DomainModel.TestTools/Extensions/System.Text.StringBuilder.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace System.Text; diff --git a/src/Qowaiv.DomainModel.TestTools/FluentAssertions/EventBufferAssertions.cs b/src/Qowaiv.DomainModel.TestTools/FluentAssertions/EventBufferAssertions.cs index afda17e..ab55f46 100644 --- a/src/Qowaiv.DomainModel.TestTools/FluentAssertions/EventBufferAssertions.cs +++ b/src/Qowaiv.DomainModel.TestTools/FluentAssertions/EventBufferAssertions.cs @@ -1,4 +1,4 @@ -using FluentAssertions; +using FluentAssertions; using FluentAssertions.Collections; using Qowaiv.DomainModel.TestTools.Diagnostics.Contracts; using System.Text; diff --git a/src/Qowaiv.DomainModel.TestTools/Properties/GlobalUsings.cs b/src/Qowaiv.DomainModel.TestTools/Properties/GlobalUsings.cs index d5eb512..3376769 100644 --- a/src/Qowaiv.DomainModel.TestTools/Properties/GlobalUsings.cs +++ b/src/Qowaiv.DomainModel.TestTools/Properties/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using Qowaiv.Diagnostics.Contracts; +global using Qowaiv.Diagnostics.Contracts; global using Qowaiv.Validation.Abstractions; global using System; global using System.Collections; diff --git a/src/Qowaiv.DomainModel.TestTools/Qowaiv.DomainModel.TestTools.csproj b/src/Qowaiv.DomainModel.TestTools/Qowaiv.DomainModel.TestTools.csproj index afed62a..c9ca730 100644 --- a/src/Qowaiv.DomainModel.TestTools/Qowaiv.DomainModel.TestTools.csproj +++ b/src/Qowaiv.DomainModel.TestTools/Qowaiv.DomainModel.TestTools.csproj @@ -1,4 +1,4 @@ - + diff --git a/src/Qowaiv.DomainModel.TestTools/README.md b/src/Qowaiv.DomainModel.TestTools/README.md index 3f9ca17..c541903 100644 --- a/src/Qowaiv.DomainModel.TestTools/README.md +++ b/src/Qowaiv.DomainModel.TestTools/README.md @@ -1,4 +1,4 @@ -# Qowaiv..DomainModel.TestTools +# Qowaiv..DomainModel.TestTools ## Package This package contains helpers to make writing unit tests for Aggregates easier. diff --git a/src/Qowaiv.DomainModel/Aggregate.cs b/src/Qowaiv.DomainModel/Aggregate.cs index 2beee43..2633564 100644 --- a/src/Qowaiv.DomainModel/Aggregate.cs +++ b/src/Qowaiv.DomainModel/Aggregate.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace Qowaiv.DomainModel; diff --git a/src/Qowaiv.DomainModel/Aggregate_TAggregate.cs b/src/Qowaiv.DomainModel/Aggregate_TAggregate.cs index 7168f0a..c7d3057 100644 --- a/src/Qowaiv.DomainModel/Aggregate_TAggregate.cs +++ b/src/Qowaiv.DomainModel/Aggregate_TAggregate.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel; +namespace Qowaiv.DomainModel; /// Represents an (domain-driven design) aggregate that is based on event sourcing. /// diff --git a/src/Qowaiv.DomainModel/Aggregate_TAggregate_TId.cs b/src/Qowaiv.DomainModel/Aggregate_TAggregate_TId.cs index 65250de..98b4582 100644 --- a/src/Qowaiv.DomainModel/Aggregate_TAggregate_TId.cs +++ b/src/Qowaiv.DomainModel/Aggregate_TAggregate_TId.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel; +namespace Qowaiv.DomainModel; /// Represents an (domain-driven design) aggregate that is based on event sourcing. /// diff --git a/src/Qowaiv.DomainModel/Collections/Enumerator.cs b/src/Qowaiv.DomainModel/Collections/Enumerator.cs index a01c373..30fb5ac 100644 --- a/src/Qowaiv.DomainModel/Collections/Enumerator.cs +++ b/src/Qowaiv.DomainModel/Collections/Enumerator.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Collections; +namespace Qowaiv.DomainModel.Collections; /// Enumerator to iterate all elements in . public struct Enumerator : IEnumerator, IEnumerable diff --git a/src/Qowaiv.DomainModel/Collections/If.cs b/src/Qowaiv.DomainModel/Collections/If.cs index 0592f7f..29bbf58 100644 --- a/src/Qowaiv.DomainModel/Collections/If.cs +++ b/src/Qowaiv.DomainModel/Collections/If.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Collections; +namespace Qowaiv.DomainModel.Collections; /// Represents the start of an (logical) if-statement. [DebuggerDisplay("If: {State}")] diff --git a/src/Qowaiv.DomainModel/Collections/IfState.cs b/src/Qowaiv.DomainModel/Collections/IfState.cs index 5a6f1d5..2146e86 100644 --- a/src/Qowaiv.DomainModel/Collections/IfState.cs +++ b/src/Qowaiv.DomainModel/Collections/IfState.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Collections; +namespace Qowaiv.DomainModel.Collections; /// Represents an (else)-if state. internal enum IfState diff --git a/src/Qowaiv.DomainModel/Collections/ImmutableCollection.cs b/src/Qowaiv.DomainModel/Collections/ImmutableCollection.cs index 6a52f95..7a39b05 100644 --- a/src/Qowaiv.DomainModel/Collections/ImmutableCollection.cs +++ b/src/Qowaiv.DomainModel/Collections/ImmutableCollection.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Collections; +namespace Qowaiv.DomainModel.Collections; /// Represents an immutable collection. /// diff --git a/src/Qowaiv.DomainModel/Collections/ReadOnlySet.cs b/src/Qowaiv.DomainModel/Collections/ReadOnlySet.cs index e9f93a3..fb92ff5 100644 --- a/src/Qowaiv.DomainModel/Collections/ReadOnlySet.cs +++ b/src/Qowaiv.DomainModel/Collections/ReadOnlySet.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Collections; +namespace Qowaiv.DomainModel.Collections; /// Represents a read-only set of items. /// diff --git a/src/Qowaiv.DomainModel/Collections/Then.cs b/src/Qowaiv.DomainModel/Collections/Then.cs index e81ec4f..2609278 100644 --- a/src/Qowaiv.DomainModel/Collections/Then.cs +++ b/src/Qowaiv.DomainModel/Collections/Then.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Collections; +namespace Qowaiv.DomainModel.Collections; /// Represents the conditional addition of an item/items, after the if-statement. [DebuggerDisplay("Count = {Count}")] diff --git a/src/Qowaiv.DomainModel/Commands/CommandProcessor.cs b/src/Qowaiv.DomainModel/Commands/CommandProcessor.cs index 8a9a919..8c03bc3 100644 --- a/src/Qowaiv.DomainModel/Commands/CommandProcessor.cs +++ b/src/Qowaiv.DomainModel/Commands/CommandProcessor.cs @@ -1,4 +1,4 @@ -using System.Collections.Concurrent; +using System.Collections.Concurrent; using System.Linq.Expressions; using System.Reflection; diff --git a/src/Qowaiv.DomainModel/Commands/UnresolvedCommandHandler.cs b/src/Qowaiv.DomainModel/Commands/UnresolvedCommandHandler.cs index d0b78eb..45feada 100644 --- a/src/Qowaiv.DomainModel/Commands/UnresolvedCommandHandler.cs +++ b/src/Qowaiv.DomainModel/Commands/UnresolvedCommandHandler.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Commands; +namespace Qowaiv.DomainModel.Commands; /// The exception that is thrown when a command handler could not be resolved. [Serializable] diff --git a/src/Qowaiv.DomainModel/Diagnostics/CollectionDebugView.cs b/src/Qowaiv.DomainModel/Diagnostics/CollectionDebugView.cs index 7edd212..be8ee27 100644 --- a/src/Qowaiv.DomainModel/Diagnostics/CollectionDebugView.cs +++ b/src/Qowaiv.DomainModel/Diagnostics/CollectionDebugView.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Diagnostics; +namespace Qowaiv.DomainModel.Diagnostics; /// Allows the debugger to display collections. [ExcludeFromCodeCoverage] diff --git a/src/Qowaiv.DomainModel/EventBuffer.cs b/src/Qowaiv.DomainModel/EventBuffer.cs index a71cf8a..2172fd8 100644 --- a/src/Qowaiv.DomainModel/EventBuffer.cs +++ b/src/Qowaiv.DomainModel/EventBuffer.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel; +namespace Qowaiv.DomainModel; /// A function to convert the stored event to the event (payload). /// diff --git a/src/Qowaiv.DomainModel/EventBuffer_TId.cs b/src/Qowaiv.DomainModel/EventBuffer_TId.cs index 0113f06..e1d9a40 100644 --- a/src/Qowaiv.DomainModel/EventBuffer_TId.cs +++ b/src/Qowaiv.DomainModel/EventBuffer_TId.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; namespace Qowaiv.DomainModel; diff --git a/src/Qowaiv.DomainModel/EventDispatcher.cs b/src/Qowaiv.DomainModel/EventDispatcher.cs index 4bb88dc..d5afdb4 100644 --- a/src/Qowaiv.DomainModel/EventDispatcher.cs +++ b/src/Qowaiv.DomainModel/EventDispatcher.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel; +namespace Qowaiv.DomainModel; /// Factory for creating 's. public interface EventDispatcher diff --git a/src/Qowaiv.DomainModel/Extensions/System.Array.cs b/src/Qowaiv.DomainModel/Extensions/System.Array.cs index 9f86f31..1799bdc 100644 --- a/src/Qowaiv.DomainModel/Extensions/System.Array.cs +++ b/src/Qowaiv.DomainModel/Extensions/System.Array.cs @@ -1,4 +1,4 @@ -namespace System.Linq; +namespace System.Linq; /// Extensions on arrays. internal static class QowaivDomainModelArrayExtensions diff --git a/src/Qowaiv.DomainModel/Internal/AppendOnlyCollection.cs b/src/Qowaiv.DomainModel/Internal/AppendOnlyCollection.cs index 5923c97..07ee951 100644 --- a/src/Qowaiv.DomainModel/Internal/AppendOnlyCollection.cs +++ b/src/Qowaiv.DomainModel/Internal/AppendOnlyCollection.cs @@ -1,4 +1,4 @@ -using System.Runtime.CompilerServices; +using System.Runtime.CompilerServices; namespace Qowaiv.DomainModel.Internal; diff --git a/src/Qowaiv.DomainModel/Internal/Singleton.cs b/src/Qowaiv.DomainModel/Internal/Singleton.cs index ed1ee6f..797ded5 100644 --- a/src/Qowaiv.DomainModel/Internal/Singleton.cs +++ b/src/Qowaiv.DomainModel/Internal/Singleton.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.Internal; +namespace Qowaiv.DomainModel.Internal; /// Converts a single element into a set with one item. internal struct Singleton : IReadOnlyCollection, IEnumerator diff --git a/src/Qowaiv.DomainModel/Obsolete.cs b/src/Qowaiv.DomainModel/Obsolete.cs index 0168276..91d4c32 100644 --- a/src/Qowaiv.DomainModel/Obsolete.cs +++ b/src/Qowaiv.DomainModel/Obsolete.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel; +namespace Qowaiv.DomainModel; /// Factory method for creating from stored events. [ExcludeFromCodeCoverage/* Justification = To help converting only. */] diff --git a/src/Qowaiv.DomainModel/Properties/GlobalUsings.cs b/src/Qowaiv.DomainModel/Properties/GlobalUsings.cs index 5c68320..4f6307d 100644 --- a/src/Qowaiv.DomainModel/Properties/GlobalUsings.cs +++ b/src/Qowaiv.DomainModel/Properties/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using Qowaiv.Diagnostics.Contracts; +global using Qowaiv.Diagnostics.Contracts; global using Qowaiv.DomainModel; global using Qowaiv.DomainModel.Collections; global using Qowaiv.DomainModel.Diagnostics; diff --git a/src/Qowaiv.DomainModel/Qowaiv.DomainModel.csproj b/src/Qowaiv.DomainModel/Qowaiv.DomainModel.csproj index c23db4d..94a0a2b 100644 --- a/src/Qowaiv.DomainModel/Qowaiv.DomainModel.csproj +++ b/src/Qowaiv.DomainModel/Qowaiv.DomainModel.csproj @@ -1,4 +1,4 @@ - + diff --git a/src/Qowaiv.DomainModel/Qowaiv.Validation.Guarding/Musts.cs b/src/Qowaiv.DomainModel/Qowaiv.Validation.Guarding/Musts.cs index 57a261a..c4dbbd2 100644 --- a/src/Qowaiv.DomainModel/Qowaiv.Validation.Guarding/Musts.cs +++ b/src/Qowaiv.DomainModel/Qowaiv.Validation.Guarding/Musts.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.Validation.Guarding; +namespace Qowaiv.Validation.Guarding; /// Extensions on . public static class DomainModelExtensions diff --git a/src/Qowaiv.DomainModel/QowaivDomainModelMessages.Designer.cs b/src/Qowaiv.DomainModel/QowaivDomainModelMessages.Designer.cs index b866b9a..482070f 100644 --- a/src/Qowaiv.DomainModel/QowaivDomainModelMessages.Designer.cs +++ b/src/Qowaiv.DomainModel/QowaivDomainModelMessages.Designer.cs @@ -1,4 +1,4 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.42000 diff --git a/src/Qowaiv.DomainModel/QowaivDomainModelMessages.resx b/src/Qowaiv.DomainModel/QowaivDomainModelMessages.resx index b211a41..60d22b7 100644 --- a/src/Qowaiv.DomainModel/QowaivDomainModelMessages.resx +++ b/src/Qowaiv.DomainModel/QowaivDomainModelMessages.resx @@ -1,4 +1,4 @@ - + text/microsoft-resx diff --git a/src/Qowaiv.DomainModel/README.md b/src/Qowaiv.DomainModel/README.md index 60c1212..5a3d6d1 100644 --- a/src/Qowaiv.DomainModel/README.md +++ b/src/Qowaiv.DomainModel/README.md @@ -1,4 +1,4 @@ -# Qowaiv.DomainModel +# Qowaiv.DomainModel Qowaiv Domain Model is a library containing the (abstract) building blocks to set up a Domain-Driven application. diff --git a/src/Qowaiv.DomainModel/Reflection/ExpressionCompilingEventDispatcher.cs b/src/Qowaiv.DomainModel/Reflection/ExpressionCompilingEventDispatcher.cs index 974332f..98dfdd8 100644 --- a/src/Qowaiv.DomainModel/Reflection/ExpressionCompilingEventDispatcher.cs +++ b/src/Qowaiv.DomainModel/Reflection/ExpressionCompilingEventDispatcher.cs @@ -1,4 +1,4 @@ -using System.Linq.Expressions; +using System.Linq.Expressions; using System.Reflection; namespace Qowaiv.DomainModel.Reflection; diff --git a/test/Qowaiv.DomainModel.UnitTests/Collections/Immutable_Collection_specs.cs b/test/Qowaiv.DomainModel.UnitTests/Collections/Immutable_Collection_specs.cs index af87735..160e6f9 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Collections/Immutable_Collection_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Collections/Immutable_Collection_specs.cs @@ -1,4 +1,4 @@ -namespace Collections.Immutable_Collection_specs; +namespace Collections.Immutable_Collection_specs; internal static class Help { diff --git a/test/Qowaiv.DomainModel.UnitTests/Commands/CommandProcessor_specs.cs b/test/Qowaiv.DomainModel.UnitTests/Commands/CommandProcessor_specs.cs index b994ae5..f452826 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Commands/CommandProcessor_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Commands/CommandProcessor_specs.cs @@ -1,4 +1,4 @@ -namespace Commands.CommandProcessor_specs; +namespace Commands.CommandProcessor_specs; interface CommandHandler { Task> Handle(TCommand command); } interface CancelableCommandHandler { Task> Handle(TCommand command, CancellationToken token); } diff --git a/test/Qowaiv.DomainModel.UnitTests/Event_buffer_specs.cs b/test/Qowaiv.DomainModel.UnitTests/Event_buffer_specs.cs index 10b6a8d..df8b6b9 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Event_buffer_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Event_buffer_specs.cs @@ -1,4 +1,4 @@ -using Qowaiv.DomainModel; +using Qowaiv.DomainModel; namespace Event_buffer_specs; diff --git a/test/Qowaiv.DomainModel.UnitTests/Event_sourced_aggregate_specs.cs b/test/Qowaiv.DomainModel.UnitTests/Event_sourced_aggregate_specs.cs index e7fc75b..a0d746b 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Event_sourced_aggregate_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Event_sourced_aggregate_specs.cs @@ -1,4 +1,4 @@ -using NUnit.Framework.Internal.Execution; +using NUnit.Framework.Internal.Execution; using Qowaiv.DomainModel; namespace Event_sourced_aggregate_specs diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/AggregateStub.cs b/test/Qowaiv.DomainModel.UnitTests/Models/AggregateStub.cs index d481631..4789046 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/AggregateStub.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/AggregateStub.cs @@ -1,4 +1,4 @@ -using Qowaiv.DomainModel; +using Qowaiv.DomainModel; using System.Diagnostics.Contracts; namespace Models; diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/ArrayEvent.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/ArrayEvent.cs index 49c9d90..6ff5f5e 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/ArrayEvent.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/ArrayEvent.cs @@ -1,4 +1,4 @@ -namespace Models.Events; +namespace Models.Events; public sealed class ArrayEvent { diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/ComplexEvent.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/ComplexEvent.cs index 2ba67fd..fdb01f2 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/ComplexEvent.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/ComplexEvent.cs @@ -1,3 +1,3 @@ -namespace Models.Events; +namespace Models.Events; public sealed record class ComplexEvent(int Value, string Message, DateTime Date); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/DateOfBirthUpdated.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/DateOfBirthUpdated.cs index a5ece3f..621cdb9 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/DateOfBirthUpdated.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/DateOfBirthUpdated.cs @@ -1,3 +1,3 @@ -namespace Models.Events; +namespace Models.Events; public sealed record DateOfBirthUpdated(Date DateOfBirth); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/EmptyEvent.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/EmptyEvent.cs index b0dabda..55d3c26 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/EmptyEvent.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/EmptyEvent.cs @@ -1,4 +1,4 @@ -namespace Models.Events; +namespace Models.Events; [EmptyTestClass] public sealed record EmptyEvent(); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/InvalidEvent.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/InvalidEvent.cs index d764373..d92310d 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/InvalidEvent.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/InvalidEvent.cs @@ -1,4 +1,4 @@ -namespace Models.Events; +namespace Models.Events; [EmptyTestClass] public sealed record InvalidEvent(); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/NameUpdated.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/NameUpdated.cs index 4ad4c94..faca9cf 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/NameUpdated.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/NameUpdated.cs @@ -1,3 +1,3 @@ -namespace Models.Events; +namespace Models.Events; public sealed record NameUpdated(string Name); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/OtherEvent.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/OtherEvent.cs index 12e253b..5d34014 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/OtherEvent.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/OtherEvent.cs @@ -1,3 +1,3 @@ -namespace Models.Events; +namespace Models.Events; public sealed record OtherEvent(int Value); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/SimpleEvent.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/SimpleEvent.cs index e98d22c..60cf9fc 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/SimpleEvent.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/SimpleEvent.cs @@ -1,3 +1,3 @@ -namespace Models.Events; +namespace Models.Events; public sealed record SimpleEvent(int Value); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/SimpleInitEvent.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/SimpleInitEvent.cs index 377de54..74f1829 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/SimpleInitEvent.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/SimpleInitEvent.cs @@ -1,4 +1,4 @@ -namespace Models.Events; +namespace Models.Events; [EmptyTestClass] public sealed record SimpleInitEvent(); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/Events/StoredEvent.cs b/test/Qowaiv.DomainModel.UnitTests/Models/Events/StoredEvent.cs index 933d579..0601aae 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/Events/StoredEvent.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/Events/StoredEvent.cs @@ -1,3 +1,3 @@ -namespace Models.Events; +namespace Models.Events; public sealed record StoredEvent(object Id, long Version, object Payload); diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/SimpleEventSourcedAggregate.cs b/test/Qowaiv.DomainModel.UnitTests/Models/SimpleEventSourcedAggregate.cs index d0ea9e9..3a02969 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/SimpleEventSourcedAggregate.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/SimpleEventSourcedAggregate.cs @@ -1,4 +1,4 @@ -using Qowaiv.DomainModel; +using Qowaiv.DomainModel; namespace Models; diff --git a/test/Qowaiv.DomainModel.UnitTests/Models/SimpleEventSourcedAggregateValidator.cs b/test/Qowaiv.DomainModel.UnitTests/Models/SimpleEventSourcedAggregateValidator.cs index 5090139..4219241 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Models/SimpleEventSourcedAggregateValidator.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Models/SimpleEventSourcedAggregateValidator.cs @@ -1,4 +1,4 @@ -using FluentValidation; +using FluentValidation; using Qowaiv.Validation.Fluent; namespace Models; diff --git a/test/Qowaiv.DomainModel.UnitTests/Must_specs.cs b/test/Qowaiv.DomainModel.UnitTests/Must_specs.cs index f6a2630..4573463 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Must_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Must_specs.cs @@ -1,4 +1,4 @@ -using Qowaiv.Validation.Guarding; +using Qowaiv.Validation.Guarding; using Qowaiv.Validation.Messages; namespace Must_specs diff --git a/test/Qowaiv.DomainModel.UnitTests/NuGet_packages_specs.cs b/test/Qowaiv.DomainModel.UnitTests/NuGet_packages_specs.cs index 8acdcd8..a5fc2fc 100644 --- a/test/Qowaiv.DomainModel.UnitTests/NuGet_packages_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/NuGet_packages_specs.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; namespace NuGet_packages_specs; diff --git a/test/Qowaiv.DomainModel.UnitTests/Pre_processing_events_specs.cs b/test/Qowaiv.DomainModel.UnitTests/Pre_processing_events_specs.cs index 43057fe..f3a263e 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Pre_processing_events_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Pre_processing_events_specs.cs @@ -1,4 +1,4 @@ -using Qowaiv.DomainModel; +using Qowaiv.DomainModel; namespace Pre_processing_events_specs; diff --git a/test/Qowaiv.DomainModel.UnitTests/Properties/GlobalUsings.cs b/test/Qowaiv.DomainModel.UnitTests/Properties/GlobalUsings.cs index 16a22d9..be0644e 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Properties/GlobalUsings.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Properties/GlobalUsings.cs @@ -1,4 +1,4 @@ -global using FluentAssertions; +global using FluentAssertions; global using Models; global using Models.Events; global using NUnit.Framework; diff --git a/test/Qowaiv.DomainModel.UnitTests/Qowaiv.DomainModel.UnitTests.csproj b/test/Qowaiv.DomainModel.UnitTests/Qowaiv.DomainModel.UnitTests.csproj index d139410..fdb650d 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Qowaiv.DomainModel.UnitTests.csproj +++ b/test/Qowaiv.DomainModel.UnitTests/Qowaiv.DomainModel.UnitTests.csproj @@ -1,4 +1,4 @@ - + diff --git a/test/Qowaiv.DomainModel.UnitTests/Reflection/Expression_compiling_event_dispatcher_specs.cs b/test/Qowaiv.DomainModel.UnitTests/Reflection/Expression_compiling_event_dispatcher_specs.cs index 46577cd..f627f29 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Reflection/Expression_compiling_event_dispatcher_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Reflection/Expression_compiling_event_dispatcher_specs.cs @@ -1,4 +1,4 @@ -#pragma warning disable CA1822 // Mark members as static, methods are used for tests and need to be instance-based +#pragma warning disable CA1822 // Mark members as static, methods are used for tests and need to be instance-based using Qowaiv.DomainModel.Reflection; diff --git a/test/Qowaiv.DomainModel.UnitTests/Supported_EventTypes_specs.cs b/test/Qowaiv.DomainModel.UnitTests/Supported_EventTypes_specs.cs index d6f737b..68f87f9 100644 --- a/test/Qowaiv.DomainModel.UnitTests/Supported_EventTypes_specs.cs +++ b/test/Qowaiv.DomainModel.UnitTests/Supported_EventTypes_specs.cs @@ -1,4 +1,4 @@ -using Qowaiv.DomainModel; +using Qowaiv.DomainModel; namespace Supported_EventTypes_specs; diff --git a/test/Qowaiv.DomainModel.UnitTests/TestTools/EmptyTestClassAttribute.cs b/test/Qowaiv.DomainModel.UnitTests/TestTools/EmptyTestClassAttribute.cs index 9133f16..e934968 100644 --- a/test/Qowaiv.DomainModel.UnitTests/TestTools/EmptyTestClassAttribute.cs +++ b/test/Qowaiv.DomainModel.UnitTests/TestTools/EmptyTestClassAttribute.cs @@ -1,4 +1,4 @@ -namespace Qowaiv.DomainModel.UnitTests; +namespace Qowaiv.DomainModel.UnitTests; [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class EmptyTestClassAttribute : Attribute { }