All changes to the project will be documented in this file.
- Implicit restore when fixing code style or 3rd party analyzers (disable with
--no-restore
) - Adopt csc style for warnings and errors
- Warnings and errors are now written to the standard error stream
- Add DiagnosticId to the format report (1133)
- Reenabled .NET Core 2.1 support (1021)
- Update System.CommandLine to 2.0.0-beta1.21216.1 (1118)
- Support AdditionalDocument changes (1106)
- Fix typo in examples (1082)
- Run CodeStyle formatter before removing unnecessary imports (1071)
- Allow Solution Filter files to be passed as the workspace path (1059)
- Add .pre-commit-hooks.yaml (872)
- Add implicit restore when running analysis. Adds
--no-restore
option. (1015) - Add separate command for binary log (1044)
- Use correct flag for codestyle codefixes (1037)
- Enhance whitespace issue logging with a detailed TextChange message (1017)
- Log all formatter error messages in a csc-style (1016)
- LogDebug each project's applied .editorconfig (1013)
- Add option to filter diagnostics by id (1007)
- Fix pre-commit directory (1004)
- Log warnings and errors to the standard error stream (982)
- Only report fixable compiler diagnostics. (981)
- Removed
--dry-run
should use--check
instead - Removed
--files
should use--include
instead - Removed
--workspace
this option is now implied
- 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)
- Only run Imports formatter when is has configuration in the .editorconfig (701)
- Remove the 255 argument limit for OneOrMany options such as --include and --exclude (700)
- Added an imports formatter for sorting imports.
- Format now runs on the latest installed Runtime.
--check
and--dry-run
have combined into a single option.--include
and--exclude
use space-separated paths instead of comma-separated.
- Added warning to use the default argument instead of
--workspace
option. Usedotnet format ./format.sln
instead ofdotnet format -w ./format.sln
- Added warning to use the default argument to specify the folder path when using the
--folder
option. Usedotnet format ./src -f
instead ofdotnet format -f ./src
- Added warning to use
--include
instead of--files
alias. - Added warning to use
--check
instead of--dry-run
alias.
- Add Imports Formatter (693)
- Always run on the latest Runtime (694)
- Move to Roslyn's editorconfig support (590)
- Command line argument for solution/project as positional argument (681)
- Add option to format generated code files. (673)
- Produce a binlog when verbosity is set to detailed (605)
- Fix #581 - Add final newline false positive (633)
- Combine --check and --dry-run into a single option. (541)
- Use space-separated paths instead of comma-separated for --include and --exclude (551)
- Support loading commandline options from response files (552)
- Support file globbing in --include and --exclude options (555)
- Enhance --files option to support folder paths. Add --include alias. (533)
- format-500: Add
--exclude
option to ignore given files/folders (529) - format-379: Add
--report
command line argument to export json format report to given directory (495) - Update charset formatter to check for equivalent encodings (508)
- Add FolderWorkspace and -f options to load files by folder (335)
- Add formatter for the charset .editorconfig option (330)
- Add end_of_line formatter (169)
- Log formatting change details when in dry-run mode (249)
- Added final newline formatter (133)
- Check that code files excluded by .editorconfig are not formatted (130)
- Added --files option (52)
- Add new CLI '--check' option (48)
- Avoiding exception when redirect stdout(#21) (23)
- Partial support for core .editorconfig options
- Support for .NET whitespace formatting options
- Support for --dry-run option