Skip to content

Commit 68b2aa6

Browse files
committed
cleanup
1 parent 3b602a9 commit 68b2aa6

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ dotnet_style_coalesce_expression = false:error
272272
dotnet_style_null_propagation = true:error
273273
dotnet_style_explicit_tuple_names = true:error
274274

275+
# Use collection expression syntax
276+
resharper_use_collection_expression_highlighting = error
277+
275278
# Prefer "var" everywhere
276279
csharp_style_var_for_built_in_types = true:error
277280
csharp_style_var_when_type_is_apparent = true:error

src/Tests/PolyfillTests_IEnumerable.cs

+2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ public void Zip3()
204204
[Test]
205205
public void ElementAtIndex()
206206
{
207+
#pragma warning disable IDE0028
207208
IEnumerable<int> list = new List<int> { 1, 2 };
209+
#pragma warning restore IDE0028
208210

209211
// ReSharper disable ArrangeObjectCreationWhenTypeNotEvident
210212
Assert.AreEqual(2, list.ElementAt(new Index(1)));

src/Tests/RangeIndexUsage.cs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
// ReSharper disable UnusedVariable
13
#region RangeIndex
24

35
public class RangeIndexUsage

0 commit comments

Comments
 (0)