src/Features/Core/Portable/CodeFixes/Configuration/ConfigurationUpdater.cs
/// <summary>
/// Updates or adds an .editorconfig <see cref="AnalyzerConfigDocument"/> to the given <paramref name="project"/>
/// so that the severity of the given <paramref name="diagnostic"/> is configured to be the given
/// <paramref name="severity"/>.
/// </summary>
Updates or adds an .editorconfig  to the given
so that the severity of the given  is configured to be the given
.
Updates or adds an . editorconfig to the given so that the severity of the given is configured to be the given .
public static Task<Solution> ConfigureSeverityAsync(
            ReportDiagnostic severity,
            Diagnostic diagnostic,
            Project project,
            CancellationToken cancellationToken)
        {
            if (severity == ReportDiagnostic.Default)
            {
                severity = diagnostic.DefaultSeverity.ToReportDiagnostic();
            }
            return ConfigureSeverityAsync(severity.ToEditorConfigString(), diagnostic, project, cancellationToken);
        }
public static Task < Solution > ConfigureSeverityAsync ( ReportDiagnostic severity , Diagnostic diagnostic , Project project , CancellationToken cancellationToken ) { if ( severity == ReportDiagnostic . Default ) { severity = diagnostic . DefaultSeverity . ToReportDiagnostic ( ) ; } return ConfigureSeverityAsync ( severity . ToEditorConfigString ( ) , diagnostic , project , cancellationToken ) ; }
Updates or adds an .editorconfig  to the given
so that the severity of the given  is configured to be the given
.
Updates or adds an . editorconfig to the given so that the severity of the given is configured to be the given .
severity
ReportDiagnostic
diagnostic
Diagnostic
project
Project
cancellationToken
CancellationToken