Skip to content

Commit

Permalink
Merge pull request cake-contrib#7 from cake-contrib/feature/cake-cont…
Browse files Browse the repository at this point in the history
…ribgh-3

(cake-contribGH-3) Add InspectCodeIssuesProviderTypeName alias
  • Loading branch information
pascalberger authored Sep 2, 2017
2 parents c18f9e2 + 6d7dcde commit cf5b7ff
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
<HintPath>..\packages\Cake.Core.0.16.2\lib\net45\Cake.Core.dll</HintPath>
</Reference>
<Reference Include="Cake.Issues, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Issues.0.1.0-beta0001\lib\net45\Cake.Issues.dll</HintPath>
<HintPath>..\packages\Cake.Issues.0.1.0-beta0002\lib\net45\Cake.Issues.dll</HintPath>
</Reference>
<Reference Include="Cake.Issues.Testing, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Issues.Testing.0.1.0-beta0001\lib\net45\Cake.Issues.Testing.dll</HintPath>
<HintPath>..\packages\Cake.Issues.Testing.0.1.0-beta0002\lib\net45\Cake.Issues.Testing.dll</HintPath>
</Reference>
<Reference Include="Cake.Testing, Version=0.16.2.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Testing.0.16.2\lib\net45\Cake.Testing.dll</HintPath>
Expand Down
4 changes: 2 additions & 2 deletions src/Cake.Issues.InspectCode.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake.Core" version="0.16.2" targetFramework="net452" />
<package id="Cake.Issues" version="0.1.0-beta0001" targetFramework="net452" />
<package id="Cake.Issues.Testing" version="0.1.0-beta0001" targetFramework="net452" />
<package id="Cake.Issues" version="0.1.0-beta0002" targetFramework="net452" />
<package id="Cake.Issues.Testing" version="0.1.0-beta0002" targetFramework="net452" />
<package id="Cake.Testing" version="0.16.2" targetFramework="net452" />
<package id="Shouldly" version="2.8.3" targetFramework="net452" />
<package id="xunit" version="2.2.0" targetFramework="net452" />
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Issues.InspectCode/Cake.Issues.InspectCode.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<HintPath>..\packages\Cake.Core.0.16.2\lib\net45\Cake.Core.dll</HintPath>
</Reference>
<Reference Include="Cake.Issues, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Issues.0.1.0-beta0001\lib\net45\Cake.Issues.dll</HintPath>
<HintPath>..\packages\Cake.Issues.0.1.0-beta0002\lib\net45\Cake.Issues.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
16 changes: 16 additions & 0 deletions src/Cake.Issues.InspectCode/InspectCodeIssuesAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@
[CakeAliasCategory(IssuesAliasConstants.MainCakeAliasCategory)]
public static class InspectCodeIssuesAliases
{
/// <summary>
/// Gets the name of the Inspect Code issue provider.
/// This name can be used to identify issues based on the <see cref="IIssue.ProviderType"/> property.
/// </summary>
/// <param name="context">The context.</param>
/// <returns>Name of the Inspect Code issue provider.</returns>
[CakePropertyAlias]
[CakeAliasCategory(IssuesAliasConstants.IssueProviderCakeAliasCategory)]
public static string InspectCodeIssuesProviderTypeName(
this ICakeContext context)
{
context.NotNull(nameof(context));

return Issue<InspectCodeIssuesProvider>.GetProviderTypeName();
}

/// <summary>
/// Gets an instance of a provider for code analysis issues reported by JetBrains Inspect Code using a log file from disk.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Issues.InspectCode/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake.Core" version="0.16.2" targetFramework="net452" />
<package id="Cake.Issues" version="0.1.0-beta0001" targetFramework="net452" />
<package id="Cake.Issues" version="0.1.0-beta0002" targetFramework="net452" />
</packages>

0 comments on commit cf5b7ff

Please sign in to comment.