Skip to main content

IntelliJ / Android Studio

To get DCM warnings (for example, from lint rules or unused code checks) in Intellij or Android Studio, install the DCM IntelliJ plugin.

Prerequisites

Before setting up the IDE plugin, ensure that your system meets the following requirements:

  • Operating System: 64-bit Windows, Linux, or macOS
  • Software: Installed Dart / Flutter SDK

To install the DCM plugin as follows:

  1. Open IntelliJ or Android Studio.
  2. Go to File > Settings (or IntelliJ IDEA > Preferences on macOS).
  3. Select Plugins from the left sidebar.
  4. Search for "DCM" in the Marketplace tab.
  5. Click Install and restart the IDE if prompted.

You can find more details on the IntelliJ / Android Studio plugin page.

Ensuring Team-Wide IDE Extension Installation

To ensure team-wide plugins installation, configure the list of required plugins:

  1. Go to File > Settings (or IntelliJ IDEA > Preferences on macOS).
  2. Navigate to Plugins and select the Required Plugins tab.
  3. Add "DCM" to the list of required plugins.

Refer to the Required plugins documentation for detailed instructions.

Ensuring Consistent Executable Versions Across the Team

To ensure that all team members use the same version of the DCM executable, configure the version constraints in your project's dcm_global.yaml file:

  1. Open or create the dcm_global.yaml file in your project root.

  2. Set the version constraint:

    version: '>=1.15.0 <2.0.0'

For more information on global configuration options, refer to the global configuration documentation.