v5.0.211103
New Features
- Can now apply codestyle codefixes automatically with
dotnet format --fix-codestyle
- Can now apply analyzer codefixes automatically with
dotnet format --fix-analyzers
Breaking Changes
Removed Deprecated options from 4.0:
- Removed
--dry-run
should use--check
instead - Removed
--files
should use--include
instead - Removed
--workspace
this option is now implied
Changes:
- Isolate each Analyzer assembly into its own LoadContext. (959)
- Implement GetDocumentDiagnosticsAsync in CodeFix DiagnosticProvider (958)
- Fix missing ` in README.md (914)
- Add unit test for 3rd party fixer formatting (896)
- Add unit test for code style fixer formatting (893)
- Improve FixAll support by using equivalence key when available (884)
- Only run analyzers against specified project when workspace is a project (865)
- When matching all files don't rely on FileMatcher (864)
- Fix markdown formatting in example table (858)
- Add ability to read --{in,ex}clude value from stdin (790)
- Add test to ensure code containing comment is treated as generated. (857)
- Fixes #834 : error reportfile without directory specified (842)
- Log there were warnings loading the workspace if diagnostics are reported (841)
- Fix CommandLine_AllArguments_Bind test (818)
- Fix Run argument names (817)
- Add option for whitespace formatting (774)
- Load analyzer assemlbies in their own AssemblyLoadContext (746)
- Check that file exists before considering it for formatting (775)
- Report formatted files and counts based based on reported issues. (776)
- Support generated_code editorconfig setting (780)
- Create integrations.md (777)
- Fix warnings and apply suggestions. (767)
- Improve folder workspace performance (763)
- Improve folder performance (760)
- Update --include and --exclude documentation (761)
- Remove aliases for the fix style and fix analyzers options (753)
- Run analyzers during integration tests (728)
- Remove unnecessary imports (749)
- Only include compiler diagnostics if a fixer supports them (750)
- Added CodeFormatter tests for
--fix-style
(751) - Format one solution per repo during integration tests (739)
- Filter analyzers by project language before running (725)
- Run all analyzers even when a fixer isn't present (723)
- Update documentation for analyzers (722)
- Add devcontainer to better support Codespaces (721)
- Add validation when specifying --folder and analyzers (715)
- Merge in Feature/analyzers (713)
- Remove deprecated options and aliases (710)
- Added reflection based discovery of analyzers and fixes (698)
- Only run Imports formatter when is has configuration in the .editorconfig (701)