Re Sharper Duplicates
Deprecated
Deprecated, was previously used to set up a Duplicates finder (ReSharper) build step.
Deprecated, was previously used to set up a Duplicates finder (ReSharper) build step to find C# and VB duplicate code.
Example. Searches for code duplicates in all the C# source code files of the project.
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
reSharperDuplicates {
includeFiles = "ProjectSrc/**/*.cs"
cltPath = "%teamcity.tool.jetbrains.resharper-clt.DEFAULT%"
}
Content copied to clipboard }
}
See also
Properties
The platform bitness of the dupFinder tool. By default, x64. The cross-platform duplicates finder is also supported in ReSharper 2020.2.1 or later.
Optional collection of build step execution conditions
Specify newline-separated command line parameters to add to calling dupFinder.exe.
Set true to include debug messages in the build log and publish the file with additional logs (dotnet-tools-dupfinder.log) as an artifact
Ignore duplicates with complexity lower than given value. Use this field to specify the lowest level of complexity of code blocks to be taken into consideration when detecting duplicates. Positive numbers and parameter references are supported.
If this option is checked, the similar code fragments with different field names will be recognized as duplicates.
If this option is checked, similar lines of code with different literals will be recognized as duplicates.
If this option is checked, similar code fragments with different local variable names will be recognized as duplicates.
If this option is checked, similar contents with different namespace specifications will be recognized as duplicates.
If this option is checked, similar content with different type names will be recognized as duplicates. These include all possible type references.
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
Enter newline-delimited Ant-like wildcards to exclude files from the duplicates search (for example, generated{*}{}.cs). The entries should be relative to the checkout root.
Skip files by opening comment. Enter newline-delimited keywords to exclude files that contain the keyword in the file's opening comments from the duplicates search.
Skip regions by message substring. Enter newline-delimited keywords that exclude regions that contain the keyword in the message substring from the duplicates search. Entering "generated code", for example, will skip regions containing "Windows Form Designer generated code".
Build step execution mode
Use newline-delimited Ant-like wildcards relative to the checkout root to specify the files to be included into the duplicates search. Visual Studio solution files are parsed and replaced by all source files from all projects within a solution. Example: src\MySolution.sln
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