dotnet / dotnet/sdk

Add CA1848 fixer to this repo

Open
#52,612 0 comments 0 reactions 0 assignees View on GitHub
Area-Microsoft.CodeAnalysis.NetAnalyzers untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

## Context:
As was discussed in: https://github.com/dotnet/runtime/issues/117999, I propose to port the fixer of legacy .NET logging to this repo to lower the bar for users to adopt.

## The proposed fixer implementation:

https://github.com/dotnet/extensions/blob/main/src/Analyzers/Microsoft.Analyzers.Extra/CallAnalysis/Fixers/LegacyLoggingFixer.cs
https://github.com/dotnet/extensions/blob/main/src/Analyzers/Microsoft.Analyzers.Extra/CallAnalysis/Fixers/LegacyLoggingFixer.FixDetails.cs

## CA Rule link:
https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1848#how-to-fix-violations

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.