Exemple #1
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)));
        }
Exemple #2
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)));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MarkdownlintIssuesSettings"/> class
 /// for a log file content in memory.
 /// </summary>
 /// <param name="logFileContent">Content of the log file.
 /// The log file needs to be in the format as defined by the <paramref name="format"/> parameter.</param>
 /// <param name="format">Format of the provided log file.</param>
 public MarkdownlintIssuesSettings(byte[] logFileContent, BaseMarkdownlintLogFileFormat format)
     : base(logFileContent, format)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MarkdownlintIssuesSettings"/> class
 /// for reading a log file on disk.
 /// </summary>
 /// <param name="logFilePath">Path to the log file.
 /// The log file needs to be in the format as defined by the <paramref name="format"/> parameter.</param>
 /// <param name="format">Format of the provided log file.</param>
 public MarkdownlintIssuesSettings(FilePath logFilePath, BaseMarkdownlintLogFileFormat format)
     : base(logFilePath, format)
 {
 }