Is it possible to fix a file at a time rather than project/sln? #1029
Answered
by
josefpihrt
caveman-dick
asked this question in
Q&A
-
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.
Answered by
josefpihrt
Jan 19, 2023
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.
0 replies
-
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.
0 replies
Answer selected by
caveman-dick
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.