Push on main #18
codeql
on: dynamic
Matrix: analyze
Annotations
11 errors
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule040 ► WhenIsNotPublic_ThenAlerts:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "3"
Diagnostics:
// /0/Test0.cs(5,23): warning SAASDDD040: Class 'AClassed' should be 'public'
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD040).WithSpan(5, 23, 5, 31).WithArguments("AClassed"),
// /0/Test0.cs(16,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(16, 28, 16, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(18,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(18, 30, 18, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule041 ► WhenIsNotSealed_ThenAlerts:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "3"
Diagnostics:
// /0/Test0.cs(5,14): warning SAASDDD041: Class 'AClassed' should be marked as 'sealed'
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD041).WithSpan(5, 14, 5, 22).WithArguments("AClassed"),
// /0/Test0.cs(16,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(16, 28, 16, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(18,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(18, 30, 18, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule042 ► WhenHasCtorAndIsParameterless_ThenNoAlert:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "2"
Diagnostics:
// /0/Test0.cs(22,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(22, 28, 22, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(24,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(24, 30, 24, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule042 ► WhenHasCtorAndNotParameterless_ThenAlerts:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "3"
Diagnostics:
// /0/Test0.cs(5,21): warning SAASDDD042: Class 'AClassed' must have a public parameterless constructor, for serialization
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD042).WithSpan(5, 21, 5, 29).WithArguments("AClassed"),
// /0/Test0.cs(22,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(22, 28, 22, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(24,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(24, 30, 24, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule042 ► WhenHasCtorAndPrivate_ThenAlerts:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "3"
Diagnostics:
// /0/Test0.cs(5,21): warning SAASDDD042: Class 'AClassed' must have a public parameterless constructor, for serialization
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD042).WithSpan(5, 21, 5, 29).WithArguments("AClassed"),
// /0/Test0.cs(22,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(22, 28, 22, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(24,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(24, 30, 24, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule043 ► WhenNamedInThePastTense_ThenNoAlert:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "2"
Diagnostics:
// /0/Test0.cs(16,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(16, 28, 16, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(18,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(18, 30, 18, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule043 ► WhenNotNamedInThePastTense_ThenAlerts:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "3"
Diagnostics:
// /0/Test0.cs(5,21): warning SAASDDD043: Domain Event 'AClass' must be named in the past tense
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD043).WithSpan(5, 21, 5, 27).WithArguments("AClass"),
// /0/Test0.cs(16,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(16, 28, 16, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(18,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(18, 30, 18, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule045 ► WhenCreateFactoryReturnsWrongType_ThenAlerts:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "3"
Diagnostics:
// /0/Test0.cs(7,26): warning SAASDDD045: Factory method 'Create' must return this type: 'ANamespace.AClassed'
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD045).WithSpan(7, 26, 7, 32).WithArguments("Create", "ANamespace.AClassed"),
// /0/Test0.cs(12,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(12, 28, 12, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(14,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(14, 30, 14, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule046 ► WhenAnyPropertyHasNoSetter_ThenAlerts:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "1" actual "4"
Diagnostics:
// /0/Test0.cs(16,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(16, 28, 16, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(18,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(18, 30, 18, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(20,20): warning SAASDDD046: Property 'AProperty' must have a 'public' getter and 'public' setter, for serialization
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD046).WithSpan(20, 20, 20, 29).WithArguments("AProperty"),
// /0/Test0.cs(20,20): warning SAASDDD049: 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 Enum, or a List<T>/Dictionary<string, T> of one of those types, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(20, 20, 20, 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.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule047 ► WhenAnyPropertyEnumTypeIsInitializedAndNotRequiredAndNotNullable_ThenNoAlert:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "2"
Diagnostics:
// /0/Test0.cs(16,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(16, 28, 16, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(18,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(18, 30, 18, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|
Tools.Analyzers.NonPlatform.UnitTests.DomainDrivenDesignAnalyzerSpec+GivenADomainEvent+GivenRule047 ► WhenAnyPropertyEnumTypeIsInitializedAndNullableAndNotRequired_ThenNoAlert:
src/Tools.Analyzers.NonPlatform.UnitTests/Verify.cs#L178
Failed test found in:
src/TestResults/csharp/runneradmin_fv-az1455-159_2024-10-29_21_34_59.trx
Error:
System.InvalidOperationException : Mismatch between number of diagnostics returned, expected "0" actual "2"
Diagnostics:
// /0/Test0.cs(16,28): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(16, 28, 16, 34).WithArguments("RootId", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
// /0/Test0.cs(18,30): warning SAASDDD049: 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, or another DTO
VerifyCS.Diagnostic(DomainDrivenDesignAnalyzer.SAASDDD049).WithSpan(18, 30, 18, 41).WithArguments("OccurredUtc", "bool or string or ulong or int or long or double or decimal or System.DateTime or byte"),
|