Skip to content

Commit 7d5af14

Browse files
committed
(maint) Add rule to error on unnecessary usings
This is just good practice.
1 parent b5d780a commit 7d5af14

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

src/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,9 @@ dotnet_diagnostic.SA1633.severity = none
246246
# IDE1006: Naming Styles
247247
dotnet_diagnostic.IDE1006.severity = none
248248

249+
# IDE0005: Using directive is unnecessary.
250+
dotnet_diagnostic.IDE0005.severity = error
251+
249252
[*.{cs,vb}]
250253
dotnet_style_operator_placement_when_wrapping = beginning_of_line
251254
tab_width = 4

src/Cake.AppVeyor.Tests/AppVeyorTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Xunit;
22
using System;
33
using System.Linq;
4-
using Cake.AppVeyor;
54
using Cake.AppVeyor.Fakes;
65

76
namespace Cake.AppVeyor.Tests

src/Cake.AppVeyor/AppVeyorClient.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Net.Http;
4-
using System.Net.Http.Headers;
5-
using System.Threading;
6-
using System.Threading.Tasks;
73
using Refit;
84

95
namespace Cake.AppVeyor

src/Cake.AppVeyor/AppVeyorSettings.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using Cake.Core.Annotations;
5-
61
namespace Cake.AppVeyor
72
{
83
/// <summary>

0 commit comments

Comments
 (0)