Beispiel #1
0
        public static IIssueProvider MarkdownlintIssuesFromFilePath(
            this ICakeContext context,
            FilePath logFilePath,
            BaseMarkdownlintLogFileFormat format)
        {
            context.NotNull(nameof(context));
            logFilePath.NotNull(nameof(logFilePath));
            format.NotNull(nameof(format));

            return(context.MarkdownlintIssues(new MarkdownlintIssuesSettings(logFilePath, format)));
        }
Beispiel #2
0
        public static IIssueProvider MarkdownlintIssuesFromContent(
            this ICakeContext context,
            string logFileContent,
            BaseMarkdownlintLogFileFormat format)
        {
            context.NotNull(nameof(context));
            logFileContent.NotNullOrWhiteSpace(nameof(logFileContent));
            format.NotNull(nameof(format));

            return(context.MarkdownlintIssues(new MarkdownlintIssuesSettings(logFileContent, format)));
        }