BasLeijdekkers / MetricsReloaded

Automated source code metrics plugin for IntelliJ IDEA
http://plugins.intellij.net/plugin/?id=93
165 stars 31 forks source link

Support for Kotlin files #33

Closed ghost closed 8 years ago

ghost commented 8 years ago

It would be nice if the plugin also supported kotlin files at least for line counting

BasLeijdekkers commented 8 years ago

MetricsReloaded supports Kotlin since version 1.2. For this to work the Kotlin plugin has to be installed (naturally:-). Does it not work for you?

ghost commented 8 years ago

unfortunately it does not. I have plugin version 1.7 installed and it seems like it only counts the loc from the very few java files in my project. I have a gradle based android project. My kotlin files are under src/main/java. Can this be a problem?

BasLeijdekkers commented 8 years ago

Maybe MetricsReloaded doesn't understand something about your project setup. Is your project open source by any chance? Or can you share your project files (specifically the *.iml files)?

ghost commented 8 years ago

unfortunately it is not open source but I think iml files should not hurt imls.zip

generally it is a standard gradle (android) project

BasLeijdekkers commented 8 years ago

And which metrics are you trying to use? The built-in "Lines of code metrics" profile perhaps?

ghost commented 8 years ago

"Whole Project", "Include test sources", "Lines of code metrics",

ghost commented 8 years ago

I just checked everything again - maybe I am just stupid. Until now I only checked the package metrics where I end up with about 300 LOC with only a fraction of my packages displayed. The other metrics however seem to be fine. I did not check this before since I was discouraged by the results from the package metrics page

BasLeijdekkers commented 8 years ago

Ah yes, the package metrics were indeed not working for languages other than Java. This is now fixed and I will release an updated version of MetricsReloaded soon. Thanks for your help and let me know if you have any other problems.

ghost commented 8 years ago

sorry for not checking the whole story before complaining. Thanks for the help!