smontanari / code-forensics

A toolset for code analysis and report visualisation
384 stars 45 forks source link

Browser displays "There is no data available for this diagram." #31

Closed iKarthik closed 6 years ago

iKarthik commented 6 years ago

Hello,

First, many thanks for putting in effort to develop this tool. When I generate visualization for developer coupling analysis, I seem to get no data message displayed in the browser. When I look at the log files generated in the tmp dir, I do see commits and developer information in vcslog_normalized.., I see data under authors-report as well as code-ownernship-reports

But in the output directory, json file ..dev-coupling-data.json seems to contain no data, but the file ..communicatijon-network-data.json and hence am able to see the graph for communication network on the browser. Any idea what I might be missing here? Here is the command that I used

gulp.js developer-coupling-analysis --dateFrom=2017-01-01 --dateTo=2018-04-01 --maxCoupledFiles=20

Thanks K

iKarthik commented 6 years ago

After doing some investigation, i found out that my glob expressions were incorrect. Works well now. For anyone else who has trouble with this, here is how my configuration looks like

repository: { rootPath: '/path/to/your/root/dir', includePaths: [ 'app' ], excludePaths: [ '/*/tests/.js', '/*/mock/.js ] } This would make sure that all your sources under /path/to/your/root/dir/app are included for analysis, expect the js files under tests and mocks regardless of how deeply nested tests and mocks directory are

Thanks again.

K