Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit 5f9d785

Browse files
committed
Update Cake.Issues to 0.3.0-beta.4
1 parent 521ac1b commit 5f9d785

File tree

5 files changed

+10
-19
lines changed

5 files changed

+10
-19
lines changed

src/Cake.Issues.InspectCode.Tests/Cake.Issues.InspectCode.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
<HintPath>..\packages\Cake.Core.0.28.0\lib\net46\Cake.Core.dll</HintPath>
4242
</Reference>
4343
<Reference Include="Cake.Issues, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
44-
<HintPath>..\packages\Cake.Issues.0.3.0-beta0002\lib\netstandard2.0\Cake.Issues.dll</HintPath>
44+
<HintPath>..\packages\Cake.Issues.0.3.0-beta0004\lib\netstandard2.0\Cake.Issues.dll</HintPath>
4545
</Reference>
4646
<Reference Include="Cake.Issues.Testing, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
47-
<HintPath>..\packages\Cake.Issues.Testing.0.3.0-beta0002\lib\netstandard2.0\Cake.Issues.Testing.dll</HintPath>
47+
<HintPath>..\packages\Cake.Issues.Testing.0.3.0-beta0004\lib\netstandard2.0\Cake.Issues.Testing.dll</HintPath>
4848
</Reference>
4949
<Reference Include="Cake.Testing, Version=0.28.0.0, Culture=neutral, processorArchitecture=MSIL">
5050
<HintPath>..\packages\Cake.Testing.0.28.0\lib\net46\Cake.Testing.dll</HintPath>

src/Cake.Issues.InspectCode.Tests/packages.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Cake.Core" version="0.28.0" targetFramework="net461" />
4-
<package id="Cake.Issues" version="0.3.0-beta0002" targetFramework="net461" />
5-
<package id="Cake.Issues.Testing" version="0.3.0-beta0002" targetFramework="net461" />
4+
<package id="Cake.Issues" version="0.3.0-beta0004" targetFramework="net461" />
5+
<package id="Cake.Issues.Testing" version="0.3.0-beta0004" targetFramework="net461" />
66
<package id="Cake.Testing" version="0.28.0" targetFramework="net461" />
77
<package id="Shouldly" version="3.0.0" targetFramework="net46" />
88
<package id="StyleCop.Analyzers" version="1.0.2" targetFramework="net46" developmentDependency="true" />

src/Cake.Issues.InspectCode/Cake.Issues.InspectCode.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<HintPath>..\packages\Cake.Core.0.28.0\lib\net46\Cake.Core.dll</HintPath>
4646
</Reference>
4747
<Reference Include="Cake.Issues, Version=0.3.0.0, Culture=neutral, processorArchitecture=MSIL">
48-
<HintPath>..\packages\Cake.Issues.0.3.0-beta0002\lib\netstandard2.0\Cake.Issues.dll</HintPath>
48+
<HintPath>..\packages\Cake.Issues.0.3.0-beta0004\lib\netstandard2.0\Cake.Issues.dll</HintPath>
4949
</Reference>
5050
<Reference Include="System" />
5151
<Reference Include="System.Core" />

src/Cake.Issues.InspectCode/InspectCodeIssuesProvider.cs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,13 @@ protected override IEnumerable<IIssue> InternalReadIssues(IssueCommentFormat for
8383
var ruleUrl = issueType.WikiUrl;
8484

8585
// Build issue.
86-
var issueBuilder =
86+
result.Add(
8787
IssueBuilder
8888
.NewIssue(message, this)
8989
.InFile(fileName, line)
90-
.WithPriority(GetPriority(severity));
91-
92-
if (ruleUrl != null)
93-
{
94-
issueBuilder = issueBuilder.OfRule(rule, ruleUrl);
95-
}
96-
else
97-
{
98-
issueBuilder = issueBuilder.OfRule(rule);
99-
}
100-
101-
result.Add(issueBuilder.Create());
90+
.WithPriority(GetPriority(severity))
91+
.OfRule(rule, ruleUrl)
92+
.Create());
10293
}
10394

10495
return result;

src/Cake.Issues.InspectCode/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Cake.Core" version="0.28.0" targetFramework="net461" />
4-
<package id="Cake.Issues" version="0.3.0-beta0002" targetFramework="net461" />
4+
<package id="Cake.Issues" version="0.3.0-beta0004" targetFramework="net461" />
55
<package id="Microsoft.CodeAnalysis.FxCopAnalyzers" version="2.6.0" targetFramework="net461" developmentDependency="true" />
66
<package id="Microsoft.CodeQuality.Analyzers" version="2.6.0" targetFramework="net461" developmentDependency="true" />
77
<package id="Microsoft.NetCore.Analyzers" version="2.6.0" targetFramework="net461" developmentDependency="true" />

0 commit comments

Comments
 (0)