ReSharperDuplicates

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%"
}
}
}

See also

Constructors

Link copied to clipboard
constructor(init: ReSharperDuplicates.() -> Unit)
constructor()

Types

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

A custom path to R# CLT Home Directory. Paths relative to the checkout directory are supported. The value can reference to JetBrains ReSharper Command Line Tool specified via Administration | Tools.

Link copied to clipboard

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.

Link copied to clipboard

Optional collection of build step execution conditions

Link copied to clipboard

Specify newline-separated command line parameters to add to calling dupFinder.exe.

Link copied to clipboard

Set true to include debug messages in the build log and publish the file with additional logs (dotnet-tools-dupfinder.log) as an artifact

Link copied to clipboard

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.

Link copied to clipboard

If this option is checked, the similar code fragments with different field names will be recognized as duplicates.

Link copied to clipboard

If this option is checked, similar lines of code with different literals will be recognized as duplicates.

Link copied to clipboard

If this option is checked, similar code fragments with different local variable names will be recognized as duplicates.

Link copied to clipboard

If this option is checked, similar contents with different namespace specifications will be recognized as duplicates.

Link copied to clipboard

If this option is checked, similar content with different type names will be recognized as duplicates. These include all possible type references.

Link copied to clipboard

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.

Link copied to clipboard

Specifies which Docker image platform will be used to run this build step.

Link copied to clipboard

If enabled, "pull image" command will be run before docker run.

Link copied to clipboard

Additional docker run command arguments

Link copied to clipboard

Specifies whether the step is enabled, true by default

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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".

Link copied to clipboard
Link copied to clipboard
var id: String?

Optional id of the step. Usually the id is not required, however if a build configuration inherits from a template and wants to override a build step defined there, then both steps should have the same id.

Link copied to clipboard

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

Link copied to clipboard

Build step name

Link copied to clipboard
Link copied to clipboard

Build step type

Functions

Link copied to clipboard
fun booleanParameter(customName: String? = null, trueValue: String? = "true", falseValue: String? = "false"): DelegateProvider<Boolean?>
Link copied to clipboard
fun clear()
Link copied to clipboard

Deletes all configured build step conditions

Link copied to clipboard
fun <T : CompoundParam<T>> compoundParameter(customName: String? = null): DelegateProvider<T>
Link copied to clipboard
Link copied to clipboard
fun <T : Parametrized> copyParamsTo(target: T): T

Copies parameters of this object to the specified target

Link copied to clipboard
open fun create(): BuildStep

Creates an instance of this build step via reflection using a no argument constructor, used during copying. Throws an error if this class doesn't have a default constructor. Subclasses can override it to create an instance without using a default constructor.

Link copied to clipboard
fun doubleParameter(customName: String? = null): DelegateProvider<Double>
Link copied to clipboard
fun <E : Enum<E>> enumParameter(customName: String? = null, mapping: Map<E, String?>? = null): DelegateProvider<E>
Link copied to clipboard
fun findRawParam(paramName: String): Parameter?
Link copied to clipboard
fun hasParam(paramName: String): Boolean
Link copied to clipboard
fun intParameter(customName: String? = null): DelegateProvider<Int>
Link copied to clipboard
fun param(name: String, value: String)

Adds parameter with specified name and value

Link copied to clipboard
fun removeRawParam(paramName: String)
Link copied to clipboard
open fun stringParameter(customName: String? = null): DelegateProvider<String>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun validate(consumer: ErrorConsumer)

Validates this object and reports found errors to the provided consumer