Skip to content

Commit

Permalink
Implement ImplicitUsings for all project of the solution
Browse files Browse the repository at this point in the history
  • Loading branch information
axunonb committed Aug 5, 2023
1 parent 2eb5630 commit bf5e9d0
Show file tree
Hide file tree
Showing 287 changed files with 239 additions and 1,307 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using Axuno.BackgroundTask;
using NUnit.Framework;
using NUnit.Framework;

namespace Axuno.BackgroundTask.Tests;

Expand Down
6 changes: 0 additions & 6 deletions Axuno.BackgroundTask.Test/BackgroundQueueServiceTests.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using NUnit.Framework;
using Axuno.UnitTest.TestComponents;
using Microsoft.Extensions.Options;

namespace Axuno.BackgroundTask.Tests;

Expand Down
5 changes: 0 additions & 5 deletions Axuno.BackgroundTask.Test/BackgroundQueueTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NUnit.Framework;
Expand Down
8 changes: 1 addition & 7 deletions Axuno.BackgroundTask.Test/BackgroundTask.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Axuno.BackgroundTask.Tests;
namespace Axuno.BackgroundTask.Tests;

public class BgTsk : IBackgroundTask
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using Axuno.BackgroundTask;
using NUnit.Framework;
using NUnit.Framework;

namespace Axuno.BackgroundTask.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime;
using System.Threading;
using System.Threading.Tasks;
using Axuno.UnitTest.TestComponents;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
Expand Down
1 change: 0 additions & 1 deletion Axuno.BackgroundTask.Test/NUnitLogger.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Text;
using Microsoft.Extensions.Logging;

Expand Down
3 changes: 1 addition & 2 deletions Axuno.BackgroundTask.Test/NUnitLoggerOfT.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Axuno.UnitTest.TestComponents;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging;

namespace Axuno.UnitTest.TestComponents;

Expand Down
1 change: 1 addition & 0 deletions Axuno.BackgroundTask/Axuno.BackgroundTask.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1591</NoWarn>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down
5 changes: 1 addition & 4 deletions Axuno.BackgroundTask/BackgroundQueue.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Concurrent;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

Expand Down
4 changes: 1 addition & 3 deletions Axuno.BackgroundTask/BackgroundQueueConfig.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Axuno.BackgroundTask;
namespace Axuno.BackgroundTask;

/// <summary>
/// Contains the configuration for a <see cref="BackgroundQueue"/>.
Expand Down
7 changes: 1 addition & 6 deletions Axuno.BackgroundTask/BackgroundQueueService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

Expand Down
6 changes: 1 addition & 5 deletions Axuno.BackgroundTask/BackgroundQueueServiceConfig.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Axuno.BackgroundTask;
namespace Axuno.BackgroundTask;

/// <summary>
/// Contains the configuration for a <see cref="BackgroundQueueService"/>.
Expand Down
3 changes: 1 addition & 2 deletions Axuno.BackgroundTask/BackgroundQueueServiceExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace Axuno.BackgroundTask;
Expand Down
6 changes: 1 addition & 5 deletions Axuno.BackgroundTask/BackgroundTaskEmpty.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;

namespace Axuno.BackgroundTask;
namespace Axuno.BackgroundTask;

/// <summary>
/// An <see cref="IBackgroundTask"/> that does nothing.
Expand Down
7 changes: 1 addition & 6 deletions Axuno.BackgroundTask/ConcurrentBackgroundQueueService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Axuno.BackgroundTask;
namespace Axuno.BackgroundTask;

/// <summary>
/// Contains the configuration for a <see cref="ConcurrentBackgroundQueueService"/>.
Expand Down
7 changes: 1 addition & 6 deletions Axuno.BackgroundTask/ConsumeScopedServiceHostedService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

Expand Down
7 changes: 1 addition & 6 deletions Axuno.BackgroundTask/CronJobService.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Hosting;
using Cronos;
using Microsoft.Extensions.DependencyInjection;

namespace Axuno.BackgroundTask;

Expand Down
6 changes: 1 addition & 5 deletions Axuno.BackgroundTask/CronJobServiceExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using Axuno.BackgroundTask;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;

namespace Axuno.BackgroundTask;

Expand Down
6 changes: 1 addition & 5 deletions Axuno.BackgroundTask/IBackgroundQueue.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;

namespace Axuno.BackgroundTask;
namespace Axuno.BackgroundTask;

