Inspectopedia Help

Duplicated code fragment

Reports duplicated blocks of code from the selected scope: the same file or the entire project.

The inspection features quick-fixes that help you to set the size of detected duplicates, navigate to repetitive code fragments, and compare them in a tool window.

The inspection options allow you to select the scope of the reported duplicated fragments and set the initial size for the duplicated language constructs.

Inspection options

Option

Type

Default

Show duplicates from

Dropdown

Everywhere

CheckboxPanel

None

Kotlin

Checkbox

true

Skip duplicates simpler than: | units

Number

45

Inspection Details

Available in:

AppCode 2023.3, CLion 2023.3, DataGrip 2023.3, GoLand 2023.3, IntelliJ IDEA 2023.3, PhpStorm 2023.3, PyCharm 2023.3, Qodana for JS 2023.3, Qodana for JVM 2023.3, Qodana for PHP 2023.3, Qodana for Ruby 2023.3, RubyMine 2023.3, WebStorm 2023.3

Plugin:

IDEA CORE, 233.SNAPSHOT

Last modified: 13 July 2023