/// <summary>
        /// Initializes a new instance of the <see cref="InspectCodeIssuesProvider"/> class.
        /// </summary>
        /// <param name="log">The Cake log context.</param>
        /// <param name="settings">Settings for reading the log file.</param>
        public InspectCodeIssuesProvider(ICakeLog log, InspectCodeIssuesSettings settings)
            : base(log)
        {
            settings.NotNull(nameof(settings));

            this.settings = settings;
        }
        public static ICodeAnalysisProvider InspectCodeIssuesFromFilePath(
            this ICakeContext context,
            FilePath logFilePath)
        {
            context.NotNull(nameof(context));
            logFilePath.NotNull(nameof(logFilePath));

            return(context.InspectCodeIssues(InspectCodeIssuesSettings.FromFilePath(logFilePath)));
        }
        public static ICodeAnalysisProvider InspectCodeIssuesFromContent(
            this ICakeContext context,
            string logFileContent)
        {
            context.NotNull(nameof(context));
            logFileContent.NotNullOrWhiteSpace(nameof(logFileContent));

            return(context.InspectCodeIssues(InspectCodeIssuesSettings.FromContent(logFileContent)));
        }
        public static ICodeAnalysisProvider InspectCodeIssues(
            this ICakeContext context,
            InspectCodeIssuesSettings settings)
        {
            context.NotNull(nameof(context));
            settings.NotNull(nameof(settings));

            return(new InspectCodeIssuesProvider(context.Log, settings));
        }