Skip to content

Commit

Permalink
(#285) Fix editorconfig violations
Browse files Browse the repository at this point in the history
Slightly adjusted the severity on some rules as well.
  • Loading branch information
gep13 committed Apr 7, 2021
1 parent 35dfb7c commit 7ee1049
Show file tree
Hide file tree
Showing 91 changed files with 907 additions and 901 deletions.
4 changes: 2 additions & 2 deletions src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dotnet_diagnostic.CA2227.severity = warning
dotnet_diagnostic.IDE0004.severity = warning

# IDE0005: Using directive is unnecessary
dotnet_diagnostic.IDE0005.severity = warning
dotnet_diagnostic.IDE0005.severity = error

# IDE0008: Use explicit type
csharp_style_var_elsewhere = true:suggestion
Expand Down Expand Up @@ -91,7 +91,7 @@ dotnet_diagnostic.SA1117.severity = none
dotnet_diagnostic.SA1122.severity = error

# SA1200: Using directive should appear within a namespace declaration
dotnet_diagnostic.SA1200.severity = error
dotnet_diagnostic.SA1200.severity = none

# SA1201: Elements should appear in the correct order
dotnet_diagnostic.SA1201.severity = none
Expand Down
18 changes: 9 additions & 9 deletions src/GitReleaseManager.Cli/Logging/LogConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System.Diagnostics;
using System.Text;
using Destructurama;
using GitReleaseManager.Core.Options;
using Octokit;
using Serilog;
using Serilog.Events;
using Serilog.Sinks.SystemConsole.Themes;

namespace GitReleaseManager.Cli.Logging
{
using System.Diagnostics;
using System.Text;
using Destructurama;
using GitReleaseManager.Core.Options;
using Octokit;
using Serilog;
using Serilog.Events;
using Serilog.Sinks.SystemConsole.Themes;

public static class LogConfiguration
{
private const string CONSOLE_FULL_TEMPLATE = "[{Level:u3}] " + CONSOLE_INFO_TEMPLATE;
Expand Down
36 changes: 18 additions & 18 deletions src/GitReleaseManager.Cli/Program.cs
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
using System;
using System.Net;
using System.Reflection;
using System.Threading.Tasks;
using CommandLine;
using GitReleaseManager.Cli.Logging;
using GitReleaseManager.Core;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Configuration;
using GitReleaseManager.Core.Helpers;
using GitReleaseManager.Core.Options;
using GitReleaseManager.Core.Provider;
using GitReleaseManager.Core.ReleaseNotes;
using GitReleaseManager.Core.Templates;
using Microsoft.Extensions.DependencyInjection;
using Octokit;
using Serilog;

namespace GitReleaseManager.Cli
{
using System;
using System.Net;
using System.Reflection;
using System.Threading.Tasks;
using CommandLine;
using GitReleaseManager.Cli.Logging;
using GitReleaseManager.Core;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Configuration;
using GitReleaseManager.Core.Helpers;
using GitReleaseManager.Core.Options;
using GitReleaseManager.Core.Provider;
using GitReleaseManager.Core.ReleaseNotes;
using GitReleaseManager.Core.Templates;
using Microsoft.Extensions.DependencyInjection;
using Octokit;
using Serilog;

public static class Program
{
private static IServiceProvider _serviceProvider;
Expand Down
4 changes: 4 additions & 0 deletions src/GitReleaseManager.Core.Tests/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
root = false

[*.cs]
dotnet_naming_rule.async_method_should_have_async_suffix.severity = none
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.Collections.Generic;
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class AddAssetsCommandTests
{
Expand Down
16 changes: 8 additions & 8 deletions src/GitReleaseManager.Core.Tests/Commands/CloseCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class CloseCommandTests
{
Expand Down
20 changes: 10 additions & 10 deletions src/GitReleaseManager.Core.Tests/Commands/CreateCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Model;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.Collections.Generic;
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Model;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class CreateCommandTests
{
Expand Down
16 changes: 8 additions & 8 deletions src/GitReleaseManager.Core.Tests/Commands/DiscardCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class DiscardCommandTests
{
Expand Down
18 changes: 9 additions & 9 deletions src/GitReleaseManager.Core.Tests/Commands/ExportCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System.IO;
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.IO;
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class ExportCommandTests
{
Expand Down
20 changes: 10 additions & 10 deletions src/GitReleaseManager.Core.Tests/Commands/InitCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using System.IO;
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Helpers;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.IO;
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Helpers;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class InitCommandTests
{
Expand Down
16 changes: 8 additions & 8 deletions src/GitReleaseManager.Core.Tests/Commands/LabelCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class LabelCommandTests
{
Expand Down
16 changes: 8 additions & 8 deletions src/GitReleaseManager.Core.Tests/Commands/OpenCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class OpenCommandTests
{
Expand Down
16 changes: 8 additions & 8 deletions src/GitReleaseManager.Core.Tests/Commands/PublishCommandTests.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class PublishCommandTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Helpers;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

namespace GitReleaseManager.Core.Tests.Commands
{
using System.Threading.Tasks;
using GitReleaseManager.Core.Commands;
using GitReleaseManager.Core.Helpers;
using GitReleaseManager.Core.Options;
using NSubstitute;
using NUnit.Framework;
using Serilog;
using Shouldly;

[TestFixture]
public class ShowConfigCommandTests
{
Expand Down
10 changes: 5 additions & 5 deletions src/GitReleaseManager.Core.Tests/EnsureTests.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.IO;
using NUnit.Framework;
using Shouldly;

namespace GitReleaseManager.Core.Tests
{
using System;
using System.IO;
using NUnit.Framework;
using Shouldly;

[TestFixture]
public class EnsureTests
{
Expand Down
Loading

0 comments on commit 7ee1049

Please sign in to comment.