How to check code cyclomatic complexity in Android Studio? Is there any plugin available for Android Studio to check code complexity?
Cyclomatic complexity testing tools There are plenty of source code quality and code coverage tools that include this metric in their reporting. Three popular examples of cyclomatic complexity testing tools include SonarQube, JaCoCo and the Eclipse Metrics plugin.
Go to Files -> Settings -> Plugins in Android Studio Type "Metrics Reloaded" in the search bar and install the plugin Click on Apply Restart the Android Studio
Now open your source file and right click on it. Go to Analyze -> Calculate Metrics In the window, select metrics scope as "current file" and metrics profile as "Complexity Metrics" and Click on "Ok".
Results will be displayed after clicking OK. v(G) is the cyclometric complexity ev(G) is the essential cyclometric complexity iv(G) is the Module Design Complexity Metric
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With