Skip to content

.editorconfig rule being ignored #2070

Open
@marcospgp

Description

@marcospgp

Issue Description

dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity rule in .editorconfig is ignored.

Expected Behavior

The following .editorconfig file:

image

Should prevent this warning:

image

When the .vscode settings are:

image

and omnisharp.json is:

image

Actual Behavior

Instead, only the = none rule suppressions in .editorconfig work. The last line does not work.

Environment information

VSCode version: 1.52.1
C# Extension: 1.23.8

Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.102 Commit: 573d158fea

Runtime Environment:
OS Name: Windows
OS Version: 10.0.18362
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.102\

Host (useful for support):
Version: 3.1.2
Commit: 916b5cba26

.NET Core SDKs installed:
3.1.102 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
beautify HookyQR 1.5.0
code-runner formulahendry 0.11.2
csharp ms-dotnettools 1.23.8
debugger-for-chrome msjsdiag 4.12.11
dotenv mikestead 1.0.1
graphql-for-vscode kumar-harsh 1.15.3
prettier-vscode esbenp 5.8.0
unity-debug Unity 3.0.2
vscode-docker ms-azuretools 1.9.1
vscode-eslint dbaeumer 2.1.14
vscode-markdownlint DavidAnson 0.38.0
vscode-standardjs-snippets capaj 0.8.15
vscode-todo-highlight wayou 1.0.4
vscode-typescript-tslint-plugin ms-vscode 1.3.3
vscodeintellicode VisualStudioExptTeam 1.2.10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions