Run autofix across the entire solution
See original GitHub issueIs there a way I can run autofix across the entire solution, let’s say I want the this
prefix to be applied to all the files in the solution.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Is there a way to automatically fix all ESLint errors in Visual ...
you can use eslint cli directly which would be faster, just run eslint --fix in the terminal. just make sure you installed eslint...
Read more >How To Enable Linting on Save with Visual Studio Code ...
You can set up ESLint to run auto-fix every time you press CTRL+S (or COMMAND+S ).
Read more >Auto-fix and format your JavaScript with ESLint
For VS Code, install the ESLint package. Then, to format on save, go to global settings and search for ESLint and turn on...
Read more >Command Line Interface Reference
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >How to run ESLINT on save (VS Code) - YouTube
... Learn CSS Grid: https://CSSGrid.io/friend/YONGZHI I Found an Answer by Twin Musicom is licensed ... How to run ESLINT on save (VS Code)....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@darrensteadman In Visual Studio, this is possible for the current document, project, or even entire solution (already from the very first release of VS with analyzers):
@sharwell Do you know of any oss tools out there that will run code fixers on an entire solution, as a command line tool?
Why was this closed? The question wasn’t answered.
Being able to run a command-line Roslyn tool to do codefixes e.g. on checkin would be incredibly useful - I’m not averse to building something like that myself, but obviously if there is already an official/recommended tool that does this, I’d prefer to use it. If not, the extension points that would be needed, or pointers in the right direction, would be very welcome - although I suspect the fact that
MSBuildWorkspace
is still MIA (see dotnet/roslyn#17974) will be a problem.