dotnet / dotnet/format

dotnet format analyzers extremely slow when trying to apply to solution

Open
#2,251 3 comments 3 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

I'm trying to apply a `dotnet format analyzers` fix for NUnit.Analyzers.

Right now I'm trying to apply just a single diagnostic ( NUnit2005 ).

When I try to apply a fix to the solution, it quickly consumes all my memory and takes a very long time. It's currently at **3 hours** of CPU time and counting. I'll report back when I know how long it takes in the end.

I feel like if I were to write a loop to apply the change project-by-project or even file-by-file then it'd have finished by now.

There's something very odd with how much longer it takes to apply a fix to the whole solution compared to applying the fix file-by-file.

There are only ~1500 failures reported as affected by NUnit2005 when I build.

Solution is ~250 projects. I'm not sure how many SLOC.

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.