Skip to content

Commit 4aa5669

Browse files
authored
Add note about running dotnet-format only against trusted code
1 parent 589188f commit 4aa5669

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/core/tools/dotnet-format.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ dotnet format -h|--help
3434

3535
The MSBuild project or solution to run code formatting on. If a project or solution file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in *proj* or *sln*, and uses that file.
3636

37+
> [!WARNING]
38+
> dotnet-format may restore, compile, and run analyzers on the specified project or solution. Make sure to only invoke the tool against trusted code.
39+
3740
## Options
3841

3942
None of the options below are required for the `dotnet format` command to succeed, but you can use them to further customize what is formatted and by which rules.

0 commit comments

Comments
 (0)