public static IIssueProvider EsLintIssuesFromFilePath( this ICakeContext context, FilePath logFilePath, BaseEsLintLogFileFormat format) { context.NotNull(nameof(context)); logFilePath.NotNull(nameof(logFilePath)); format.NotNull(nameof(format)); return(context.EsLintIssues(new EsLintIssuesSettings(logFilePath, format))); }
public static IIssueProvider EsLintIssuesFromContent( this ICakeContext context, string logFileContent, BaseEsLintLogFileFormat format) { context.NotNull(nameof(context)); logFileContent.NotNullOrWhiteSpace(nameof(logFileContent)); format.NotNull(nameof(format)); return (context.EsLintIssues( new EsLintIssuesSettings(logFileContent, format))); }
/// <summary> /// Initializes a new instance of the <see cref="EsLintIssuesSettings"/> class /// for a log file content in memory. /// </summary> /// <param name="logFileContent">Content of the the ESLint 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 ESLint log file.</param> public EsLintIssuesSettings(byte[] logFileContent, BaseEsLintLogFileFormat format) : base(logFileContent, format) { }
/// <summary> /// Initializes a new instance of the <see cref="EsLintIssuesSettings"/> class /// for reading a log file on disk. /// </summary> /// <param name="logFilePath">Path to the the ESLint 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 ESLint log file.</param> public EsLintIssuesSettings(FilePath logFilePath, BaseEsLintLogFileFormat format) : base(logFilePath, format) { }