Add global usings (#668)

* Use global usings

* Fix namespace declarations for test projects
This commit is contained in:
Patrik Svensson
2021-12-23 16:50:31 +01:00
committed by GitHub
parent eb6a9d8d04
commit 52c1d9122b
514 changed files with 10659 additions and 12441 deletions

View File

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using Spectre.Console.Rendering;
namespace Spectre.Console;
internal static class Aligner

View File

@ -1,7 +1,3 @@
using System;
using System.Linq;
using System.Text;
using Spectre.Console.Rendering;
using static Spectre.Console.AnsiSequences;
namespace Spectre.Console;

View File

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
namespace Spectre.Console;
internal static class AnsiColorBuilder

View File

@ -1,5 +1,3 @@
using System;
using Spectre.Console.Rendering;
using static Spectre.Console.AnsiSequences;
namespace Spectre.Console;

View File

@ -1,4 +1,3 @@
using System;
using static Spectre.Console.AnsiSequences;
namespace Spectre.Console;

View File

@ -1,5 +1,3 @@
using System.Collections.Generic;
namespace Spectre.Console;
internal static class AnsiDecorationBuilder

View File

@ -1,9 +1,3 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
/////////////////////////////////////////////////////////////////////////////////////////////////////
// Portions of this code was ported from the supports-ansi project by Qingrong Ke
// https://github.com/keqingrong/supports-ansi/blob/master/index.js

View File

@ -1,6 +1,3 @@
using System;
using System.Runtime.CompilerServices;
namespace Spectre.Console;
internal sealed class AnsiLinkHasher

View File

@ -1,5 +1,3 @@
using System.Linq;
namespace Spectre.Console;
internal static class AnsiSequences

View File

@ -1,6 +1,3 @@
using System;
using Spectre.Console.Rendering;
namespace Spectre.Console;
internal sealed class AnsiConsoleFacade : IAnsiConsole

View File

@ -1,5 +1,3 @@
using Spectre.Console.Rendering;
namespace Spectre.Console;
/// <summary>

View File

@ -1,5 +1,3 @@
using Spectre.Console.Rendering;
namespace Spectre.Console;
internal sealed class LegacyConsoleBackend : IAnsiConsoleBackend

View File

@ -1,5 +1,3 @@
using Wcwidth;
namespace Spectre.Console;
internal static class Cell

View File

@ -1,7 +1,3 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace Spectre.Console;
internal sealed class ListWithCallback<T> : IList<T>, IReadOnlyList<T>

View File

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace Spectre.Console;
internal static partial class ColorPalette

View File

@ -1,6 +1,3 @@
using System;
using System.Runtime.InteropServices;
namespace Spectre.Console;
internal static class ColorSystemDetector

View File

@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
namespace Spectre.Console;
internal static partial class ColorTable

View File

@ -1,5 +1,3 @@
using System.IO;
namespace Spectre.Console;
internal static class ConsoleHelper

View File

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace Spectre.Console;
internal static class DecorationTable

View File

@ -1,7 +1,3 @@
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Spectre.Console.Internal;
internal sealed class DefaultExclusivityMode : IExclusivityMode

View File

@ -1,7 +1,3 @@
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Spectre.Console;
internal sealed class DefaultInput : IAnsiConsoleInput

View File

@ -1,6 +1,3 @@
using System;
using System.Globalization;
namespace Spectre.Console;
internal struct FileSize

View File

@ -1,11 +1,6 @@
// Ported from Rich by Will McGugan, licensed under MIT.
// https://github.com/willmcgugan/rich/blob/527475837ebbfc427530b3ee0d4d0741d2d0fc6d/rich/_ratio.py
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Spectre.Console;
internal static class Ratio

View File

@ -1,6 +1,3 @@
using System;
using System.IO;
namespace Spectre.Console;
internal static class ResourceReader

View File

@ -1,8 +1,3 @@
using System;
using System.Collections.Generic;
using System.Text;
using Spectre.Console.Rendering;
namespace Spectre.Console.Internal;
internal sealed class HtmlEncoder : IAnsiConsoleEncoder

View File

@ -1,7 +1,3 @@
using System.Collections.Generic;
using System.Text;
using Spectre.Console.Rendering;
namespace Spectre.Console.Internal;
internal sealed class TextEncoder : IAnsiConsoleEncoder

View File

@ -1,7 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace Spectre.Console;
internal static class MarkupParser

View File

@ -1,5 +1,3 @@
using System;
namespace Spectre.Console;
internal sealed class MarkupToken

View File

@ -1,6 +1,3 @@
using System;
using System.Text;
namespace Spectre.Console;
internal sealed class MarkupTokenizer : IDisposable

View File

@ -1,6 +1,3 @@
using System;
using System.IO;
namespace Spectre.Console;
internal sealed class StringBuffer : IDisposable

View File

@ -1,8 +1,3 @@
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
namespace Spectre.Console;
internal static class TypeConverterHelper