Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
151 views

I have the following code: internal class Program { private static bool IsMatchingThing1(IThing thing) { return thing is AThing { Children: [ ...
fractor's user avatar
  • 1,698
1 vote
2 answers
834 views

I am trying to apply Use collection expression for array (IDE0300) suggestion. I tried to execute the following: dotnet format ProjectName.sln --diagnostics IDE0300 and also dotnet format ProjectName....
Jay's user avatar
  • 2,422
1 vote
0 answers
817 views

I am using dotnet format command to do code analysis with certain IDE's in the .editorconfig file. However, some of the files I see in my git changes are just encoding changes and no text changes in ...
user07773's user avatar
0 votes
1 answer
859 views

I have installed StyleCop.Analyzers on my project that is written using C#. The rules severity are set to suggestion. How can I apply specific rules on the entire project using dotnet format? I tried ...
Jay's user avatar
  • 2,422
1 vote
0 answers
926 views

I have set up Github super linter to lint C# files in my project. I added the rules in a .editorconfig file. But when I run the linter, I only get a bunch of whitespace errors and none of the styling ...
bitsandgates's user avatar
1 vote
1 answer
956 views

Is there a way to specify in an .editorconfig file that I want to use a different naming style for my Unit tests? Currently we're using something like this: GetAll_GivenNoCustomers_ReturnsEmptyList ...
Thomas Mulder's user avatar
2 votes
0 answers
508 views

I want to format a file to "file-scoped namespaces". I want to make that change only. My .editorconfig contains this only: [*.cs] csharp_style_namespace_declarations = file_scoped:warning ...
lonix's user avatar
  • 22.4k
2 votes
0 answers
313 views

Applying a dotnet_naming_rule is not triggering a warning via dotnet format. # Remove the line below if you want to inherit .editorconfig settings from higher directories root = true #### Naming ...
Ryan's user avatar
  • 6,712
15 votes
4 answers
8k views

I just discovered dotnet-format, but as far as I understand it's a command line tool that has to be called manually. How can I apply dotnet-format on saving a file in Visual Studio 2019? (not Visual ...
me.at.coding's user avatar
  • 18.5k