Skip to main content

Free Plan

Step 3: License Activation

Next, you need to activate your license after installing the executable and the IDE extension.

This process needs to be done only once per device.

Activating the License

Use the following command in your terminal to activate the license:

dcm activate --license-key=YOUR_KEY

Alternatively, you can activate the license through the IDE extension by using the DCM: Activate license key command.

info

License activation uses the device ID, so attempts to activate a license multiple times on the same device won't reduce the activation count.

To check the active license type, use:

dcm license

Deactivating the Device

If you need to deactivate the current device, simply uninstall the tool or activate another key.

Step 4: Integration

Enabling DCM Rules

With the Free plan, you can manually configure individual lint rules in your analysis_options.yaml file.

Browse the list of available rules for the Free plan and add the ones you want to enable:

analysis_options.yaml
dcm:
rules:
- avoid-dynamic
- avoid-unused-parameters
- prefer-conditional-expressions
tip

Start with a few rules and gradually add more as you become comfortable with DCM.

Enabling DCM Metrics

DCM provides code metrics to help you measure and maintain code quality. To enable metrics in your project, add the following configuration to your analysis_options.yaml file:

analysis_options.yaml
dcm:
metrics:
cyclomatic-complexity: 20
number-of-parameters: 4
maximum-nesting-level: 5
tip

For a complete list of available metrics and detailed configuration options, refer to the Metrics documentation.

Step 5: Next Steps

Congratulations on setting up DCM! Here's what you can explore next.

Choosing Your Rules

To help you choose which DCM rules to enable, follow this guide. It will walk you through techniques that make this process straightforward.

If you're integrating DCM into an existing project, this guide describes several techniques and DCM features that can significantly simplify the integration process.

Learn More

To maximize the potential of DCM with the Free plan, explore the following resources:

  • Lint Rules: Browse the 100 unique lint rules available in the Free plan to find bugs, performance and style issues.

  • Metrics: Get to know about the 22 code metrics to detect places in the codebase that need the most attention.

  • Configuration Options: Learn how to customize DCM's behavior by exploring the configuration options.

  • Configurable Formatter: Customize code formatting to match your team's style preferences.

  • Command Line Interface: Use DCM CLI commands for analyzing code and calculating metrics.

  • Check Other plans: Visit our pricing page to learn more and compare plans.