Skip to content

Commit

Permalink
<ImplicitUsings>enable</ImplicitUsings>
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ieremenko committed Apr 13, 2024
1 parent aff1154 commit 99cdb84
Show file tree
Hide file tree
Showing 71 changed files with 36 additions and 223 deletions.
8 changes: 8 additions & 0 deletions sources/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<LangVersion>latest</LangVersion>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\ZipAsFolder.snk</AssemblyOriginatorKeyFile>
<OutputPath>..\..\bin\module</OutputPath>
Expand All @@ -32,4 +33,11 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<Using Include="System.Collections" />
<Using Include="System.Diagnostics" />
<Using Include="System.Diagnostics.CodeAnalysis" />
<Using Include="System.IO.Compression" />
<Using Include="System.Text" />
</ItemGroup>
</Project>
5 changes: 5 additions & 0 deletions sources/Test.csproj.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@
<PackageReference Include="Shouldly" />
</ItemGroup>

<ItemGroup>
<Using Include="NUnit.Framework" />
<Using Include="Shouldly" />
<Using Include="Moq" />
</ItemGroup>
</Project>
4 changes: 0 additions & 4 deletions sources/ZipAsFolder.Archive.Abstractions/IArchiveContent.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.IO;

namespace ZipAsFolder.Archive;

public interface IArchiveContent : IDisposable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.IO;

namespace ZipAsFolder.Archive;
namespace ZipAsFolder.Archive;