public interface IBackgroundQueue
{
Expand Down
6 changes: 1 addition & 5 deletions Axuno.BackgroundTask/IBackgroundTask.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Threading;
using System.Threading.Tasks;

namespace Axuno.BackgroundTask;
namespace Axuno.BackgroundTask;

/// <summary>
/// Interface for background tasks.
Expand Down
7 changes: 1 addition & 6 deletions Axuno.BackgroundTask/ScopedProcessingService.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging;

namespace Axuno.BackgroundTask;

Expand Down
1 change: 1 addition & 0 deletions Axuno.Tools.Tests/Axuno.Tools.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions Axuno.Tools/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Diagnostics;
using System.Diagnostics;
using System.Reflection;

namespace Axuno.Tools;
Expand Down
1 change: 1 addition & 0 deletions Axuno.Tools/Axuno.Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>1591</NoWarn>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions Axuno.Tools/DateAndTime/IZonedTimeInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;

namespace Axuno.Tools.DateAndTime;

Expand Down
2 changes: 0 additions & 2 deletions Axuno.Tools/DateAndTime/TimeZoneConverter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#nullable enable
using System;
using System.Collections.Generic;
using System.Globalization;
using NodaTime;
using NodaTime.TimeZones;
Expand Down
3 changes: 1 addition & 2 deletions Axuno.Tools/DateAndTime/ZonedTime.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;

namespace Axuno.Tools.DateAndTime;

Expand Down
5 changes: 1 addition & 4 deletions Axuno.Tools/ExpiringTripleDES.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text;
using System.Security.Cryptography;


Expand Down
4 changes: 1 addition & 3 deletions Axuno.Tools/FileSystem/DelayedEvent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.IO;

namespace Axuno.Tools.FileSystem;
namespace Axuno.Tools.FileSystem;

/// <summary>
/// The <see cref="DelayedEvent"/> class wraps <see cref="FileSystemEventArgs"/> and <see cref="RenamedEventArgs"/> objects
Expand Down
6 changes: 1 addition & 5 deletions Axuno.Tools/FileSystem/DelayedFileSystemWatcher.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.IO;
using System.Threading;
using System.Timers;

namespace Axuno.Tools.FileSystem;
Expand Down
3 changes: 1 addition & 2 deletions Axuno.Tools/GeoSpatial/Angle.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;

namespace Axuno.Tools.GeoSpatial;

Expand Down
5 changes: 1 addition & 4 deletions Axuno.Tools/GeoSpatial/GoogleGeo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Globalization;
using System.Net.Http;
using System.Globalization;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using System.Web;
using System.Xml;

Expand Down
3 changes: 1 addition & 2 deletions Axuno.Tools/GeoSpatial/Latitude.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;

namespace Axuno.Tools.GeoSpatial;

Expand Down
3 changes: 1 addition & 2 deletions Axuno.Tools/GeoSpatial/Location.Parser.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;
using System.Text.RegularExpressions;

namespace Axuno.Tools.GeoSpatial;
Expand Down
3 changes: 1 addition & 2 deletions Axuno.Tools/GeoSpatial/Location.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;
using System.Text;
using System.Xml;
using System.Xml.Schema;
Expand Down
4 changes: 1 addition & 3 deletions Axuno.Tools/GeoSpatial/LocationCollection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections;
using System.Globalization;
using System.Text;
using System.Xml;
Expand Down
4 changes: 1 addition & 3 deletions Axuno.Tools/GeoSpatial/LocationStyles.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Axuno.Tools.GeoSpatial;
namespace Axuno.Tools.GeoSpatial;

/// <summary>
/// Determines the styles permitted in string arguments that are passed
Expand Down
3 changes: 1 addition & 2 deletions Axuno.Tools/GeoSpatial/Longitude.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Globalization;
using System.Globalization;

namespace Axuno.Tools.GeoSpatial;

Expand Down
1 change: 0 additions & 1 deletion Axuno.Tools/GeoSpatial/MaidenheadLocator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Text.RegularExpressions;

namespace Axuno.Tools.GeoSpatial;
Expand Down
4 changes: 1 addition & 3 deletions Axuno.Tools/GermanFederalStates.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Collections.ObjectModel;

namespace Axuno.Tools;

Expand Down
3 changes: 0 additions & 3 deletions Axuno.Tools/GermanHolidays.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;

namespace Axuno.Tools;
Expand Down
1 change: 0 additions & 1 deletion Axuno.Tools/Hash.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Security.Cryptography;
using System.Text;

Expand Down
Loading

0 comments on commit bf5e9d0

Please sign in to comment.