Skip to content

Commit 464a5d8

Browse files
committed
www
1 parent d2fc199 commit 464a5d8

File tree

10 files changed

+11
-21
lines changed

10 files changed

+11
-21
lines changed

src/GitVersion.Core.Tests/Helpers/TestConsoleAdapter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ public class TestConsoleAdapter(StringBuilder sb) : IConsole
77
{
88
public void WriteLine(string? msg) => sb.AppendLine(msg);
99

10-
public void WriteLine() => sb.AppendLine();
11-
1210
public void Write(string? msg) => sb.Append(msg);
1311

1412
public override string ToString() => sb.ToString();

src/GitVersion.Core/Core/RegexPatterns.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace GitVersion.Core;
66

7+
[SuppressMessage("Performance", "SYSLIB1045:Convert to \'GeneratedRegexAttribute\'.")]
78
internal static class RegexPatterns
89
{
910
private const RegexOptions Options = RegexOptions.IgnoreCase | RegexOptions.Compiled;

src/GitVersion.Core/Logging/Abstractions/IConsole.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ namespace GitVersion.Logging;
33
public interface IConsole
44
{
55
void WriteLine(string? msg);
6-
void WriteLine();
76
void Write(string? msg);
87
string? ReadLine();
98
IDisposable UseColor(ConsoleColor consoleColor);

src/GitVersion.Core/Logging/ConsoleAdapter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ internal class ConsoleAdapter : IConsole
66
{
77
public void WriteLine(string? msg) => Console.WriteLine(msg);
88

9-
public void WriteLine() => Console.WriteLine();
10-
119
public void Write(string? msg) => Console.Write(msg);
1210

1311
public string? ReadLine() => Console.ReadLine();

src/GitVersion.Core/PublicAPI.Shipped.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ GitVersion.Logging.IConsole
377377
GitVersion.Logging.IConsole.ReadLine() -> string?
378378
GitVersion.Logging.IConsole.UseColor(System.ConsoleColor consoleColor) -> System.IDisposable!
379379
GitVersion.Logging.IConsole.Write(string? msg) -> void
380-
GitVersion.Logging.IConsole.WriteLine() -> void
381380
GitVersion.Logging.IConsole.WriteLine(string? msg) -> void
382381
GitVersion.Logging.ILog
383382
GitVersion.Logging.ILog.AddLogAppender(GitVersion.Logging.ILogAppender! logAppender) -> void

src/GitVersion.MsBuild.Tests/GitVersion.MsBuild.Tests.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@
2727
</ItemGroup>
2828
<ItemGroup>
2929
<Compile Include="..\GitVersion.Core.Tests\Helpers\GitVersionCoreTestModule.cs" Link="Helpers\GitVersionCoreTestModule.cs" />
30-
<Compile Include="..\GitVersion.Core.Tests\Helpers\ExecutableHelper.cs" Link="Helpers\ExecutableHelper.cs" />
3130
<Compile Include="..\GitVersion.Core.Tests\Helpers\TestBase.cs" Link="Helpers\TestBase.cs" />
3231
<Compile Include="..\GitVersion.Core.Tests\Helpers\TestEnvironment.cs" Link="Helpers\TestEnvironment.cs" />
33-
<Compile Include="..\GitVersion.Core.Tests\Helpers\TestLogAppender.cs" Link="Helpers\TestLogAppender.cs" />
3432
<Compile Include="..\GitVersion.Core.Tests\Extensions\GitRepositoryTestingExtensions.cs" Link="Extensions\GitRepositoryTestingExtensions.cs" />
3533
<Compile Include="..\GitVersion.Core.Tests\Extensions\GitVersionVariablesExtensions.cs" Link="Extensions\GitVersionVariablesExtensions.cs" />
3634
<Compile Include="..\GitVersion.Core.Tests\Extensions\MockCollectionExtensions.cs" Link="Extensions\MockCollectionExtensions.cs" />

src/GitVersion.MsBuild.Tests/Helpers/MsBuildExeFixtureResult.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ namespace GitVersion.MsBuild.Tests.Helpers;
44

55
public sealed class MsBuildExeFixtureResult(IDisposable fixture) : IDisposable
66
{
7-
public IAnalyzerResults MsBuild { get; set; }
8-
public string Output { get; set; }
9-
public string ProjectPath { get; set; }
7+
public IAnalyzerResults MsBuild { get; init; }
8+
public string Output { get; init; }
9+
public string ProjectPath { get; init; }
1010
public void Dispose() => fixture.Dispose();
1111
}

src/GitVersion.MsBuild.Tests/Helpers/MsBuildTaskFixtureResult.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ namespace GitVersion.MsBuild.Tests.Helpers;
55
public sealed class MsBuildTaskFixtureResult<T>(IDisposable fixture) : IDisposable
66
where T : ITask
77
{
8-
public bool Success { get; set; }
8+
public bool Success { get; init; }
99

10-
public T Task { get; set; }
10+
public T Task { get; init; }
1111

12-
public int Errors { get; set; }
12+
public int Errors { get; init; }
1313
public int Warnings { get; set; }
1414
public int Messages { get; set; }
15-
public string Log { get; set; }
15+
public string Log { get; init; }
1616

1717
public void Dispose() => fixture.Dispose();
1818
}

src/GitVersion.MsBuild/Helpers/MsBuildAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ public void WriteLine(string? msg)
1212
WriteLine();
1313
}
1414

15-
public void WriteLine() => taskLog.LogMessage("\n");
16-
1715
public void Write(string? msg) => taskLog.LogMessage(msg);
1816

1917
public string? ReadLine() => Console.ReadLine();
@@ -25,4 +23,6 @@ public IDisposable UseColor(ConsoleColor consoleColor)
2523

2624
return Disposable.Create(() => Console.ForegroundColor = old);
2725
}
26+
27+
private void WriteLine() => taskLog.LogMessage("\n");
2828
}

src/GitVersion.Output/AssemblyInfo/ProjectFileUpdater.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88
namespace GitVersion.Output.AssemblyInfo;
99

10-
internal interface IProjectFileUpdater : IVersionConverter<AssemblyInfoContext>
11-
{
12-
bool CanUpdateProjectFile(XElement xmlRoot);
13-
}
10+
internal interface IProjectFileUpdater : IVersionConverter<AssemblyInfoContext>;
1411

1512
internal sealed class ProjectFileUpdater(ILog log, IFileSystem fileSystem) : IProjectFileUpdater
1613
{

0 commit comments

Comments
 (0)