예제 #1
0
        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)));
        }
예제 #2
0
        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)));
        }