kristiinara / GraphifyEvolution

Analysing app evolution based on its commit history, finding code smells through time
MIT License
6 stars 2 forks source link

Exporting code_smells with filename and line number. #1

Open quackerjeff opened 3 years ago

quackerjeff commented 3 years ago

How can I export a report with filenames and line numbers?

kristiinara commented 3 years ago

When you have run the analysis and the data has been added into the database then you can open the neo4j browser and query this infromation. For example all the long methods can be found with this query:

  match 
        (class:Class)-[:CLASS_OWNS_METHOD]->(method:Method)
  where 
        method.is_long_method = TRUE 
  return 
        class.name, class.path, method.name, method.start_line, method.end_line

The query results can be extracted as a .csv file.