Skip to content

Commit

Permalink
Cleanup unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Taillefer committed Aug 11, 2023
1 parent 5bb4869 commit c7ce98b
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion eng/MSBuild/ProjectStaging.targets
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<!-- Produce errors if we don't have all the right property values for normal stage -->
<Target Name="_CheckNormalStageProps" Condition="'$(Stage)' == 'normal'" BeforeTargets="Build">
<Error Condition="'$(MinCodeCoverage)' != 'n/a' AND ('$(MinCodeCoverage)' &lt; 85)" Text="MinCodeCoverage property must be >= 85 for normal stage." />
<Error Condition="'$(MinCodeCoverage)' != 'n/a' AND ('$(MinCodeCoverage)' &lt; 80)" Text="MinCodeCoverage property must be >= 80 for normal stage." />
<Error Condition="'$(MinMutationScore)' != 'n/a' AND ('$(MinMutationScore)' &lt; 50)" Text="MinMutationScore property must be >= 50 for normal stage." />
</Target>

Expand Down
7 changes: 0 additions & 7 deletions eng/scripts/ValidateProjectCoverage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Get-ChildItem -Path src -Include '*.*sproj' -Recurse | ForEach-Object {
$XmlDoc = [xml](Get-Content $_)
$AssemblyName = Get-XmlValue $XmlDoc "//Project/PropertyGroup/AssemblyName"
$MinCodeCoverage = Get-XmlValue $XmlDoc "//Project/PropertyGroup/MinCodeCoverage"
$TempMinCodeCoverage = Get-XmlValue $XmlDoc "//Project/PropertyGroup/TempMinCodeCoverage"

if ([string]::IsNullOrWhiteSpace($AssemblyName)) {
$AssemblyName = $_.BaseName
Expand All @@ -53,12 +52,6 @@ Get-ChildItem -Path src -Include '*.*sproj' -Recurse | ForEach-Object {
return
}

# Some projects currently fail code coverage checks. Allow to temporarily override the requirements
# TODO: This should eventually removed.
if (![string]::IsNullOrWhiteSpace($TempMinCodeCoverage)) {
$MinCodeCoverage = $TempMinCodeCoverage
}

$ProjectToMinCoverageMap[$AssemblyName] = $MinCodeCoverage
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

<PropertyGroup>
<Stage>normal</Stage>
<TempMinCodeCoverage>75</TempMinCodeCoverage>
<MinCodeCoverage>92</MinCodeCoverage>
<MinMutationScore>87</MinMutationScore>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

<PropertyGroup>
<Stage>normal</Stage>
<TempMinCodeCoverage>77</TempMinCodeCoverage>
<MinCodeCoverage>100</MinCodeCoverage>
<MinCodeCoverage>77</MinCodeCoverage>
<MinMutationScore>90</MinMutationScore>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

<PropertyGroup>
<Stage>dev</Stage>
<TempMinCodeCoverage>70</TempMinCodeCoverage>
<MinCodeCoverage>100</MinCodeCoverage>
<MinCodeCoverage>70</MinCodeCoverage>
<MinMutationScore>75</MinMutationScore>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@

<PropertyGroup>
<Stage>normal</Stage>
<TempMinCodeCoverage>78</TempMinCodeCoverage>
<MinCodeCoverage>100</MinCodeCoverage>
<MinCodeCoverage>81</MinCodeCoverage>
<MinMutationScore>90</MinMutationScore>
</PropertyGroup>

Expand Down
1 change: 0 additions & 1 deletion src/Shared/Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

<PropertyGroup>
<Stage>normal</Stage>
<TempMinCodeCoverage>89</TempMinCodeCoverage>
<MinCodeCoverage>100</MinCodeCoverage>
<MinMutationScore>85</MinMutationScore>
</PropertyGroup>
Expand Down

0 comments on commit c7ce98b

Please sign in to comment.