How to extract different metrics from source code in Enterprise Architect

75 Views Asked by At

I have source code of a project (multiple files) that I have exported as source directory in the Enterprise Architect. I want to use the EA for the following.

  • Extract different source code metrics such as LOC, Comments, No of classes etc.
  • Extract function calls.
  • Extract level of coupling between classes.
  • Detect code smells.

However, I have been looking through different forums and documentation files for days and haven't found anything helpful.

2

There are 2 best solutions below

5
Geert Bellekens On

Enterprise Architect doesn't have the functions you are looking for. It's basically not the right tool for that job.

You might be able to do something if you write a bunch of scripts, or an add-in. But in that case you would basically need to parse and interpret the code yourself.

What you are looking for is a static code analysis tool, not a modelling tool such as EA.

1
James from CppDepend Team On

You can try JArchitect, it gives you all these metrics and features and it's free for open source contributors.