Re Sharper Inspections
An Inspections (ReSharper) build step for gathering JetBrains ReSharper inspection results.
Example. Runs R# InspectCode command line tool for the MyProject.sln solution. Uses the default R# InspectCode tool installed on the TeamCity server.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
reSharperInspections {
solutionPath = "MyProject.sln"
targetDotNetFramework_4_8 = true
cltPath = "%teamcity.tool.jetbrains.resharper-clt.DEFAULT%"
cltPlatform = ReSharperInspections.Platform.X64
}
Content copied to clipboard }
}
See also
Properties
Select the platform bitness of the InspectCode tool. To find code issues in C++ projects, use the x86 platform. The cross-platform inspections are also supported in ReSharper 2020.2.1 or later.
Newline-delimited list of ReSharper plugins required for InspectCode in the following format: %pluginId%/%version%. If you want InspectCode to obtain plugin .nupkg files from a local storage directory rather than JetBrains Marketplace, set the source option in the Additional InspectCode parameters field: --source=%pluginsDirectoryPath%.
Optional collection of build step execution conditions
Specify newline-separated command line parameters to add to calling inspectCode.exe.
The path to the file containing ReSharper settings created with JetBrains ReSharper 6.1 or later. The specified path should be relative to the checkout directory. If specified, this settings layer has the top priority, so it overrides ReSharper build-in settings. By default, build-in ReSharper settings layers are applied.
Check this option to include debug messages in the build log and publish the file with additional logs (dotnet-tools-inspectcode.log) as a hidden artifact.
Specifies which Docker image to use for running this build step. I.e. the build step will be run inside specified docker image, using 'docker run' wrapper.
Specifies which Docker image platform will be used to run this build step.
If enabled, "pull image" command will be run before docker run.
Additional docker run command arguments
Build step execution mode
Project name wildcards to analyze only a part of the solution. Leave blank to analyze the whole solution. Separate wildcards with new lines.
The path to the .sln file created by Microsoft Visual Studio 2005 or later. The specified path should be relative to the checkout directory.
Functions
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Validates this object and reports found errors to the provided consumer