dotnet / dotnet/format

Is the --include option working at all?

Open
#1,770 5 comments 6 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

If so, can someone tell me how to make it work?

On version `6.0.347701` I was able to lint just the files listed when passing the `--include` parameter, but after I updated the dotnet format to `6.4.352107` it stopped working.

It still analyze all files as it's supposed to, but i doesn't "format" the included files, and it just do that if you use the `--include` paremeter, without this it works fine.

To clarify this, I have a .csproj including all files I want to format, When I run:

`dotnet format csharp_project.csproj -v -d`

It shows at the end:
`Formatted 2 of 5 files.`

But if I run `dotnet format csharp_project.csproj -v -d --include csharp_bad_01.cs csharp_bad_02.cs`

It shows:
`Formatted 0 of 5 files.`

I have double checked all paths and I'm sure it's okay because as I said it works on version `6.0.347701`.

Has anything changed? Am I supposed to use it differently now? It seems to be this way even on version `7.*`.

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.