How to check the timeline of code complexity in android studio?

How to check cyclical complexity of code in Android Studio? Is there any Android Studio plugin for checking code complexity?

+3


source to share


2 answers


A plugin is available called Metrics Reloaded . This gives the complexity of the code in levels.



+6


source


Go to Files -> Preferences -> Plugins in Android Studio Enter "Metrics Reloaded" in the search bar and install the plugin Click "Apply". Restart Android Studio

Now open the original file and right click it. Go to Analysis → Calculate Metrics In the window, select the metrics area as "current file" and the metrics profile as "Complex metrics" and click OK.



The results will be displayed after clicking OK. v (G) is the cyclometric complexity ev (G) is the essential cyclometric complexity iv (G) is the metric of the complexity of designing modules

+5


source







All Articles