Inspectopedia Help

Duplicate property

Reports duplicate property keys with different values, duplicate keys, or duplicate property values.

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

DuplicatePropertyInspection
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Properties files

Example:

property1=<font color="#000080">value</font>; property2=<font color="#000080">value</font>;

The Options list allows selecting the area in which the inspection should search for duplicates.

Inspection options

Here you can find the description of settings available for the Duplicate property inspection, and the reference of their default values.

Analysis scope

Default setting: File

Other available settings:

  • Module

  • Project

Duplicate values

Default: Selected

Duplicate keys with different values

Default: Selected

Duplicate keys

Default: Selected

Availability

By default bundled with

IntelliJ IDEA 2024.1, JetBrains Rider 2023.3, PyCharm 2024.1, Qodana for .NET 2023.3, Qodana for JVM 2024.1,

Can be installed with plugin

Properties, 241.18072

Last modified: 18 June 2024