Skip to content

Commit 998619b

Browse files
committed
apply format after merge
1 parent fb852fe commit 998619b

File tree

6 files changed

+38
-38
lines changed

6 files changed

+38
-38
lines changed

src/coverlet.core/Exceptions.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55

66
namespace Coverlet.Core.Exceptions
77
{
8-
[Serializable]
9-
public class CoverletException : Exception
10-
{
11-
public CoverletException() { }
12-
public CoverletException(string message) : base(message) { }
13-
public CoverletException(string message, System.Exception inner) : base(message, inner) { }
14-
protected CoverletException(
15-
System.Runtime.Serialization.SerializationInfo info,
16-
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
17-
}
8+
[Serializable]
9+
public class CoverletException : Exception
10+
{
11+
public CoverletException() { }
12+
public CoverletException(string message) : base(message) { }
13+
public CoverletException(string message, System.Exception inner) : base(message, inner) { }
14+
protected CoverletException(
15+
System.Runtime.Serialization.SerializationInfo info,
16+
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
17+
}
1818

1919
[Serializable]
2020
internal class CecilAssemblyResolutionException : CoverletException

src/coverlet.msbuild.tasks/BaseTask.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
namespace Coverlet.MSbuild.Tasks
88
{
9-
public abstract class BaseTask : Task
10-
{
11-
public static IServiceProvider ServiceProvider { get; protected internal set; }
12-
}
9+
public abstract class BaseTask : Task
10+
{
11+
public static IServiceProvider ServiceProvider { get; protected internal set; }
12+
}
1313
}

src/coverlet.msbuild.tasks/ReportWriter.cs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
namespace Coverlet.MSbuild.Tasks
99
{
10-
internal class ReportWriter
11-
{
12-
private readonly string _coverletMultiTargetFrameworksCurrentTFM;
13-
private readonly string _directory;
14-
private readonly string _output;
15-
private readonly IReporter _reporter;
16-
private readonly IFileSystem _fileSystem;
17-
private readonly ISourceRootTranslator _sourceRootTranslator;
18-
private readonly CoverageResult _result;
10+
internal class ReportWriter
11+
{
12+
private readonly string _coverletMultiTargetFrameworksCurrentTFM;
13+
private readonly string _directory;
14+
private readonly string _output;
15+
private readonly IReporter _reporter;
16+
private readonly IFileSystem _fileSystem;
17+
private readonly ISourceRootTranslator _sourceRootTranslator;
18+
private readonly CoverageResult _result;
1919

20-
public ReportWriter(string coverletMultiTargetFrameworksCurrentTFM, string directory, string output,
21-
IReporter reporter, IFileSystem fileSystem, CoverageResult result, ISourceRootTranslator sourceRootTranslator)
22-
=> (_coverletMultiTargetFrameworksCurrentTFM, _directory, _output, _reporter, _fileSystem, _result, _sourceRootTranslator) =
23-
(coverletMultiTargetFrameworksCurrentTFM, directory, output, reporter, fileSystem, result, sourceRootTranslator);
20+
public ReportWriter(string coverletMultiTargetFrameworksCurrentTFM, string directory, string output,
21+
IReporter reporter, IFileSystem fileSystem, CoverageResult result, ISourceRootTranslator sourceRootTranslator)
22+
=> (_coverletMultiTargetFrameworksCurrentTFM, _directory, _output, _reporter, _fileSystem, _result, _sourceRootTranslator) =
23+
(coverletMultiTargetFrameworksCurrentTFM, directory, output, reporter, fileSystem, result, sourceRootTranslator);
2424

2525
public string WriteReport()
2626
{
@@ -47,9 +47,9 @@ public string WriteReport()
4747
filename = $"{filename}{separatorPoint}{_coverletMultiTargetFrameworksCurrentTFM}.{_reporter.Extension}";
4848
}
4949

50-
string report = Path.Combine(_directory, filename);
51-
_fileSystem.WriteAllText(report, _reporter.Report(_result, _sourceRootTranslator));
52-
return report;
53-
}
50+
string report = Path.Combine(_directory, filename);
51+
_fileSystem.WriteAllText(report, _reporter.Report(_result, _sourceRootTranslator));
52+
return report;
5453
}
54+
}
5555
}

test/coverlet.msbuild.tasks.tests/CoverageResultTaskTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
using Coverlet.Core.Abstractions;
55
using Coverlet.Core.Helpers;
66
using Coverlet.MSbuild.Tasks;
7-
using Microsoft.Extensions.DependencyInjection;
87
using Microsoft.Build.Framework;
98
using Microsoft.Build.Locator;
109
using Microsoft.Build.Utilities;
10+
using Microsoft.Extensions.DependencyInjection;
1111
using Moq;
1212
using Xunit;
1313

@@ -87,7 +87,7 @@ public void Execute_StateUnderTest_WithInstrumentationState_Fake()
8787

8888
#pragma warning disable CS8604 // Possible null reference argument for parameter..
8989
#pragma warning disable CS8602 // Dereference of a possibly null reference.
90-
var InstrumenterState = new TaskItem(Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase, "TestAssets\\InstrumenterState.ItemSpec.data1.xml")) ;
90+
var InstrumenterState = new TaskItem(Path.Combine(AppDomain.CurrentDomain.SetupInformation.ApplicationBase, "TestAssets\\InstrumenterState.ItemSpec.data1.xml"));
9191
#pragma warning restore CS8602 // Dereference of a possibly null reference.
9292
#pragma warning restore C8S604 // Possible null reference argument for parameter.
9393

test/coverlet.tests.projectsample.wpf6/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ namespace coverlet.tests.projectsample.wpf6;
55

66
public static class Program
77
{
8-
public static void Main() { }
8+
public static void Main() { }
99
}

test/coverlet.tests.projectsample.wpf6/TestClass.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
namespace coverlet.tests.projectsample.wpf6
77
{
8-
public class TestClass
9-
{
10-
public UserControl? Control { get; set; }
11-
}
8+
public class TestClass
9+
{
10+
public UserControl? Control { get; set; }
11+
}
1212
}

0 commit comments

Comments
 (0)