Skip to content

Commit f24b9d5

Browse files
authored
Run dotnet format (#561)
1 parent 182766e commit f24b9d5

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

src/coverlet.collector/DataCollection/CoverletSettingsParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private string[] ParseReportFormats(XmlElement configurationElement)
9090
.Where(format => !string.IsNullOrEmpty(format)).ToArray();
9191
}
9292

93-
return formats is null || formats.Length == 0 ? new[] {CoverletConstants.DefaultReportFormat} : formats;
93+
return formats is null || formats.Length == 0 ? new[] { CoverletConstants.DefaultReportFormat } : formats;
9494
}
9595

9696
/// <summary>

src/coverlet.msbuild.tasks/InstrumentationTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public override bool Execute()
105105
var excludeFilters = _exclude?.Split(',');
106106
var excludedSourceFiles = _excludeByFile?.Split(',');
107107
var excludeAttributes = _excludeByAttribute?.Split(',');
108-
var fileSystem = (IFileSystem) DependencyInjection.Current.GetService(typeof(IFileSystem));
108+
var fileSystem = (IFileSystem)DependencyInjection.Current.GetService(typeof(IFileSystem));
109109

110110
Coverage coverage = new Coverage(_path,
111111
includeFilters,
@@ -118,7 +118,7 @@ public override bool Execute()
118118
_mergeWith,
119119
_useSourceLink,
120120
_logger,
121-
(IInstrumentationHelper) DependencyInjection.Current.GetService(typeof(IInstrumentationHelper)),
121+
(IInstrumentationHelper)DependencyInjection.Current.GetService(typeof(IInstrumentationHelper)),
122122
fileSystem);
123123

124124
CoveragePrepareResult prepareResult = coverage.PrepareModules();

test/coverlet.collector.tests/CoverletSettingsParserTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ public void ParseShouldCorrectlyParseConfigurationElement()
7373
}
7474

7575
[Theory]
76-
[InlineData(" , json", 1, new []{ "json" })]
77-
[InlineData(" , json, ", 1, new [] { "json" })]
76+
[InlineData(" , json", 1, new[] { "json" })]
77+
[InlineData(" , json, ", 1, new[] { "json" })]
7878
[InlineData("json,cobertura", 2, new[] { "json", "cobertura" })]
7979
[InlineData(" , json,, cobertura ", 2, new[] { "json", "cobertura" })]
80-
[InlineData(" , json, , cobertura ", 2, new [] { "json", "cobertura" })]
80+
[InlineData(" , json, , cobertura ", 2, new[] { "json", "cobertura" })]
8181
public void ParseShouldCorrectlyParseMultipleFormats(string formats, int formatsCount, string[] expectedReportFormats)
8282
{
8383
var testModules = new List<string> { "abc.dll" };

test/coverlet.core.tests/Samples/Samples.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ public class ClassWithPropertyExcludedByObsoleteAttr
230230
public class ClassWithSetterOnlyPropertyExcludedByObsoleteAttr
231231
{
232232
[Obsolete]
233-
public string Property {
233+
public string Property
234+
{
234235
set => _ = string.Empty;
235236
}
236237
}

0 commit comments

Comments
 (0)