From 1dfe2cf460ae34e1f2d65f2ece4bead320a4522c Mon Sep 17 00:00:00 2001 From: mvarendorff Date: Tue, 5 Nov 2024 10:19:30 +0100 Subject: [PATCH] fix: update verify snapshots --- ...IfClassIsNotPartial.DotNet8_0.verified.txt | 14 ---------- ...IfClassIsNotPartial.DotNet9_0.verified.txt | 14 ---------- ...enClassIsNotPartial.DotNet8_0.verified.txt | 28 ++++++++++++++----- ...enClassIsNotPartial.DotNet9_0.verified.txt | 28 ++++++++++++++----- ...plicatePropertyName.DotNet8_0.verified.txt | 23 ++++++++++----- ...plicatePropertyName.DotNet9_0.verified.txt | 23 ++++++++++----- ...yTypeIsNotSupported.DotNet8_0.verified.txt | 23 ++++++++++----- ...yTypeIsNotSupported.DotNet9_0.verified.txt | 23 ++++++++++----- ...nInvalidInheritance.DotNet8_0.verified.txt | 23 ++++++++++----- ...nInvalidInheritance.DotNet9_0.verified.txt | 23 ++++++++++----- ...henNamespaceMissing.DotNet8_0.verified.txt | 23 ++++++++++----- ...henNamespaceMissing.DotNet9_0.verified.txt | 23 ++++++++++----- ...cWhenNamingConflict.DotNet8_0.verified.txt | 23 ++++++++++----- ...cWhenNamingConflict.DotNet9_0.verified.txt | 23 ++++++++++----- ...eservedPropertyName.DotNet8_0.verified.txt | 23 ++++++++++----- ...eservedPropertyName.DotNet9_0.verified.txt | 23 ++++++++++----- ...pportedPropertyType.DotNet8_0.verified.txt | 23 ++++++++++----- ...pportedPropertyType.DotNet9_0.verified.txt | 23 ++++++++++----- 18 files changed, 266 insertions(+), 140 deletions(-) delete mode 100644 src/Fluss.UnitTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet8_0.verified.txt delete mode 100644 src/Fluss.UnitTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet9_0.verified.txt diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet8_0.verified.txt deleted file mode 100644 index b5a007a..0000000 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet8_0.verified.txt +++ /dev/null @@ -1,14 +0,0 @@ -{ - Diagnostics: [ - { - Id: FLUSS0001, - Title: Class must be partial, - Severity: Error, - WarningLevel: 0, - Location: : (4,0)-(6,1), - MessageFormat: Class '{0}' must be partial, - Message: Class 'TestCrud' must be partial, - Category: Fluss.Regen - } - ] -} \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet9_0.verified.txt deleted file mode 100644 index b5a007a..0000000 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet9_0.verified.txt +++ /dev/null @@ -1,14 +0,0 @@ -{ - Diagnostics: [ - { - Id: FLUSS0001, - Title: Class must be partial, - Severity: Error, - WarningLevel: 0, - Location: : (4,0)-(6,1), - MessageFormat: Class '{0}' must be partial, - Message: Class 'TestCrud' must be partial, - Category: Fluss.Regen - } - ] -} \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet8_0.verified.txt index f517cfa..8c845b1 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet8_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet8_0.verified.txt @@ -1,14 +1,28 @@ { Diagnostics: [ { - Id: FLUSS0001, - Title: Class must be partial, - Severity: Error, - WarningLevel: 0, - Location: : (4,0)-(7,1), - MessageFormat: Class '{0}' must be partial, + Location: /* + +[Crud] +^^^^^^ +public class TestCrud { +^^^^^^^^^^^^^^^^^^^^^^^ + public int Id { get; set; } +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} +^ +*/ + : (4,0)-(7,1), Message: Class 'TestCrud' must be partial, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0001, + Title: Class must be partial, + MessageFormat: Class '{0}' must be partial, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet9_0.verified.txt index f517cfa..8c845b1 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet9_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet9_0.verified.txt @@ -1,14 +1,28 @@ { Diagnostics: [ { - Id: FLUSS0001, - Title: Class must be partial, - Severity: Error, - WarningLevel: 0, - Location: : (4,0)-(7,1), - MessageFormat: Class '{0}' must be partial, + Location: /* + +[Crud] +^^^^^^ +public class TestCrud { +^^^^^^^^^^^^^^^^^^^^^^^ + public int Id { get; set; } +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +} +^ +*/ + : (4,0)-(7,1), Message: Class 'TestCrud' must be partial, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0001, + Title: Class must be partial, + MessageFormat: Class '{0}' must be partial, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet8_0.verified.txt index a14e1d6..5526522 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet8_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet8_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0003, - Title: Duplicate property name, - Severity: Error, - WarningLevel: 0, - Location: : (7,18)-(7,22), - MessageFormat: Duplicate property name '{0}' found in CRUD class '{1}', + Location: /* + public int Test { get; set; } + public string Test { get; set; } + ^^^^ +} +*/ + : (7,18)-(7,22), Message: Duplicate property name 'Test' found in CRUD class 'TestCrud', - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0003, + Title: Duplicate property name, + MessageFormat: Duplicate property name '{0}' found in CRUD class '{1}', + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet9_0.verified.txt index a14e1d6..5526522 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet9_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet9_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0003, - Title: Duplicate property name, - Severity: Error, - WarningLevel: 0, - Location: : (7,18)-(7,22), - MessageFormat: Duplicate property name '{0}' found in CRUD class '{1}', + Location: /* + public int Test { get; set; } + public string Test { get; set; } + ^^^^ +} +*/ + : (7,18)-(7,22), Message: Duplicate property name 'Test' found in CRUD class 'TestCrud', - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0003, + Title: Duplicate property name, + MessageFormat: Duplicate property name '{0}' found in CRUD class '{1}', + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet8_0.verified.txt index 2aa3e3b..5aa5218 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet8_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet8_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0002, - Title: ID property type must be supported, - Severity: Error, - WarningLevel: 0, - Location: : (6,18)-(6,20), - MessageFormat: The ID property '{0}' must be of type Guid or a struct that could be a strongly-typed ID, + Location: /* +public partial class TestCrud { + public string Id { get; set; } + ^^ +} +*/ + : (6,18)-(6,20), Message: The ID property 'Id' must be of type Guid or a struct that could be a strongly-typed ID, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0002, + Title: ID property type must be supported, + MessageFormat: The ID property '{0}' must be of type Guid or a struct that could be a strongly-typed ID, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet9_0.verified.txt index 2aa3e3b..5aa5218 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet9_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet9_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0002, - Title: ID property type must be supported, - Severity: Error, - WarningLevel: 0, - Location: : (6,18)-(6,20), - MessageFormat: The ID property '{0}' must be of type Guid or a struct that could be a strongly-typed ID, + Location: /* +public partial class TestCrud { + public string Id { get; set; } + ^^ +} +*/ + : (6,18)-(6,20), Message: The ID property 'Id' must be of type Guid or a struct that could be a strongly-typed ID, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0002, + Title: ID property type must be supported, + MessageFormat: The ID property '{0}' must be of type Guid or a struct that could be a strongly-typed ID, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet8_0.verified.txt index 95c1367..f891c88 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet8_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet8_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0008, - Title: Invalid inheritance, - Severity: Error, - WarningLevel: 0, - Location: : (7,21)-(7,29), - MessageFormat: CRUD classes should not inherit from other classes as they will inherit from AggregateRoot, + Location: /* +[Crud] +public partial class TestCrud : BaseClass { + ^^^^^^^^ + public int Id { get; set; } +*/ + : (7,21)-(7,29), Message: CRUD classes should not inherit from other classes as they will inherit from AggregateRoot, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0008, + Title: Invalid inheritance, + MessageFormat: CRUD classes should not inherit from other classes as they will inherit from AggregateRoot, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet9_0.verified.txt index 95c1367..f891c88 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet9_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet9_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0008, - Title: Invalid inheritance, - Severity: Error, - WarningLevel: 0, - Location: : (7,21)-(7,29), - MessageFormat: CRUD classes should not inherit from other classes as they will inherit from AggregateRoot, + Location: /* +[Crud] +public partial class TestCrud : BaseClass { + ^^^^^^^^ + public int Id { get; set; } +*/ + : (7,21)-(7,29), Message: CRUD classes should not inherit from other classes as they will inherit from AggregateRoot, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0008, + Title: Invalid inheritance, + MessageFormat: CRUD classes should not inherit from other classes as they will inherit from AggregateRoot, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet8_0.verified.txt index 9009d44..093164f 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet8_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet8_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0005, - Title: Namespace missing, - Severity: Error, - WarningLevel: 0, - Location: : (3,21)-(3,29), - MessageFormat: CRUD classes must be defined within a namespace, + Location: /* +[Crud] +public partial class TestCrud { + ^^^^^^^^ + public int Id { get; set; } +*/ + : (3,21)-(3,29), Message: CRUD classes must be defined within a namespace, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0005, + Title: Namespace missing, + MessageFormat: CRUD classes must be defined within a namespace, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet9_0.verified.txt index 9009d44..093164f 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet9_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet9_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0005, - Title: Namespace missing, - Severity: Error, - WarningLevel: 0, - Location: : (3,21)-(3,29), - MessageFormat: CRUD classes must be defined within a namespace, + Location: /* +[Crud] +public partial class TestCrud { + ^^^^^^^^ + public int Id { get; set; } +*/ + : (3,21)-(3,29), Message: CRUD classes must be defined within a namespace, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0005, + Title: Namespace missing, + MessageFormat: CRUD classes must be defined within a namespace, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet8_0.verified.txt index 38e9ef4..447a992 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet8_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet8_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0007, - Title: Naming conflict, - Severity: Error, - WarningLevel: 0, - Location: : (7,16)-(7,30), - MessageFormat: The name '{0}' conflicts with a generated command or event name, + Location: /* + public int Id { get; set; } + public void TestCrudCreate() { } + ^^^^^^^^^^^^^^ +} +*/ + : (7,16)-(7,30), Message: The name 'TestCrudCreate' conflicts with a generated command or event name, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0007, + Title: Naming conflict, + MessageFormat: The name '{0}' conflicts with a generated command or event name, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet9_0.verified.txt index 38e9ef4..447a992 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet9_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet9_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0007, - Title: Naming conflict, - Severity: Error, - WarningLevel: 0, - Location: : (7,16)-(7,30), - MessageFormat: The name '{0}' conflicts with a generated command or event name, + Location: /* + public int Id { get; set; } + public void TestCrudCreate() { } + ^^^^^^^^^^^^^^ +} +*/ + : (7,16)-(7,30), Message: The name 'TestCrudCreate' conflicts with a generated command or event name, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0007, + Title: Naming conflict, + MessageFormat: The name '{0}' conflicts with a generated command or event name, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenReservedPropertyName.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenReservedPropertyName.DotNet8_0.verified.txt index 4092b9d..92989ba 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenReservedPropertyName.DotNet8_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenReservedPropertyName.DotNet8_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0004, - Title: Reserved property name, - Severity: Error, - WarningLevel: 0, - Location: : (6,16)-(6,22), - MessageFormat: The property name 'Exists' is reserved for internal use in CRUD classes, + Location: /* +public partial class TestCrud { + public bool Exists { get; set; } + ^^^^^^ +} +*/ + : (6,16)-(6,22), Message: The property name 'Exists' is reserved for internal use in CRUD classes, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0004, + Title: Reserved property name, + MessageFormat: The property name 'Exists' is reserved for internal use in CRUD classes, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenReservedPropertyName.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenReservedPropertyName.DotNet9_0.verified.txt index 4092b9d..92989ba 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenReservedPropertyName.DotNet9_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenReservedPropertyName.DotNet9_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0004, - Title: Reserved property name, - Severity: Error, - WarningLevel: 0, - Location: : (6,16)-(6,22), - MessageFormat: The property name 'Exists' is reserved for internal use in CRUD classes, + Location: /* +public partial class TestCrud { + public bool Exists { get; set; } + ^^^^^^ +} +*/ + : (6,16)-(6,22), Message: The property name 'Exists' is reserved for internal use in CRUD classes, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0004, + Title: Reserved property name, + MessageFormat: The property name 'Exists' is reserved for internal use in CRUD classes, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenUnsupportedPropertyType.DotNet8_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenUnsupportedPropertyType.DotNet8_0.verified.txt index bf8ac28..344a250 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenUnsupportedPropertyType.DotNet8_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenUnsupportedPropertyType.DotNet8_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0006, - Title: Unsupported property type, - Severity: Error, - WarningLevel: 0, - Location: : (7,21)-(7,25), - MessageFormat: Property '{0}' has an unsupported type '{1}' for CRUD operations, + Location: /* +public partial class TestCrud { + public List Test { get; set; } + ^^^^ +} +*/ + : (7,21)-(7,25), Message: Property 'Test' has an unsupported type 'System.Collections.Generic.List' for CRUD operations, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0006, + Title: Unsupported property type, + MessageFormat: Property '{0}' has an unsupported type '{1}' for CRUD operations, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file diff --git a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenUnsupportedPropertyType.DotNet9_0.verified.txt b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenUnsupportedPropertyType.DotNet9_0.verified.txt index bf8ac28..344a250 100644 --- a/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenUnsupportedPropertyType.DotNet9_0.verified.txt +++ b/src/Fluss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenUnsupportedPropertyType.DotNet9_0.verified.txt @@ -1,14 +1,23 @@ { Diagnostics: [ { - Id: FLUSS0006, - Title: Unsupported property type, - Severity: Error, - WarningLevel: 0, - Location: : (7,21)-(7,25), - MessageFormat: Property '{0}' has an unsupported type '{1}' for CRUD operations, + Location: /* +public partial class TestCrud { + public List Test { get; set; } + ^^^^ +} +*/ + : (7,21)-(7,25), Message: Property 'Test' has an unsupported type 'System.Collections.Generic.List' for CRUD operations, - Category: Fluss.Regen + Severity: Error, + Descriptor: { + Id: FLUSS0006, + Title: Unsupported property type, + MessageFormat: Property '{0}' has an unsupported type '{1}' for CRUD operations, + Category: Fluss.Regen, + DefaultSeverity: Error, + IsEnabledByDefault: true + } } ] } \ No newline at end of file