Skip to content

Commit 7ee1049

Browse files
committed
(#285) Fix editorconfig violations
Slightly adjusted the severity on some rules as well.
1 parent 35dfb7c commit 7ee1049

File tree

91 files changed

+907
-901
lines changed

Some content is hidden

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

91 files changed

+907
-901
lines changed

src/.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ dotnet_diagnostic.CA2227.severity = warning
4747
dotnet_diagnostic.IDE0004.severity = warning
4848

4949
# IDE0005: Using directive is unnecessary
50-
dotnet_diagnostic.IDE0005.severity = warning
50+
dotnet_diagnostic.IDE0005.severity = error
5151

5252
# IDE0008: Use explicit type
5353
csharp_style_var_elsewhere = true:suggestion
@@ -91,7 +91,7 @@ dotnet_diagnostic.SA1117.severity = none
9191
dotnet_diagnostic.SA1122.severity = error
9292

9393
# SA1200: Using directive should appear within a namespace declaration
94-
dotnet_diagnostic.SA1200.severity = error
94+
dotnet_diagnostic.SA1200.severity = none
9595

9696
# SA1201: Elements should appear in the correct order
9797
dotnet_diagnostic.SA1201.severity = none

src/GitReleaseManager.Cli/Logging/LogConfiguration.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
using System.Diagnostics;
2+
using System.Text;
3+
using Destructurama;
4+
using GitReleaseManager.Core.Options;
5+
using Octokit;
6+
using Serilog;
7+
using Serilog.Events;
8+
using Serilog.Sinks.SystemConsole.Themes;
9+
110
namespace GitReleaseManager.Cli.Logging
211
{
3-
using System.Diagnostics;
4-
using System.Text;
5-
using Destructurama;
6-
using GitReleaseManager.Core.Options;
7-
using Octokit;
8-
using Serilog;
9-
using Serilog.Events;
10-
using Serilog.Sinks.SystemConsole.Themes;
11-
1212
public static class LogConfiguration
1313
{
1414
private const string CONSOLE_FULL_TEMPLATE = "[{Level:u3}] " + CONSOLE_INFO_TEMPLATE;

src/GitReleaseManager.Cli/Program.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1+
using System;
2+
using System.Net;
3+
using System.Reflection;
4+
using System.Threading.Tasks;
5+
using CommandLine;
6+
using GitReleaseManager.Cli.Logging;
7+
using GitReleaseManager.Core;
8+
using GitReleaseManager.Core.Commands;
9+
using GitReleaseManager.Core.Configuration;
10+
using GitReleaseManager.Core.Helpers;
11+
using GitReleaseManager.Core.Options;
12+
using GitReleaseManager.Core.Provider;
13+
using GitReleaseManager.Core.ReleaseNotes;
14+
using GitReleaseManager.Core.Templates;
15+
using Microsoft.Extensions.DependencyInjection;
16+
using Octokit;
17+
using Serilog;
18+
119
namespace GitReleaseManager.Cli
220
{
3-
using System;
4-
using System.Net;
5-
using System.Reflection;
6-
using System.Threading.Tasks;
7-
using CommandLine;
8-
using GitReleaseManager.Cli.Logging;
9-
using GitReleaseManager.Core;
10-
using GitReleaseManager.Core.Commands;
11-
using GitReleaseManager.Core.Configuration;
12-
using GitReleaseManager.Core.Helpers;
13-
using GitReleaseManager.Core.Options;
14-
using GitReleaseManager.Core.Provider;
15-
using GitReleaseManager.Core.ReleaseNotes;
16-
using GitReleaseManager.Core.Templates;
17-
using Microsoft.Extensions.DependencyInjection;
18-
using Octokit;
19-
using Serilog;
20-
2121
public static class Program
2222
{
2323
private static IServiceProvider _serviceProvider;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root = false
2+
3+
[*.cs]
4+
dotnet_naming_rule.async_method_should_have_async_suffix.severity = none

src/GitReleaseManager.Core.Tests/Commands/AddAssetsCommandTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
using System.Collections.Generic;
2+
using System.Threading.Tasks;
3+
using GitReleaseManager.Core.Commands;
4+
using GitReleaseManager.Core.Options;
5+
using NSubstitute;
6+
using NUnit.Framework;
7+
using Serilog;
8+
using Shouldly;
9+
110
namespace GitReleaseManager.Core.Tests.Commands
211
{
3-
using System.Collections.Generic;
4-
using System.Threading.Tasks;
5-
using GitReleaseManager.Core.Commands;
6-
using GitReleaseManager.Core.Options;
7-
using NSubstitute;
8-
using NUnit.Framework;
9-
using Serilog;
10-
using Shouldly;
11-
1212
[TestFixture]
1313
public class AddAssetsCommandTests
1414
{

src/GitReleaseManager.Core.Tests/Commands/CloseCommandTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
using System.Threading.Tasks;
2+
using GitReleaseManager.Core.Commands;
3+
using GitReleaseManager.Core.Options;
4+
using NSubstitute;
5+
using NUnit.Framework;
6+
using Serilog;
7+
using Shouldly;
8+
19
namespace GitReleaseManager.Core.Tests.Commands
210
{
3-
using System.Threading.Tasks;
4-
using GitReleaseManager.Core.Commands;
5-
using GitReleaseManager.Core.Options;
6-
using NSubstitute;
7-
using NUnit.Framework;
8-
using Serilog;
9-
using Shouldly;
10-
1111
[TestFixture]
1212
public class CloseCommandTests
1313
{

src/GitReleaseManager.Core.Tests/Commands/CreateCommandTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
using System.Collections.Generic;
2+
using System.Threading.Tasks;
3+
using GitReleaseManager.Core.Commands;
4+
using GitReleaseManager.Core.Model;
5+
using GitReleaseManager.Core.Options;
6+
using NSubstitute;
7+
using NUnit.Framework;
8+
using Serilog;
9+
using Shouldly;
10+
111
namespace GitReleaseManager.Core.Tests.Commands
212
{
3-
using System.Collections.Generic;
4-
using System.Threading.Tasks;
5-
using GitReleaseManager.Core.Commands;
6-
using GitReleaseManager.Core.Model;
7-
using GitReleaseManager.Core.Options;
8-
using NSubstitute;
9-
using NUnit.Framework;
10-
using Serilog;
11-
using Shouldly;
12-
1313
[TestFixture]
1414
public class CreateCommandTests
1515
{

src/GitReleaseManager.Core.Tests/Commands/DiscardCommandTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
using System.Threading.Tasks;
2+
using GitReleaseManager.Core.Commands;
3+
using GitReleaseManager.Core.Options;
4+
using NSubstitute;
5+
using NUnit.Framework;
6+
using Serilog;
7+
using Shouldly;
8+
19
namespace GitReleaseManager.Core.Tests.Commands
210
{
3-
using System.Threading.Tasks;
4-
using GitReleaseManager.Core.Commands;
5-
using GitReleaseManager.Core.Options;
6-
using NSubstitute;
7-
using NUnit.Framework;
8-
using Serilog;
9-
using Shouldly;
10-
1111
[TestFixture]
1212
public class DiscardCommandTests
1313
{

src/GitReleaseManager.Core.Tests/Commands/ExportCommandTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
using System.IO;
2+
using System.Threading.Tasks;
3+
using GitReleaseManager.Core.Commands;
4+
using GitReleaseManager.Core.Options;
5+
using NSubstitute;
6+
using NUnit.Framework;
7+
using Serilog;
8+
using Shouldly;
9+
110
namespace GitReleaseManager.Core.Tests.Commands
211
{
3-
using System.IO;
4-
using System.Threading.Tasks;
5-
using GitReleaseManager.Core.Commands;
6-
using GitReleaseManager.Core.Options;
7-
using NSubstitute;
8-
using NUnit.Framework;
9-
using Serilog;
10-
using Shouldly;
11-
1212
[TestFixture]
1313
public class ExportCommandTests
1414
{

src/GitReleaseManager.Core.Tests/Commands/InitCommandTests.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
using System.IO;
2+
using System.Threading.Tasks;
3+
using GitReleaseManager.Core.Commands;
4+
using GitReleaseManager.Core.Helpers;
5+
using GitReleaseManager.Core.Options;
6+
using NSubstitute;
7+
using NUnit.Framework;
8+
using Serilog;
9+
using Shouldly;
10+
111
namespace GitReleaseManager.Core.Tests.Commands
212
{
3-
using System.IO;
4-
using System.Threading.Tasks;
5-
using GitReleaseManager.Core.Commands;
6-
using GitReleaseManager.Core.Helpers;
7-
using GitReleaseManager.Core.Options;
8-
using NSubstitute;
9-
using NUnit.Framework;
10-
using Serilog;
11-
using Shouldly;
12-
1313
[TestFixture]
1414
public class InitCommandTests
1515
{

0 commit comments

Comments
 (0)