Skip to content

Commit c6e51cc

Browse files
committed
dump v1.5.2
1 parent c7a8060 commit c6e51cc

File tree

7 files changed

+508
-18
lines changed

7 files changed

+508
-18
lines changed

src/.editorconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,36 @@ dotnet_diagnostic.IDE0025.severity = silent
249249
# IDE0008: Use explicit type
250250
dotnet_diagnostic.IDE0008.severity = silent
251251

252+
# IDE0011: Add braces
253+
dotnet_diagnostic.IDE0011.severity = suggestion
254+
255+
# IDE0040: Add accessibility modifiers
256+
dotnet_diagnostic.IDE0040.severity = suggestion
257+
258+
# IDE0161: Convert to file-scoped namespace
259+
dotnet_diagnostic.IDE0161.severity = suggestion
260+
261+
# IDE0022: Use block body for method
262+
dotnet_diagnostic.IDE0022.severity = suggestion
263+
264+
# IDE0045: Convert to conditional expression
265+
dotnet_diagnostic.IDE0045.severity = none
266+
267+
# IDE0036: Order modifiers
268+
dotnet_diagnostic.IDE0036.severity = none
269+
270+
# IDE0078: Use pattern matching
271+
dotnet_diagnostic.IDE0078.severity = suggestion
272+
273+
# IDE0100: Remove redundant equality
274+
dotnet_diagnostic.IDE0100.severity = none
275+
276+
# IDE0046: Convert to conditional expression
277+
dotnet_diagnostic.IDE0046.severity = none
278+
279+
# IDE0027: Use expression body for accessor
280+
dotnet_diagnostic.IDE0027.severity = none
281+
252282
[*.{cs,vb}]
253283
dotnet_style_operator_placement_when_wrapping = beginning_of_line
254284
tab_width = 4

src/Entity/StringKeyStoreCollection.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ namespace Sisk.Core.Entity;
2020
/// Represents a collection of string keys associated with multiple string values.
2121
/// </summary>
2222
public class StringKeyStoreCollection : IDictionary<string, string []> {
23-
readonly internal List<(string, List<string>)> items;
24-
bool isReadOnly;
23+
internal readonly List<(string, List<string>)> items;
24+
private bool isReadOnly;
2525

2626
/// <summary>
2727
/// Initializes a new instance of the <see cref="StringKeyStoreCollection"/> class,
@@ -479,7 +479,8 @@ IEnumerator IEnumerable.GetEnumerator () {
479479
}
480480

481481
void ICollection<KeyValuePair<string, string []>>.CopyTo ( KeyValuePair<string, string []> [] array, int arrayIndex ) {
482-
((ICollection<KeyValuePair<string, string []>>) items).CopyTo ( array, arrayIndex );
482+
var collection = items.Select ( s => new KeyValuePair<string, string []> ( s.Item1, s.Item2.ToArray () ) ).ToArray ();
483+
((ICollection<KeyValuePair<string, string []>>) collection).CopyTo ( array, arrayIndex );
483484
}
484485

485486
bool ICollection<KeyValuePair<string, string []>>.Contains ( KeyValuePair<string, string []> item ) {

0 commit comments

Comments
 (0)