Skip to content

Commit

Permalink
Enable ImplicitUsings
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuki committed Mar 30, 2023
1 parent 6e64076 commit 2711a72
Show file tree
Hide file tree
Showing 187 changed files with 41 additions and 751 deletions.
6 changes: 1 addition & 5 deletions src/Cocona.Core/Application/CoconaAppContextAccessor.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 Cocona.Application
namespace Cocona.Application
{
public interface ICoconaAppContextAccessor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Diagnostics;
using System.IO;
using System.Reflection;

namespace Cocona.Application
Expand Down
5 changes: 0 additions & 5 deletions src/Cocona.Core/Application/CoconaConsoleProvider.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Cocona.Application
{
public class CoconaConsoleProvider : ICoconaConsoleProvider
Expand Down
4 changes: 1 addition & 3 deletions src/Cocona.Core/Application/ICoconaConsoleProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.IO;

namespace Cocona.Application
namespace Cocona.Application
{
public interface ICoconaConsoleProvider
{
Expand Down
2 changes: 0 additions & 2 deletions src/Cocona.Core/Application/ICoconaInstanceActivator.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace Cocona.Application
{
public interface ICoconaInstanceActivator
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Application
{
public interface ICoconaServiceProviderIsService
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Application
{
public interface ICoconaServiceProviderScopeSupport
Expand Down
4 changes: 0 additions & 4 deletions src/Cocona.Core/ArgumentAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Cocona
{
/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions src/Cocona.Core/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;

[assembly: InternalsVisibleTo(
"Cocona.Test, PublicKey=" +
Expand Down
6 changes: 0 additions & 6 deletions src/Cocona.Core/Builder/CoconaAppBuilderExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Cocona.Builder;

// ReSharper disable once CheckNamespace
Expand Down
8 changes: 0 additions & 8 deletions src/Cocona.Core/Builder/CoconaCommandsBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Cocona.Builder.Metadata;
using Cocona.Command;
using Cocona.Filters;

namespace Cocona.Builder
Expand Down
2 changes: 0 additions & 2 deletions src/Cocona.Core/Builder/CommandConventionBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using Cocona.Internal;

namespace Cocona.Builder
Expand Down
5 changes: 0 additions & 5 deletions src/Cocona.Core/Builder/CommandConventionBuilderExtensions.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.Text;
using System.Threading.Tasks;
using Cocona.Builder;
using Cocona.Builder.Metadata;
using Cocona.Filters;
Expand Down
5 changes: 1 addition & 4 deletions src/Cocona.Core/Builder/CommandTypeConventionBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;

namespace Cocona.Builder
namespace Cocona.Builder
{
public class CommandTypeConventionBuilder
{
Expand Down
3 changes: 0 additions & 3 deletions src/Cocona.Core/Builder/DelegateCommandData.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.Reflection;

namespace Cocona.Builder
Expand Down
7 changes: 0 additions & 7 deletions src/Cocona.Core/Builder/ICoconaAppBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Cocona.Builder
{
public interface ICoconaAppBuilder : ICoconaCommandsBuilder
Expand Down
4 changes: 1 addition & 3 deletions src/Cocona.Core/Builder/ICommandBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Cocona.Builder
namespace Cocona.Builder
{
public interface ICommandBuilder
{
Expand Down
7 changes: 0 additions & 7 deletions src/Cocona.Core/Builder/ICommandData.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Builder
{
public interface ICommandData
Expand Down
6 changes: 0 additions & 6 deletions src/Cocona.Core/Builder/Metadata/CommandAliasesMetadata.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Builder.Metadata
{
public class CommandAliasesMetadata
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Builder.Metadata
{
internal class CommandFromBuilderMetadata
Expand Down
7 changes: 0 additions & 7 deletions src/Cocona.Core/Builder/Metadata/OptionLikeCommandMetadata.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Builder.Metadata
{
public class OptionLikeCommandMetadata : IOptionLikeCommandMetadata
Expand Down
6 changes: 0 additions & 6 deletions src/Cocona.Core/Builder/OptionLikeCommandsBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cocona.Builder;
using Cocona.Builder.Metadata;
using Cocona.Internal;

namespace Cocona.Builder
Expand Down
5 changes: 0 additions & 5 deletions src/Cocona.Core/Builder/OptionLikeDelegateCommandData.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.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Builder
{
Expand Down
6 changes: 0 additions & 6 deletions src/Cocona.Core/Builder/SubCommandData.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Builder
{
public class SubCommandData : ICommandData
Expand Down
6 changes: 0 additions & 6 deletions src/Cocona.Core/Builder/TypeCommandData.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Builder
{
public class TypeCommandData : ICommandData
Expand Down
5 changes: 0 additions & 5 deletions src/Cocona.Core/Builder/TypeMethodCommandData.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.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Cocona.Builder
{
Expand Down
6 changes: 2 additions & 4 deletions src/Cocona.Core/Cocona.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
<PropertyGroup>
<TargetFrameworks>net6.0;netstandard2.0;netstandard2.1</TargetFrameworks>
<RootNamespace>Cocona</RootNamespace>

<nullable>enable</nullable>
<WarningsAsErrors>RS0030</WarningsAsErrors>
<NoWarn>$(NoWarn);1701;1702;1591</NoWarn>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<!-- NuGet Package Information -->
<Description>Core component for Cocona. Micro-framework for .NET console application.</Description>
Expand Down
3 changes: 0 additions & 3 deletions src/Cocona.Core/CoconaAppContext.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using Cocona.Command;
using Cocona.CommandLine;
using System.Text;
using System.Threading;

namespace Cocona
{
Expand Down
3 changes: 0 additions & 3 deletions src/Cocona.Core/CoconaAppFeatureCollection.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;

namespace Cocona
{
public class CoconaAppFeatureCollection
Expand Down
4 changes: 0 additions & 4 deletions src/Cocona.Core/CoconaException.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Cocona
{
public class CoconaException : Exception
Expand Down
4 changes: 0 additions & 4 deletions src/Cocona.Core/Command/Binder/CoconaParameterBinder.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
using Cocona.CommandLine;
using Cocona.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cocona.Command.Binder.Validation;

namespace Cocona.Command.Binder
Expand Down
3 changes: 0 additions & 3 deletions src/Cocona.Core/Command/Binder/CoconaValueConverter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace Cocona.Command.Binder
{
Expand Down
1 change: 0 additions & 1 deletion src/Cocona.Core/Command/Binder/ICoconaParameterBinder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Cocona.CommandLine;
using System.Collections.Generic;

namespace Cocona.Command.Binder
{
Expand Down
6 changes: 1 addition & 5 deletions src/Cocona.Core/Command/Binder/ICoconaValueConverter.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 Cocona.Command.Binder
namespace Cocona.Command.Binder
{
public interface ICoconaValueConverter
{
Expand Down
2 changes: 0 additions & 2 deletions src/Cocona.Core/Command/Binder/ParameterBinderException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;

namespace Cocona.Command.Binder
{
public class ParameterBinderException : Exception
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Cocona.Command.Binder.Validation
namespace Cocona.Command.Binder.Validation
{
public struct CoconaParameterValidationContext
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;

namespace Cocona.Command.Binder.Validation
namespace Cocona.Command.Binder.Validation
{
public class CoconaParameterValidationResult
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Cocona.Command.Binder.Validation
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;

namespace Cocona.Command.Binder.Validation
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Cocona.Command.Binder.Validation
namespace Cocona.Command.Binder.Validation
{
public interface ICoconaParameterValidator
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace Cocona.Command.Binder.Validation
namespace Cocona.Command.Binder.Validation
{
public interface ICoconaParameterValidatorProvider
{
Expand Down
7 changes: 0 additions & 7 deletions src/Cocona.Core/Command/BuiltIn/BuiltInOptionLikeCommands.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cocona.Application;
using Cocona.Command.Features;
using Cocona.CommandLine;
using Cocona.Help;
using Cocona.Resources;
using Cocona.ShellCompletion;
Expand Down
5 changes: 0 additions & 5 deletions src/Cocona.Core/Command/BuiltIn/BuiltInPrimaryCommand.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
using Cocona.Application;
using Cocona.Help;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Cocona.Command.Features;

namespace Cocona.Command.BuiltIn
{
Expand Down
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.Text;

namespace Cocona.Command.BuiltIn
{
public class CoconaBuiltInCommandProvider : ICoconaCommandProvider
Expand Down
Loading

0 comments on commit 2711a72

Please sign in to comment.