PhpStorm 2017.1 Help

Code Duplication Analysis Settings

Code | Locate Duplicates - OK

Use this dialog to define the sensitivity of search, and set limitation that will help you avoid reporting about every similar code construct. Your preferences are specified in a language-specific context.

ItemDescription
CSS
  • Do not show duplicates containing less than <number> CSS properties : Set the size of duplicated language constructs that are shown in the results window.
CoffeeScript
  • Anonymize Variables: when this check box is selected, two identical functions that use different variable names are considered duplicates, for example:
    var test01 = function(a,b){return (a*b)}var test01 = function(a,b){return (a*b)}
  • Anonymize Functions
  • Anonymize Literals
  • Do not show duplicates simpler than: Set the size of duplicated language constructs that are shown in the result window. By default, the constructs less than 10 units are not included (and this limitation cannot be changed).
  • Anonymize uncommon subexpressions simpler than: Set the value of the subelements within language constructs that can be considered similar, to show the construct as duplicate in the result window. The larger is the number, the larger constructs are taken as similar by PhpStorm.

    The values are set as arbitrary weights based on the element size calculated with additive algorithm. The larger is the element, the higher is the calculated value.

ECMA Script level 4
  • Anonymize Variables: when this check box is selected, two identical functions that use different variable names are considered duplicates, for example:
    var test01 = function(a,b){return (a*b)}var test01 = function(a,b){return (a*b)}
  • Anonymize Functions
  • Anonymize Literals
  • Do not show duplicates simpler than: Set the size of duplicated language constructs that are shown in the result window. By default, the constructs less than 10 units are not included (and this limitation cannot be changed).
  • Anonymize uncommon subexpressions simpler than: Set the value of the subelements within language constructs that can be considered similar, to show the construct as duplicate in the result window. The larger is the number, the larger constructs are taken as similar by PhpStorm.

    The values are set as arbitrary weights based on the element size calculated with additive algorithm. The larger is the element, the higher is the calculated value.

HTML
  • Do not show duplicates simpler than: Set the size of duplicated language constructs that are shown in the result window. By default, the constructs less than 10 units are not included (and this limitation cannot be changed).
JavaScript
  • Anonymize Variables: when this check box is selected, two identical functions that use different variable names are considered duplicates, for example:
    var test01 = function(a,b){return (a*b)}var test01 = function(a,b){return (a*b)}
  • Anonymize Functions
  • Anonymize Literals
  • Do not show duplicates simpler than: Set the size of duplicated language constructs that are shown in the result window. By default, the constructs less than 10 units are not included (and this limitation cannot be changed).
  • Anonymize uncommon subexpressions simpler than: Set the value of the subelements within language constructs that can be considered similar, to show the construct as duplicate in the result window. The larger is the number, the larger constructs are taken as similar by PhpStorm.

    The values are set as arbitrary weights based on the element size calculated with additive algorithm. The larger is the element, the higher is the calculated value.

JSON
  • Anonymize Variables: when this check box is selected, two identical functions that use different variable names are considered duplicates, for example:
    var test01 = function(a,b){return (a*b)}var test01 = function(a,b){return (a*b)}
  • Anonymize Functions
  • Anonymize Literals
  • Do not show duplicates simpler than: Set the size of duplicated language constructs that are shown in the result window. By default, the constructs less than 10 units are not included (and this limitation cannot be changed).
  • Anonymize uncommon subexpressions simpler than: Set the value of the subelements within language constructs that can be considered similar, to show the construct as duplicate in the result window. The larger is the number, the larger constructs are taken as similar by PhpStorm.

    The values are set as arbitrary weights based on the element size calculated with additive algorithm. The larger is the element, the higher is the calculated value.

PHP
  • Anonymize Variables: when this check box is selected, two identical functions that use different variable names are considered duplicates, for example:
    var test01 = function(a,b){return (a*b)}var test01 = function(a,b){return (a*b)}
  • Anonymize Functions
  • Anonymize Literals
  • Do not show duplicates simpler than: Set the size of duplicated language constructs that are shown in the result window. By default, the constructs less than 10 units are not included (and this limitation cannot be changed).
  • Anonymize uncommon subexpressions simpler than: Set the value of the subelements within language constructs that can be considered similar, to show the construct as duplicate in the result window. The larger is the number, the larger constructs are taken as similar by PhpStorm.

    The values are set as arbitrary weights based on the element size calculated with additive algorithm. The larger is the element, the higher is the calculated value.

TypeScript
  • Anonymize Variables: when this check box is selected, two identical functions that use different variable names are considered duplicates, for example:
    var test01 = function(a,b){return (a*b)}var test01 = function(a,b){return (a*b)}
  • Anonymize Functions
  • Anonymize Literals
  • Do not show duplicates simpler than: Set the size of duplicated language constructs that are shown in the result window. By default, the constructs less than 10 units are not included (and this limitation cannot be changed).
  • Anonymize uncommon subexpressions simpler than: Set the value of the subelements within language constructs that can be considered similar, to show the construct as duplicate in the result window. The larger is the number, the larger constructs are taken as similar by PhpStorm.

    The values are set as arbitrary weights based on the element size calculated with additive algorithm. The larger is the element, the higher is the calculated value.

XHTML
  • Do not show duplicates containing less than <number> tags : Set the size of duplicated language constructs that are shown in the results window.
  • Anonymize values of tags and attributes
XML
  • Do not show duplicates containing less than <number> tags : Set the size of duplicated language constructs that are shown in the results window.
  • Anonymize values of tags and attributes

See Also

Last modified: 19 July 2017