dotnet / dotnet/format

False positive on object with multiple constructors

Open
#1,524 1 comment 2 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

Dotnet format is failing on this code, but actually the code is alright.

![image](https://user-images.githubusercontent.com/9552825/154943115-2c947dd1-d4e1-4800-bb5f-3c3c5051a26a.png)

I checked and FileStream has multiple constructors. One of which asks for a System.IO.FileAccess but also one that requests a System.IO.FileMode. Could it be possible that dotnet format only checks the first constructor?

![image](https://user-images.githubusercontent.com/9552825/154943365-91685844-abde-457a-b803-feffcd256d11.png)

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.