Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct repo folder for linting addin documentation #499

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/Cake.Issues.Reporting.Sarif/script-runner/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ var target = Argument("target", "Default");
public class BuildData
{
public DirectoryPath RepoRootFolder { get; }
public DirectoryPath TestRootFolder { get; }
public DirectoryPath SourceFolder { get; }
public DirectoryPath DocsFolder { get; }
public DirectoryPath OutputFolder { get; }
public List<IIssue> Issues { get; }

public BuildData(ICakeContext context)
{
this.RepoRootFolder = context.MakeAbsolute(context.Directory("./"));
this.SourceFolder = this.RepoRootFolder.Combine("src");
this.DocsFolder = this.RepoRootFolder.Combine("docs");
this.OutputFolder = this.RepoRootFolder.Combine("output");
this.TestRootFolder = context.MakeAbsolute(context.Directory("./"));
this.RepoRootFolder = this.TestRootFolder.Combine("..");
this.SourceFolder = this.TestRootFolder.Combine("src");
this.DocsFolder = this.TestRootFolder.Combine("docs");
this.OutputFolder = this.TestRootFolder.Combine("output");

this.Issues = new List<IIssue>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Task("Lint-AddinDocumentation")

// Run markdownlint
var settings =
MarkdownlintNodeJsRunnerSettings.ForDirectory(data.RepoRootFolder.Combine("../../../docs"));
MarkdownlintNodeJsRunnerSettings.ForDirectory(data.RepoRootFolder.Combine("docs"));
settings.OutputFile = markdownLintLogFilePath;
settings.ThrowOnIssue = false;
RunMarkdownlintNodeJs(settings);
Expand Down
Loading