dotnet / dotnet/format

--diagnostics switch does not appear to work

Open
#1,239 4 comments 3 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

Steps to reproduce

```
> dotnet tool install -g dotnet-format --version 6.0.* --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
You can invoke the tool using the following command: dotnet-format
Tool 'dotnet-format' (version '6.0.237103') was successfully installed.

> dotnet format --version
6.0.237103+afcd94017e2877458d2e07a8844130442cf20241

> dotnet format --diagnostics IDE0031
The file 'IDE0031' does not appear to be a valid project or solution file.

> dotnet format --diagnostics 'IDE0031'
The file 'IDE0031' does not appear to be a valid project or solution file.

> dotnet format --diagnostics IDE0031 .\test.csproj
Unrecognized command or argument '.\test.csproj'
```

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.