예제 #1
0
        public static IEnumerable <ICodeAnalysisIssue> ReadIssues(
            this ICakeContext context,
            ICodeAnalysisProvider issueProvider,
            DirectoryPath repositoryRoot)
        {
            context.NotNull(nameof(context));
            issueProvider.NotNull(nameof(issueProvider));
            repositoryRoot.NotNull(nameof(repositoryRoot));

            return
                (context.ReadIssues(
                     issueProvider,
                     new ReadIssuesSettings(repositoryRoot)));
        }
예제 #2
0
        public static IEnumerable <ICodeAnalysisIssue> ReadIssues(
            this ICakeContext context,
            ICodeAnalysisProvider issueProvider,
            ReadIssuesSettings settings)
        {
            context.NotNull(nameof(context));
            issueProvider.NotNull(nameof(issueProvider));
            settings.NotNull(nameof(settings));

            return
                (context.ReadIssues(
                     new List <ICodeAnalysisProvider> {
                issueProvider
            },
                     settings));
        }
예제 #3
0
        public static PrcaResult ReportIssuesToPullRequest(
            this ICakeContext context,
            ICodeAnalysisProvider codeAnalysisProvider,
            IPullRequestSystem pullRequestSystem,
            DirectoryPath repositoryRoot)
        {
            context.NotNull(nameof(context));
            codeAnalysisProvider.NotNull(nameof(codeAnalysisProvider));
            pullRequestSystem.NotNull(nameof(pullRequestSystem));
            repositoryRoot.NotNull(nameof(repositoryRoot));

            return
                (context.ReportIssuesToPullRequest(
                     codeAnalysisProvider,
                     pullRequestSystem,
                     new ReportIssuesToPullRequestSettings(repositoryRoot)));
        }
예제 #4
0
        public static PrcaResult ReportIssuesToPullRequest(
            this ICakeContext context,
            ICodeAnalysisProvider codeAnalysisProvider,
            IPullRequestSystem pullRequestSystem,
            ReportIssuesToPullRequestSettings settings)
        {
            context.NotNull(nameof(context));
            codeAnalysisProvider.NotNull(nameof(codeAnalysisProvider));
            pullRequestSystem.NotNull(nameof(pullRequestSystem));
            settings.NotNull(nameof(settings));

            return
                (context.ReportIssuesToPullRequest(
                     new List <ICodeAnalysisProvider> {
                codeAnalysisProvider
            },
                     pullRequestSystem,
                     settings));
        }