Skip to content

Commit c04da1e

Browse files
committed
chore(dev): Make ExcludeByAttribute property singular
1 parent 4f16aa0 commit c04da1e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/coverlet.msbuild.tasks/InstrumentationTask.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class InstrumentationTask : Task
1313
private string _include;
1414
private string _excludeByFile;
1515
private string _mergeWith;
16-
private string _excludeByAttributes;
16+
private string _excludeByAttribute;
1717

1818
internal static Coverage Coverage
1919
{
@@ -51,10 +51,10 @@ public string MergeWith
5151
set { _mergeWith = value; }
5252
}
5353

54-
public string ExcludeByAttributes
54+
public string ExcludeByAttribute
5555
{
56-
get { return _excludeByAttributes; }
57-
set { _excludeByAttributes = value; }
56+
get { return _excludeByAttribute; }
57+
set { _excludeByAttribute = value; }
5858
}
5959

6060
public override bool Execute()
@@ -64,7 +64,7 @@ public override bool Execute()
6464
var excludedSourceFiles = _excludeByFile?.Split(',');
6565
var excludeFilters = _exclude?.Split(',');
6666
var includeFilters = _include?.Split(',');
67-
var excludeAttributes = _excludeByAttributes?.Split(',');
67+
var excludeAttributes = _excludeByAttribute?.Split(',');
6868

6969
_coverage = new Coverage(_path, excludeFilters, includeFilters, excludedSourceFiles, _mergeWith, excludeAttributes);
7070
_coverage.PrepareModules();

src/coverlet.msbuild/coverlet.msbuild.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
<MergeWith Condition="$(MergeWith) == ''"></MergeWith>
1010
<Threshold Condition="$(Threshold) == ''">0</Threshold>
1111
<ThresholdType Condition="$(ThresholdType) == ''">line,branch,method</ThresholdType>
12-
<ExcludeByAttributes Condition="$(ExcludeByAttributes) == ''"></ExcludeByAttributes>
12+
<ExcludeByAttribute Condition="$(ExcludeByAttribute) == ''"></ExcludeByAttribute>
1313
</PropertyGroup>
1414
</Project>

src/coverlet.msbuild/coverlet.msbuild.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Exclude="$(Exclude)"
1111
ExcludeByFile="$(ExcludeByFile)"
1212
MergeWith="$(MergeWith)"
13-
ExcludeByAttributes="$(ExcludeByAttributes)"
13+
ExcludeByAttribute="$(ExcludeByAttribute)"
1414
Path="$(TargetPath)" />
1515
</Target>
1616

@@ -21,7 +21,7 @@
2121
Exclude="$(Exclude)"
2222
ExcludeByFile="$(ExcludeByFile)"
2323
MergeWith="$(MergeWith)"
24-
ExcludeByAttributes="$(ExcludeByAttributes)"
24+
ExcludeByAttribute="$(ExcludeByAttribute)"
2525
Path="$(TargetPath)" />
2626
</Target>
2727

0 commit comments

Comments
 (0)