Skip to content

Commit f4f54ea

Browse files
authored
Added editorconfig file (#1106)
1 parent 5a571bf commit f4f54ea

112 files changed

Lines changed: 203 additions & 302 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
; Top-most EditorConfig file
2+
root = true
3+
4+
; Unix-style newlines
5+
[*]
6+
end_of_line = crlf
7+
8+
; 4-column space indentation
9+
[*.cs]
10+
indent_style = space
11+
indent_size = 4
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
15+
# .NET formatting rules
16+
[*.{cs,vb}]
17+
dotnet_sort_system_directives_first = true

examples/ASP.NET 4.6.1/Visual Studio 2017/ASP.NET 4.6.1 - VS2017/App_Start/BundleConfig.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Web;
2-
using System.Web.Optimization;
1+
using System.Web.Optimization;
32

43
namespace NLog.Web.AspNet461.Example
54
{

examples/ASP.NET 4.6.1/Visual Studio 2017/ASP.NET 4.6.1 - VS2017/App_Start/FilterConfig.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System.Web;
2-
using System.Web.Mvc;
1+
using System.Web.Mvc;
32

43
namespace NLog.Web.AspNet461.Example
54
{

examples/ASP.NET 4.6.1/Visual Studio 2017/ASP.NET 4.6.1 - VS2017/App_Start/RouteConfig.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Web;
5-
using System.Web.Mvc;
1+
using System.Web.Mvc;
62
using System.Web.Routing;
73

84
namespace NLog.Web.AspNet461.Example

examples/ASP.NET 4.6.1/Visual Studio 2017/ASP.NET 4.6.1 - VS2017/Controllers/HomeController.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Web;
5-
using System.Web.Mvc;
1+
using System.Web.Mvc;
62

73
namespace NLog.Web.AspNet461.Example.Controllers
84
{

examples/ASP.NET 4.6.1/Visual Studio 2017/ASP.NET 4.6.1 - VS2017/Global.asax.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Web;
5-
using System.Web.Mvc;
1+
using System.Web.Mvc;
62
using System.Web.Optimization;
73
using System.Web.Routing;
84

examples/ASP.NET 4.6.1/Visual Studio 2017/ASP.NET 4.6.1 - VS2017/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
43

54
// General Information about an assembly is controlled through the following

examples/ASP.NET Core 6/ASP.NET Core 6 NLog Example/Controllers/HomeController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
using ASP.NetCore6_NLog_Web_Example.Models;
1+
using System.Diagnostics;
2+
using ASP.NetCore6_NLog_Web_Example.Models;
23
using Microsoft.AspNetCore.Mvc;
3-
using System.Diagnostics;
44

55
namespace ASP.NetCore6_NLog_Web_Example.Controllers
66
{

examples/ASP.NET.Core7/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using NLog;
22
using NLog.Web;
33

4-
var logger = NLog.LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
4+
var logger = NLog.LogManager.Setup().LoadConfigurationFromAppSettings().GetCurrentClassLogger();
55

66
try
77
{

src/NLog.Web.AspNetCore/Internal/AssemblyExtensionTypes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal static class AssemblyExtensionTypes
4040
{
4141
public static void RegisterTypes(this NLog.Config.ISetupExtensionsBuilder setupBuilder)
4242
{
43-
#pragma warning disable CS0618 // Type or member is obsolete
43+
#pragma warning disable CS0618 // Type or member is obsolete
4444
setupBuilder.RegisterLayoutRenderer<NLog.Web.LayoutRenderers.AspNetAppBasePathLayoutRenderer>("aspnet-appbasepath");
4545
setupBuilder.RegisterLayoutRenderer<NLog.Web.LayoutRenderers.AspNetAppBasePathLayoutRenderer>("aspnet-rootdir");
4646
setupBuilder.RegisterLayoutRenderer<NLog.Web.LayoutRenderers.AspNetAppBasePathLayoutRenderer>("host-rootdir");
@@ -115,7 +115,7 @@ public static void RegisterTypes(this NLog.Config.ISetupExtensionsBuilder setupB
115115
setupBuilder.RegisterLayoutRenderer<NLog.Web.LayoutRenderers.AspNetRequestEndPointNameLayoutRenderer>("aspnet-request-endpoint-name");
116116
#endif
117117

118-
#pragma warning restore CS0618 // Type or member is obsolete
118+
#pragma warning restore CS0618 // Type or member is obsolete
119119
}
120120
}
121121
}

0 commit comments

Comments
 (0)