Is it possible to fix a file at a time rather than project/sln? #1029
-
I've been implementing linters and formatters to run under a commit-hook using husky and lint-staged so that it will fix the files in the staging area and nothing else. Is it possible to run the fix command so that it only works on a single file at a time rather than all the files? e.g.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Not the answer, but I've managed to use a workaround using dotnet format Solution1.sln analyzers --diagnostics RCS1036 --severity info --include ./x/y/Startup.cs |
Beta Was this translation helpful? Give feedback.
-
Hi, Roslynator command line tool currently does not provide functionality to filter by file. You are right that |
Beta Was this translation helpful? Give feedback.
Hi,
Roslynator command line tool currently does not provide functionality to filter by file.
You are right that
dotnet format
can be used for this purpose.