Skip to content

Added roslyn rules for requests and responses #10 #178

Added roslyn rules for requests and responses #10

Added roslyn rules for requests and responses #10 #178

Triggered via push March 20, 2024 03:56
Status Failure
Total duration 5m 20s
Artifacts

build.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

12 errors and 33 warnings
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenAnyReadModel ► WhenComplete_ThenNoAlert: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "1" Diagnostics: // /0/Test0.cs(10,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(10, 29, 10, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule020 ► WhenIsNotPublic_ThenAlerts: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "2" Diagnostics: // /0/Test0.cs(8,16): warning SAASAPP020: Class 'AClass' should be 'public' VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP020).WithSpan(8, 16, 8, 22).WithArguments("AClass"), // /0/Test0.cs(10,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(10, 29, 10, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule021 ► WhenMissingEntityNameAttribute_ThenAlerts: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Context: Verifying exclusions in '#pragma warning disable' code Mismatch between number of diagnostics returned, expected "0" actual "1" Diagnostics: // /0/Test0.cs(10,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(10, 29, 10, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule022 ► WhenHasCtorAndIsParameterless_ThenNoAlert: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "1" Diagnostics: // /0/Test0.cs(15,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(15, 29, 15, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule022 ► WhenHasCtorAndNotParameterless_ThenAlerts: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "2" Diagnostics: // /0/Test0.cs(8,14): warning SAASAPP022: Class 'AClass' must have a public parameterless constructor, for serialization VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP022).WithSpan(8, 14, 8, 20).WithArguments("AClass"), // /0/Test0.cs(15,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(15, 29, 15, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule022 ► WhenHasCtorAndPrivate_ThenAlerts: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "2" Diagnostics: // /0/Test0.cs(8,14): warning SAASAPP022: Class 'AClass' must have a public parameterless constructor, for serialization VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP022).WithSpan(8, 14, 8, 20).WithArguments("AClass"), // /0/Test0.cs(15,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(15, 29, 15, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule023 ► WhenAnyPropertyHasNoSetter_ThenAlerts: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "2" Diagnostics: // /0/Test0.cs(10,29): warning SAASAPP023: Property 'AProperty' must have a 'public' getter and 'public' setter, for serialization VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP023).WithSpan(10, 29, 10, 38).WithArguments("AProperty"), // /0/Test0.cs(10,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(10, 29, 10, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule024 ► WhenAnyPropertyIsNullable_ThenAlerts: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "2" Diagnostics: // /0/Test0.cs(10,20): warning SAASAPP024: Property 'AProperty' should be 'Optional<T>' not nullable VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP024).WithSpan(10, 20, 10, 29).WithArguments("AProperty"), // /0/Test0.cs(10,20): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(10, 20, 10, 29).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule024 ► WhenAnyPropertyIsOptionalAndInitialized_ThenNoAlert: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "1" Diagnostics: // /0/Test0.cs(12,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(12, 29, 12, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule024 ► WhenAnyPropertyIsOptionalAndNotInitialized_ThenNoAlert: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "1" Diagnostics: // /0/Test0.cs(10,29): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(10, 29, 10, 38).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
Tools.Analyzers.NonPlatform.UnitTests.ApplicationLayerAnalyzerSpec+GivenAReadModel+GivenRule025 ► WhenAnyPropertyIsSupportedDictionaryOfPrimitive_ThenNoAlert: src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L166
Failed test found in: src/TestResults/csharp/runneradmin_fv-az1258-503_2024-03-20_04_01_14[2].trx Error: System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "1" Diagnostics: // /0/Test0.cs(12,49): warning SAASAPP025: Property 'AProperty' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any ValueObject, or any Enum, or an Optional<T>/List<T>/Dictionary<string, T> of one of those types VerifyCS.Diagnostic(ApplicationLayerAnalyzer.SAASAPP025).WithSpan(12, 49, 12, 58).WithArguments("AProperty", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
test
Process completed with exit code 1.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-dotnet@v3, dorny/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
Test report summary exceeded limit of 65535 bytes and will be trimmed
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-dotnet@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build: src/Application.Common.UnitTests/Extensions/FeatureFlagExtensionsSpec.cs#L37
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Application.Common.UnitTests/Extensions/FeatureFlagExtensionsSpec.cs#L52
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Application.Common.UnitTests/Extensions/FeatureFlagExtensionsSpec.cs#L67
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Infrastructure.Web.Api.Common.UnitTests/Endpoints/ApiUsageFilterSpec.cs#L74
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Infrastructure.Shared.IntegrationTests/ApplicationServices/External/FlagsmithHttpServiceClientSpec.cs#L39
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Infrastructure.Shared.IntegrationTests/ApplicationServices/External/FlagsmithHttpServiceClientSpec.cs#L62
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Infrastructure.Shared.IntegrationTests/ApplicationServices/External/FlagsmithHttpServiceClientSpec.cs#L75
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Infrastructure.Shared.IntegrationTests/ApplicationServices/External/FlagsmithHttpServiceClientSpec.cs#L88
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Infrastructure.Shared.IntegrationTests/ApplicationServices/External/FlagsmithHttpServiceClientSpec.cs#L101
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/Infrastructure.Shared.IntegrationTests/ApplicationServices/External/FlagsmithHttpServiceClientSpec.cs#L115
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
build: src/BookingsDomain/Events.cs#L45
Property 'BorrowerId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L20
Property 'OrganizationId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L71
Property 'CarId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L47
Property 'End' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L22
Property 'RootId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L24
Property 'OccurredUtc' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L49
Property 'OrganizationId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L73
Property 'OrganizationId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L75
Property 'RootId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/BookingsDomain/Events.cs#L51
Property 'Start' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte', or any Enum, or a List<T>/Dictionary<string, T> of one of those types
build: src/Application.Resources.Shared/Organization.cs#L8
Property 'CreatedById' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/Car.cs#L55
Property 'CarId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/Ancillary.cs#L7
Property 'AgainstId' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/EndUser.cs#L50
Property 'Features' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/Organization.cs#L10
Property 'Name' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/Ancillary.cs#L9
Property 'AuditCode' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/Car.cs#L57
Property 'CausedByReason' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/EndUser.cs#L52
Property 'IsDefault' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/Car.cs#L59
Property 'CausedByReference' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace
build: src/Application.Resources.Shared/Ancillary.cs#L11
Property 'MessageTemplate' must return one of these primitive types: 'bool or string or ulong or int or long or double or decimal or System.DateTime or byte or System.IO.Stream', or a List<T>/Dictionary<string, T> of one of those types, or be another type in the 'Application.Resources.Shared' namespace