mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 19:58:49 +00:00
🎨 Move using directives to outside-namspace
Item for #14 editorconfig: csharp_using_directive_placement=outside_namespace:error
This commit is contained in:
parent
13bd4b7fe1
commit
bbfdf39d09
@ -107,7 +107,7 @@ csharp_style_unused_value_assignment_preference=discard_variable:suggestion
|
||||
csharp_style_unused_value_expression_statement_preference=discard_variable:silent
|
||||
|
||||
# 'using' directive preferences
|
||||
csharp_using_directive_placement=inside_namespace:suggestion
|
||||
csharp_using_directive_placement=outside_namespace:error
|
||||
|
||||
#### C# Formatting Rules ####
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="byte" />.
|
||||
/// </summary>
|
||||
|
@ -1,10 +1,10 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="char" />.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="IComparable" />.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="DateTime" />.
|
||||
/// </summary>
|
||||
|
@ -1,10 +1,10 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Web;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Web;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// A set of extension methods for <see cref="Dictionary{TKey,TValue}" />.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="double" />.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System.Net;
|
||||
using System.Net;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="EndPoint" /> and derived types.
|
||||
/// </summary>
|
||||
|
@ -1,8 +1,8 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="IEnumerable{T}" />.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="short" />.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="int" />.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="long" />.
|
||||
/// </summary>
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="IList{T}" />.
|
||||
/// </summary>
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="Random" />.
|
||||
/// </summary>
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Reflection;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Reflection;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for various reflection types.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="float" />.
|
||||
/// </summary>
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="Stream" />.
|
||||
/// </summary>
|
||||
|
@ -1,12 +1,10 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Security;
|
||||
using System.Text;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="string" />.
|
||||
/// </summary>
|
||||
|
@ -1,7 +1,7 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see langword="struct" /> types.
|
||||
/// </summary>
|
||||
|
@ -1,9 +1,9 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Text.RegularExpressions;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a class which contains a <see cref="string" /> parser which converts into <see cref="TimeSpan" />.
|
||||
/// </summary>
|
||||
|
@ -1,8 +1,8 @@
|
||||
namespace X10D
|
||||
{
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace X10D
|
||||
{
|
||||
/// <summary>
|
||||
/// Extension methods for <see cref="WaitHandle" />.
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user