public interface IArchiveContentProvider
{
Expand Down
4 changes: 1 addition & 3 deletions sources/ZipAsFolder.Archive.Abstractions/IArchiveEntry.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace ZipAsFolder.Archive;
namespace ZipAsFolder.Archive;

public interface IArchiveEntry
{
Expand Down
5 changes: 0 additions & 5 deletions sources/ZipAsFolder.Archive.Zip.Test/ZipContentTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System.IO;
using System.IO.Compression;
using System.Linq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.TestApi;

namespace ZipAsFolder.Archive.Zip;
Expand Down
6 changes: 0 additions & 6 deletions sources/ZipAsFolder.Archive.Zip/ZipContent.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;

namespace ZipAsFolder.Archive.Zip;

internal sealed class ZipContent : IArchiveContent
Expand Down
3 changes: 0 additions & 3 deletions sources/ZipAsFolder.Archive.Zip/ZipContentProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System.IO;
using System.IO.Compression;

namespace ZipAsFolder.Archive.Zip;

public sealed class ZipContentProvider : IArchiveContentProvider
Expand Down
6 changes: 1 addition & 5 deletions sources/ZipAsFolder.Archive.Zip/ZipEntry.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.IO.Compression;
using System.Text;

namespace ZipAsFolder.Archive.Zip;
namespace ZipAsFolder.Archive.Zip;

internal sealed class ZipEntry : IArchiveEntry
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using NUnit.Framework;
using Shouldly;

namespace ZipAsFolder.IO;

[TestFixture]
Expand Down
6 changes: 1 addition & 5 deletions sources/ZipAsFolder.IO.Abstractions/DirectoryInfoBase.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;

namespace ZipAsFolder.IO;
namespace ZipAsFolder.IO;

[DebuggerDisplay("{FullName}")]
public abstract class DirectoryInfoBase : IDirectoryInfo
Expand Down
4 changes: 0 additions & 4 deletions sources/ZipAsFolder.IO.Abstractions/FileInfoBase.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Diagnostics;
using System.IO;

namespace ZipAsFolder.IO;

[DebuggerDisplay("{FullName}")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace ZipAsFolder.IO;

[Flags]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Diagnostics.CodeAnalysis;

namespace ZipAsFolder.IO;
namespace ZipAsFolder.IO;

public static class FileSystemInfoExtensions
{
Expand Down
2 changes: 0 additions & 2 deletions sources/ZipAsFolder.IO.Abstractions/FileSystemPath.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.IO;
using System.Runtime.InteropServices;

namespace ZipAsFolder.IO;
Expand Down
4 changes: 1 addition & 3 deletions sources/ZipAsFolder.IO.Abstractions/IContext.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Threading;

namespace ZipAsFolder.IO;
namespace ZipAsFolder.IO;

public interface IContext
{
Expand Down
4 changes: 1 addition & 3 deletions sources/ZipAsFolder.IO.Abstractions/IDirectoryInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace ZipAsFolder.IO;
namespace ZipAsFolder.IO;

public interface IDirectoryInfo : IFileSystemInfo
{
Expand Down
4 changes: 1 addition & 3 deletions sources/ZipAsFolder.IO.Abstractions/IFileInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.IO;

namespace ZipAsFolder.IO;
namespace ZipAsFolder.IO;

public interface IFileInfo : IFileSystemInfo
{
Expand Down
4 changes: 1 addition & 3 deletions sources/ZipAsFolder.IO.Abstractions/IFileSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Diagnostics.CodeAnalysis;

namespace ZipAsFolder.IO;
namespace ZipAsFolder.IO;

public interface IFileSystem
{
Expand Down
4 changes: 1 addition & 3 deletions sources/ZipAsFolder.IO.Abstractions/IFileSystemInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace ZipAsFolder.IO;
namespace ZipAsFolder.IO;

public interface IFileSystemInfo
{
Expand Down
4 changes: 0 additions & 4 deletions sources/ZipAsFolder.IO.Archive.Test/ArchiveFileSystemTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using Moq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.Archive;

namespace ZipAsFolder.IO.Archive;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.IO;
using Moq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.Archive;

namespace ZipAsFolder.IO.Archive.Internal;
Expand Down
3 changes: 1 addition & 2 deletions sources/ZipAsFolder.IO.Archive.Test/StubArchiveEntry.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using ZipAsFolder.Archive;
using ZipAsFolder.Archive;

namespace ZipAsFolder.IO.Archive;

Expand Down
2 changes: 0 additions & 2 deletions sources/ZipAsFolder.IO.Archive/ArchiveDirectoryInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using ZipAsFolder.Archive;
using ZipAsFolder.IO.Archive.Internal;

Expand Down
2 changes: 0 additions & 2 deletions sources/ZipAsFolder.IO.Archive/ArchiveFile.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using ZipAsFolder.Archive;
using ZipAsFolder.IO.Archive.Internal;

Expand Down
2 changes: 0 additions & 2 deletions sources/ZipAsFolder.IO.Archive/ArchiveFileInfo.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.IO;
using ZipAsFolder.Archive;
using ZipAsFolder.IO.Archive.Internal;

Expand Down
3 changes: 0 additions & 3 deletions sources/ZipAsFolder.IO.Archive/ArchiveFileSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using ZipAsFolder.Archive;

namespace ZipAsFolder.IO.Archive;
Expand Down
5 changes: 1 addition & 4 deletions sources/ZipAsFolder.IO.Archive/Internal/EntryReader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using ZipAsFolder.Archive;
using ZipAsFolder.Archive;

namespace ZipAsFolder.IO.Archive.Internal;

Expand Down
5 changes: 0 additions & 5 deletions sources/ZipAsFolder.IO.Archive/Internal/EntryStream.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;

namespace ZipAsFolder.IO.Archive.Internal;

internal sealed class EntryStream : Stream
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.IO;
using Moq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.TestApi;

namespace ZipAsFolder.IO.FileSystem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.IO;
using Moq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.TestApi;

namespace ZipAsFolder.IO.FileSystem;
Expand Down
4 changes: 0 additions & 4 deletions sources/ZipAsFolder.IO.FileSystem.Test/FileSystemTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.IO;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.TestApi;

namespace ZipAsFolder.IO.FileSystem;
Expand Down
5 changes: 1 addition & 4 deletions sources/ZipAsFolder.IO.FileSystem/FileSystem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Diagnostics.CodeAnalysis;
using System.IO;

namespace ZipAsFolder.IO.FileSystem;
namespace ZipAsFolder.IO.FileSystem;

public sealed class FileSystem : IFileSystem
{
Expand Down
6 changes: 1 addition & 5 deletions sources/ZipAsFolder.IO.FileSystem/FileSystemDirectoryInfo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;

namespace ZipAsFolder.IO.FileSystem;
namespace ZipAsFolder.IO.FileSystem;

internal sealed class FileSystemDirectoryInfo : DirectoryInfoBase
{
Expand Down
4 changes: 1 addition & 3 deletions sources/ZipAsFolder.IO.FileSystem/FileSystemFileInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.IO;

namespace ZipAsFolder.IO.FileSystem;
namespace ZipAsFolder.IO.FileSystem;

internal sealed class FileSystemFileInfo : FileInfoBase
{
Expand Down
4 changes: 0 additions & 4 deletions sources/ZipAsFolder.Shared.Test/EnumExtensionsTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using NUnit.Framework;
using Shouldly;

namespace ZipAsFolder;

[TestFixture]
Expand Down
6 changes: 1 addition & 5 deletions sources/ZipAsFolder.Shared/ArgumentAssert.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace ZipAsFolder;
namespace ZipAsFolder;

public static class ArgumentAssert
{
Expand Down
1 change: 0 additions & 1 deletion sources/ZipAsFolder.Shared/EnumExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Runtime.CompilerServices;

namespace ZipAsFolder;
Expand Down
4 changes: 1 addition & 3 deletions sources/ZipAsFolder.Shared/StringExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace ZipAsFolder;
namespace ZipAsFolder;

public static class StringExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Moq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.IO;

namespace ZipAsFolder.Suite.Internal;
Expand Down
3 changes: 0 additions & 3 deletions sources/ZipAsFolder.Suite.Test/Internal/PathWalkerTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using Moq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.IO;

namespace ZipAsFolder.Suite.Internal;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System.IO;
using System.Text;
using System.Threading;
using Moq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.IO;
using ZipAsFolder.TestApi;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System.Collections.Generic;
using System.IO;
using Moq;
using NUnit.Framework;
using Shouldly;
using ZipAsFolder.IO;

namespace ZipAsFolder.Suite.Internal;
Expand Down
4 changes: 0 additions & 4 deletions sources/ZipAsFolder.Suite/IFileContentReader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections;
using System.Threading;

namespace ZipAsFolder.Suite;

public interface IFileContentReader : IDisposable
Expand Down
5 changes: 0 additions & 5 deletions sources/ZipAsFolder.Suite/IFileContentWriter.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections;
using System.IO;
using System.Threading;

namespace ZipAsFolder.Suite;

public interface IFileContentWriter : IDisposable
Expand Down
3 changes: 0 additions & 3 deletions sources/ZipAsFolder.Suite/Internal/FileSystemProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using ZipAsFolder.IO;

namespace ZipAsFolder.Suite.Internal;
Expand Down
1 change: 0 additions & 1 deletion sources/ZipAsFolder.Suite/Internal/IFileSystemProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using ZipAsFolder.IO;

namespace ZipAsFolder.Suite.Internal;
Expand Down
2 changes: 0 additions & 2 deletions sources/ZipAsFolder.Suite/Internal/PathWalker.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using ZipAsFolder.IO;

namespace ZipAsFolder.Suite.Internal;
Expand Down
Loading

0 comments on commit 99cdb84

Please sign in to comment.