Skip to content

Commit d670e7c

Browse files
authored
Don't prefer collection initializers and expressions (#230)
* Don't prefer collection initializers and expressions * Remove accessibility modifiers from interfaces
1 parent 8ca81f0 commit d670e7c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/.editorconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
4545
dotnet_style_readonly_field = true:suggestion
4646
# Expression-level preferences
4747
dotnet_style_object_initializer = true:suggestion
48-
dotnet_style_collection_initializer = true:suggestion
48+
dotnet_style_collection_initializer = false
49+
dotnet_style_prefer_collection_expression = false
4950
dotnet_style_explicit_tuple_names = true:suggestion
5051
dotnet_style_null_propagation = true:suggestion
5152
dotnet_style_coalesce_expression = true:suggestion

src/Objectivity.AutoFixture.XUnit2.AutoFakeItEasy.Tests/IFakeObjectUnderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
public interface IFakeObjectUnderTest
66
{
77
[SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Required for test.")]
8-
public string StringProperty { get; set; }
8+
string StringProperty { get; set; }
99
}
1010
}

src/Objectivity.AutoFixture.XUnit2.AutoMoq.Tests/IFakeObjectUnderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
public interface IFakeObjectUnderTest
66
{
77
[SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Required for test.")]
8-
public string StringProperty { get; set; }
8+
string StringProperty { get; set; }
99
}
1010
}

src/Objectivity.AutoFixture.XUnit2.AutoNSubstitute.Tests/IFakeObjectUnderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
public interface IFakeObjectUnderTest
66
{
77
[SuppressMessage("ReSharper", "UnusedMember.Global", Justification = "Required for test.")]
8-
public string StringProperty { get; set; }
8+
string StringProperty { get; set; }
99
}
1010
}

0 commit comments

Comments
 (0)