Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

I want to set a rule in .editorconfig so that all C# files where namespace is not explicitly set should render an error. I've added these: dotnet_diagnostic.IDE0130.severity = error # Namespace does ...
Max's user avatar
  • 757
1 vote
1 answer
81 views

I've read that Go uses tabs for indentation spaces for alignment and this sounds like a great idea to resolve the tabs-versus-spaces fight and get the benefits that tabs promise without the problems ...
iconoclast's user avatar
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
0 answers
49 views

IntelliJ's log has several lines like this one: 2025-04-24 09:52:05,878 [ 14206] WARN - #org.editorconfig.language.schema.parser.EditorConfigJsonSchemaParser - Found illegal descriptor: {} I have ...
Dan R.'s user avatar
  • 835
4 votes
0 answers
207 views

In my solution I have an .editorconfig file with the following section: [*.cs;*.md] spelling_languages = en-us spelling_checkable_types = strings, identifiers, comments spelling_exclusion_path = ./....
Mike Nakis's user avatar
0 votes
1 answer
88 views

I am working on a C# .NET Code Base, where a Custom Roslyn Analyzer is involved that analyze Existence of Todo Comments. We work with the IDE JetBrains Rider 2024.2.4. Recently we integrated ...
kbisang's user avatar
  • 574
0 votes
1 answer
81 views

I am currently facing a scenario where I have an .editorconfig file in the root directory with [{*Test.cs,*Tests.cs}] dotnet_diagnostic.CA1707.severity = none This rule should disable the warning (...
Nathaniel Cutajar's user avatar
2 votes
1 answer
655 views

With the release of Xcode 16 apple added support for EditorConfig: Added support for EditorConfig. The editor now respects indentation settings given in .editorconfig files. Xcode supports the ...
Hamid Yusifli's user avatar
2 votes
2 answers
177 views

I am developing with Flutter using Android Studio. When I try to format the code using the Cmd + Opt + L keys, it ends up like #1 below. Is there a good way to make it look like #2? //#1 @override ...
footddangkong발달린땅콩's user avatar
3 votes
2 answers
1k views

We've noticed that for some users Azure DevOps in Pull Requests shows that encoding changes "utf-8 -> Windows-1252" (tooltip File encoding changed from utf-8 to Windows-1252). It happens ...
Mattaniel's user avatar
  • 143
0 votes
0 answers
950 views

I have been trying to use dotnet format with an .editorconfig but it keeps on failing(details below). Context: In our repo we want to introduce formatters and linters. I decided to go ahead with ....
Sunil Kumar's user avatar
0 votes
0 answers
164 views

I'm using StyleCop analyzers with an EditorConfig in my C# project. I've suppressed the SA1633 rule by adding the following line to my EditorConfig: dotnet_diagnostic.SA1633.severity = none However, I'...
itaiy's user avatar
  • 1,324
0 votes
1 answer
420 views

We agreed that we should implement a rule to enforce that private methods are below public methods, as this is explained in Clean Code page 84/85: "Vertical Ordering". I don't see any option ...
Janneman96's user avatar
0 votes
1 answer
583 views

I have an EditorConfig file with the following content root = true # Generated Code [{*.Generated.*.cs,*/Migrations/**,*/Scripts/**}] generated_code = true # C# files [*.cs] # Indentation and spacing ...
Blake's user avatar
  • 57
-1 votes
1 answer
262 views

I am trying to get linting to work on VS Code with an .editorconfig file in VS Code. I am not really at home in the C# ecosystem, so I tried following some guides. Like this article, most people ...
TeaDrinkingProgrammer's user avatar
2 votes
0 answers
123 views

Is there a way to force the use of the this pointer in C++ code with Rider or .editorconfig? Example: class Foo { public: void Bar() { this->_x++; // forcing the `this->` } private: ...
BernaDev's user avatar
0 votes
0 answers
172 views

In c# where is a setting "EnforceCodeStyleInBuild" that allows to fail build if code doesn't align with rules from .editorconfig. C++ supports editorconfig as well, but I can't find a way ...
Alex's user avatar
  • 1
0 votes
0 answers
818 views

I am using the Ktlint-gradle library in my Android project. I have recently upgraded to Gradle version 8.2.0 and ktlint version 12.0.3. Post upgrade, some of the linting rules have changed and I'd ...
Alon's user avatar
  • 983
7 votes
2 answers
9k views

I upgraded the ktlint-gradle plugin to version 12.0.2 and now it does not respect the settings in my modules' build.gradle where I previously disabled some rules like that: ktlint { ktlint....
jteichert's user avatar
  • 667
3 votes
2 answers
196 views

When using an .editorconfig to configure formatting and enabling automatic formatting (or running dotnet format, is there any way to suppress the formatting for a specific region/block of code? E.g. I ...
Anders Forsgren's user avatar
1 vote
1 answer
1k views

I have prettier v3.0.3 and this .prettierrc config: { "editorconfig": true, "bracketSpacing": true, "htmlWhitespaceSensitivity": "css", "proseWrap&...
Chriss's user avatar
  • 5,678
0 votes
1 answer
2k views

I'm trying to configure my Visual Studio 022 to check and put warning when my compagny C++ code rules et naming conventions are not respected. The simple example is to prefix boolean with a "b&...
Maxime Isnel's user avatar
1 vote
0 answers
466 views

I am writing a .editorconfig for a c# project. I want blank lines between an if statement and the opening brackets to be automatically removed. Before formatting: if (1 == 0) { // Do something } ...
Skander's user avatar
  • 75
2 votes
2 answers
2k views

I am using VS Code as my editor. I have installed the 'EditorConfig for VS Code' extension. I have added an .editorconfig file to my root project. This is the code in the .editorconfig file: root = ...
morten's user avatar
  • 65
0 votes
0 answers
143 views

I am using Visual Studio 2022. My project has .editorconfig file found next to the solution file. I want to set the severity of rule SA1122 to suggestion so that if I use "" Intellisense ...
Jay's user avatar
  • 2,422

1
2 3 4 5
7