-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7b1e36
commit 1dfe2cf
Showing
18 changed files
with
266 additions
and
140 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
...itTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet8_0.verified.txt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...itTest/Regen/Snapshots/CrudTests.AddsDiagnosticIfClassIsNotPartial.DotNet9_0.verified.txt
This file was deleted.
Oops, something went wrong.
28 changes: 21 additions & 7 deletions
28
...UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet8_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
28 changes: 21 additions & 7 deletions
28
...UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenClassIsNotPartial.DotNet9_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
...Test/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet8_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
...Test/Regen/Snapshots/CrudTests.DiagnosticWhenDuplicatePropertyName.DotNet9_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
...gen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet8_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
...gen/Snapshots/CrudTests.DiagnosticWhenIdPropertyTypeIsNotSupported.DotNet9_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
...nitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet8_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
...nitTest/Regen/Snapshots/CrudTests.DiagnosticWhenInvalidInheritance.DotNet9_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
....UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet8_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
....UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamespaceMissing.DotNet9_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
...ss.UnitTest/Regen/Snapshots/CrudTests.DiagnosticWhenNamingConflict.DotNet8_0.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.