Skip to content

Commit ca87f54

Browse files
committed
Merge branch 'release/0.2.0'
2 parents 181f92d + 9ce69c7 commit ca87f54

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

nuspec/nuget/Cake.Markdownlint.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This addin for Cake allows you to lint Markdown files using markdownlint.
1616
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1717
<copyright>Copyright © BBT Software AG and contributors</copyright>
1818
<tags>Cake Script Linting Markdown Markdownlint</tags>
19-
<releaseNotes>https://github.com/cake-contrib/Cake.Markdownlint/releases/tag/0.1.0</releaseNotes>
19+
<releaseNotes>https://github.com/cake-contrib/Cake.Markdownlint/releases/tag/0.2.0</releaseNotes>
2020
</metadata>
2121
<files>
2222
<file src="netstandard2.0\Cake.Markdownlint.dll" target="lib\netstandard2.0" />

src/Cake.Markdownlint.Tests/Cake.Markdownlint.Tests.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup>
18-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.0" />
19-
<PackageReference Include="Cake.Core" Version="0.26.0" />
20-
<PackageReference Include="Cake.Testing" Version="0.26.0" />
18+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
19+
<PackageReference Include="Cake.Core" Version="0.28.0" />
20+
<PackageReference Include="Cake.Testing" Version="0.28.0" />
2121
<PackageReference Include="Shouldly" Version="3.0.0" />
2222
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" />
2323
<PackageReference Include="xunit" Version="2.3.1" />

src/Cake.Markdownlint/Cake.Markdownlint.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
</PropertyGroup>
2424

2525
<ItemGroup>
26-
<PackageReference Include="Cake.Core" Version="0.26.0">
26+
<PackageReference Include="Cake.Core" Version="0.28.0">
2727
<PrivateAssets>all</PrivateAssets>
2828
</PackageReference>
29-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.0">
29+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.6.1">
3030
<PrivateAssets>all</PrivateAssets>
3131
</PackageReference>
3232
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2">

src/Cake.Markdownlint/NodeJs/MarkdownlintNodeJsRunner.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Globalization;
6+
using System.IO;
67
using Cake.Core.Diagnostics;
78
using Core;
89
using Core.IO;
@@ -43,6 +44,12 @@ public void RunMarkdownlint(MarkdownlintNodeJsRunnerSettings settings)
4344
var args = new ProcessArgumentBuilder();
4445
settings.Evaluate(args);
4546

47+
// Make sure directory of output file exists as otherwise markdownlint will silently fail.
48+
if (settings.OutputFile != null)
49+
{
50+
Directory.CreateDirectory(settings.OutputFile.GetDirectory().FullPath);
51+
}
52+
4653
var processSettings = new ProcessSettings
4754
{
4855
Arguments = args.Render(),

0 commit comments

Comments
 (0)