@@ -226,6 +226,17 @@ In order to implement the best GitLab and SonarQube integration, the .NET templa
:information_source: the `coverlet.msbuild` package shall be added to your test projects ([see NuGet](https://www.nuget.org/packages/coverlet.msbuild))
### `dotnet-format` job
This job performs code formatting validation using [`dotnet format`](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format) of the **whole repository**. It verifies that the code follows the formatting rules defined in `.editorconfig`.
It uses the following variables:
| Input / Variable | Description | Default value |
| `format-disabled` / `DOTNET_FORMAT_DISABLED` | Set to true to disable the [Dotnet Format](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format) code formatting check (enabled by default) | `false` |
The job will **fail the pipeline** if the project's `.editorconfig` styling rules are not respected.
description:Files and directories to be excluded from analysis, as a comma-separated list of paths. See [documentation](https://docs.sonarqube.org/latest/analysis/analysis-parameters/) for the format.
description:Set to true to disable the [Dotnet Format](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format) code formatting check (enabled by default)
type:boolean
default:false
package-configuration:
description:The build configuration to use for packaging (Debug or Release).