Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 1d719e4

Browse files
committed
Merge pull request #144 from jaredpar/fix-using
Disable the using location rule by default
2 parents 4aca602 + 028e8ba commit 1d719e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.CodeFormatting/Rules/UsingLocationRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace Microsoft.DotNet.CodeFormatting.Rules
1616
/// <summary>
1717
/// This will ensure that using directives are placed outside of the namespace.
1818
/// </summary>
19-
[SyntaxRule(UsingLocationRule.Name, UsingLocationRule.Description, SyntaxRuleOrder.UsingLocationFormattingRule)]
19+
[SyntaxRule(UsingLocationRule.Name, UsingLocationRule.Description, SyntaxRuleOrder.UsingLocationFormattingRule, DefaultRule = false)]
2020
internal sealed class UsingLocationRule : CSharpOnlyFormattingRule, ISyntaxFormattingRule
2121
{
2222
internal const string Name = "UsingLocation";

0 commit comments

Comments
 (0)