Exemplo n.º 1
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));
        }
Exemplo n.º 2
0
        public static IEnumerable <ICodeAnalysisIssue> ReadIssues(
            this ICakeContext context,
            IEnumerable <ICodeAnalysisProvider> issueProviders,
            ReadIssuesSettings settings)
        {
            context.NotNull(nameof(context));
            settings.NotNull(nameof(settings));

            // ReSharper disable once PossibleMultipleEnumeration
            issueProviders.NotNullOrEmptyOrEmptyElement(nameof(issueProviders));

            // ReSharper disable once PossibleMultipleEnumeration
            var issueReader =
                new IssueReader(context.Log, issueProviders, settings);

            return(issueReader.ReadIssues(settings.Format));
        }