File tree Expand file tree Collapse file tree 10 files changed +11
-21
lines changed
GitVersion.Core.Tests/Helpers
GitVersion.MsBuild/Helpers
GitVersion.Output/AssemblyInfo Expand file tree Collapse file tree 10 files changed +11
-21
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff line change 44
55namespace GitVersion . Core ;
66
7+ [ SuppressMessage ( "Performance" , "SYSLIB1045:Convert to \' GeneratedRegexAttribute\' ." ) ]
78internal static class RegexPatterns
89{
910 private const RegexOptions Options = RegexOptions . IgnoreCase | RegexOptions . Compiled ;
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ namespace GitVersion.Logging;
33public interface IConsole
44{
55 void WriteLine ( string ? msg ) ;
6- void WriteLine ( ) ;
76 void Write ( string ? msg ) ;
87 string ? ReadLine ( ) ;
98 IDisposable UseColor ( ConsoleColor consoleColor ) ;
Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff line change @@ -377,7 +377,6 @@ GitVersion.Logging.IConsole
377377GitVersion.Logging.IConsole.ReadLine() -> string?
378378GitVersion.Logging.IConsole.UseColor(System.ConsoleColor consoleColor) -> System.IDisposable!
379379GitVersion.Logging.IConsole.Write(string? msg) -> void
380- GitVersion.Logging.IConsole.WriteLine() -> void
381380GitVersion.Logging.IConsole.WriteLine(string? msg) -> void
382381GitVersion.Logging.ILog
383382GitVersion.Logging.ILog.AddLogAppender(GitVersion.Logging.ILogAppender! logAppender) -> void
Original file line number Diff line number Diff line change 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" />
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ namespace GitVersion.MsBuild.Tests.Helpers;
44
55public 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}
Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ namespace GitVersion.MsBuild.Tests.Helpers;
55public 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 77
88namespace GitVersion . Output . AssemblyInfo ;
99
10- internal interface IProjectFileUpdater : IVersionConverter < AssemblyInfoContext >
11- {
12- bool CanUpdateProjectFile ( XElement xmlRoot ) ;
13- }
10+ internal interface IProjectFileUpdater : IVersionConverter < AssemblyInfoContext > ;
1411
1512internal sealed class ProjectFileUpdater ( ILog log , IFileSystem fileSystem ) : IProjectFileUpdater
1613{
You can’t perform that action at this time.
0 commit comments