Skip to content

Commit

Permalink
GitHubSync update - master (#7029)
Browse files Browse the repository at this point in the history
* GitHubSync update - master

* Work around collection expression problem

---------

Co-authored-by: internalautomation[bot] <85681268+internalautomation[bot]@users.noreply.github.com>
Co-authored-by: Brandon Ording <bording@gmail.com>
  • Loading branch information
internalautomation[bot] and bording committed May 16, 2024
1 parent a5a4ab7 commit 19f561f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ dotnet_diagnostic.IDE0079.severity = error
dotnet_remove_unnecessary_suppression_exclusions = none

dotnet_diagnostic.IDE0080.severity = error
dotnet_diagnostic.IDE0100.severity = error
# Change IDE0100 to suggestion until 8.0.300 SDK works in VS and we can decide how to fix the errors
dotnet_diagnostic.IDE0100.severity = suggestion
dotnet_diagnostic.IDE0110.severity = error


Expand Down
8 changes: 5 additions & 3 deletions src/NServiceBus.Core.Tests/Serializers/XML/SerializerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -861,13 +861,15 @@ public void SerializeClosedGenericListsInAlternateNamespaceMultipleIEnumerableIm
var serializer = SerializerFactory.Create<MessageWithClosedListInAlternateNamespaceMultipleIEnumerableImplementations>();
var msg = mapper.CreateInstance<MessageWithClosedListInAlternateNamespaceMultipleIEnumerableImplementations>();

msg.Items =
[
#pragma warning disable IDE0028 // Simplify collection initialization
msg.Items = new AlternateItemListMultipleIEnumerableImplementations
{
new MessageWithListItemAlternate
{
Data = "Hello"
}
];
};
#pragma warning restore IDE0028 // Simplify collection initialization

using (var stream = new MemoryStream())
{
Expand Down

0 comments on commit 19f561f

Please sign in to comment.