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:
- Open IntelliJ or Android Studio.
- Go to File > Settings (or IntelliJ IDEA > Preferences on macOS).
- Select Plugins from the left sidebar.
- Search for "DCM" in the Marketplace tab.
- 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:
- Go to File > Settings (or IntelliJ IDEA > Preferences on macOS).
- Navigate to Plugins and select the Required Plugins tab.
- 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:
-
Open or create the
dcm_global.yaml
file in your project root. -
Set the version constraint:
version: '>=1.15.0 <2.0.0'
For more information on global configuration options, refer to the global configuration documentation.