Skip to content
#

analyzer

Here are 703 public repositories matching this topic...

rwv37
rwv37 commented Jan 27, 2022

Is your feature request related to a problem? Please describe.

No, I wouldn't say it's a "problem", but: At least for me, when VSTHRD111 happens, and I "Alt-Enter" to get to the suggested code fixes, the first code fix listed is always to use ConfigureAwait(true). Since it is the first listed, it is the default choice when you hit "Alt-Enter" then "Enter".

In my experience, that's a

Pomis
Pomis commented Apr 27, 2022

What rule do you want to change?
prefer-moving-to-variable

How will the change be implemented? (New option, new default behavior, etc.)?
Make it a metric with adjustable number of repeats to trigger the lint

metrics:
  - allowed-duplicated-chains: 2

Please provide some example code that this change will affect:
Now this fragment gets lint warning:

      Bot
type: enhancement good first issue area-rules

Improve this page

Add a description, image, and links to the analyzer topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the analyzer topic, visit your repo's landing page and select "manage topics."

Learn more