Skip to content
This repository has been archived by the owner on Dec 28, 2017. It is now read-only.

Commit

Permalink
Merge pull request #7 from cake-contrib/feature/GH-5
Browse files Browse the repository at this point in the history
(GH-5) Update to 0.2 API
  • Loading branch information
pascalberger committed Mar 24, 2017
2 parents a443edc + 401abba commit ffdf3eb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
7 changes: 4 additions & 3 deletions nuspec/nuget/Cake.Prca.Issues.InspectCode.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
<authors>BBT Software AG</authors>
<owners>bbtsoftware, pascalberger, cake-contrib</owners>
<summary>JetBrains Inspect Code support for the Pull Request Code Analysis Addin for Cake Build Automation System</summary>
<description>The Inspect Code support for the Pull Request Code Analysis Addin for Cake allows you to write any issues logged by JetBrains Inspect Code to a pull request.</description>
<description>The Inspect Code support for the Pull Request Code Analysis Addin for Cake allows you to write any issues logged by JetBrains Inspect Code as comments to a pull request.</description>
<licenseUrl>https://github.com/cake-contrib/Cake.Prca.Issues.InspectCode/blob/develop/LICENSE</licenseUrl>
<projectUrl>https://github.com/cake-contrib/Cake.Prca.Issues.InspectCode</projectUrl>
<projectUrl>http://cake-contrib.github.io/Cake.Prca.Website</projectUrl>
<iconUrl>https://raw.githubusercontent.com/cake-build/graphics/aba74fb4cb5fe9454381af2cc70c870088229d5c/png/cake-medium.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright © 2017 BBT Software AG, Root/Zermatt, Switzerland</copyright>
<tags>Cake Script PullRequest CodeAnalysis Cake-Prca-IssueProvider Linting InspectCode</tags>
<releaseNotes>https://github.com/cake-contrib/Cake.Prca.Issues.InspectCode/releases/tag/0.2.0</releaseNotes>
<dependencies>
<dependency id="Cake.Prca" version="[0.1,0.2)" />
<dependency id="Cake.Prca" version="[0.2,0.3)" />
</dependencies>
</metadata>
<files>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<Private>True</Private>
</Reference>
<Reference Include="Cake.Prca, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Prca.0.1.0-unstable0011\lib\net45\Cake.Prca.dll</HintPath>
<HintPath>..\packages\Cake.Prca.0.2.0-beta0001\lib\net45\Cake.Prca.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Cake.Testing, Version=0.18.0.0, Culture=neutral, processorArchitecture=MSIL">
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Prca.Issues.InspectCode.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake.Core" version="0.18.0" targetFramework="net452" />
<package id="Cake.Prca" version="0.1.0-unstable0011" targetFramework="net452" />
<package id="Cake.Prca" version="0.2.0-beta0001" targetFramework="net452" />
<package id="Cake.Testing" version="0.18.0" targetFramework="net452" />
<package id="Shouldly" version="2.8.2" targetFramework="net452" />
<package id="StyleCop.Analyzers" version="1.0.0" targetFramework="net452" developmentDependency="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<Private>True</Private>
</Reference>
<Reference Include="Cake.Prca, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Prca.0.1.0-unstable0011\lib\net45\Cake.Prca.dll</HintPath>
<HintPath>..\packages\Cake.Prca.0.2.0-beta0001\lib\net45\Cake.Prca.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
Expand Down
21 changes: 15 additions & 6 deletions src/Cake.Prca.Issues.InspectCode/InspectCodeProviderAliases.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ public static class InspectCodeProviderAliases
/// <para>Report code analysis issues reported by JetBrains Inspect Code to a TFS pull request:</para>
/// <code>
/// <![CDATA[
/// var repoRoot = new DirectoryPath("c:\repo");
/// ReportCodeAnalysisIssuesToPullRequest(
/// InspectCodeFromFilePath(
/// new FilePath("C:\build\InspectCode.log"),
/// new DirectoryPath("c:\repo")),
/// repoRoot),
/// TfsPullRequests(
/// new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
/// "refs/heads/feature/myfeature"));
/// "refs/heads/feature/myfeature",
/// PrcaAuthenticationNtlm()),
/// repoRoot);
/// ]]>
/// </code>
/// </example>
Expand Down Expand Up @@ -58,13 +61,16 @@ public static ICodeAnalysisProvider InspectCodeFromFilePath(
/// <para>Report code analysis issues reported by JetBrains Inspect Code to a TFS pull request:</para>
/// <code>
/// <![CDATA[
/// var repoRoot = new DirectoryPath("c:\repo");
/// ReportCodeAnalysisIssuesToPullRequest(
/// InspectCodeFromContent(
/// logFileContent,
/// new DirectoryPath("c:\repo")),
/// repoRoot),
/// TfsPullRequests(
/// new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
/// "refs/heads/feature/myfeature"));
/// "refs/heads/feature/myfeature",
/// PrcaAuthenticationNtlm()),
/// repoRoot);
/// ]]>
/// </code>
/// </example>
Expand Down Expand Up @@ -92,16 +98,19 @@ public static ICodeAnalysisProvider InspectCodeFromContent(
/// <para>Report code analysis issues reported by JetBrains Inspect Code to a TFS pull request:</para>
/// <code>
/// <![CDATA[
/// var repoRoot = new DirectoryPath("c:\repo");
/// var settings =
/// new InspectCodeSettings(
/// new FilePath("C:\build\InspectCode.log"),
/// new DirectoryPath("c:\repo"));
/// repoRoot);
///
/// ReportCodeAnalysisIssuesToPullRequest(
/// InspectCode(settings),
/// TfsPullRequests(
/// new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
/// "refs/heads/feature/myfeature"));
/// "refs/heads/feature/myfeature",
/// PrcaAuthenticationNtlm()),
/// repoRoot);
/// ]]>
/// </code>
/// </example>
Expand Down
2 changes: 1 addition & 1 deletion src/Cake.Prca.Issues.InspectCode/packages.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake.Core" version="0.18.0" targetFramework="net452" />
<package id="Cake.Prca" version="0.1.0-unstable0011" targetFramework="net452" />
<package id="Cake.Prca" version="0.2.0-beta0001" targetFramework="net452" />
<package id="Desktop.Analyzers" version="1.1.0" targetFramework="net452" />
<package id="Microsoft.AnalyzerPowerPack" version="1.0.1" targetFramework="net452" />
<package id="Microsoft.CodeAnalysis.FxCopAnalyzers" version="1.1.0" targetFramework="net452" />
Expand Down

0 comments on commit ffdf3eb

Please sign in to comment.