0

I have installed complexity-report on a javascript project

Instalation is done using $ npm install complexity-report on the root directory of the project. I can run $ cr and it shows some configuration options like on the image above here.

What i don't know is which command i have to use or what steps i have to follow to calculate for example the complexity of a specific js folder?

I need some help with a description of how to use this tool. Some explanations of that tool are given here but i don't understand which is the next step to follow in my case.

Thanks in advance

krisi
  • 3
  • 7
  • have you tried npm cr? – Lazar Nikolic Sep 20 '18 at 13:15
  • `cr path/to/root/of/code` That will create a report like https://github.com/escomplex/complexity-report/blob/master/EXAMPLE.md I'm unsure which part you don't understand. Are you asking for an explanation of all the options? – Ruan Mendes Sep 20 '18 at 18:41
  • Hi, thanks for responding @Juan. How to exclude for example the folder node_modules from complexity calculating? Is it ok if i use command **cr -x node_modules path/of/the/directory/to/calculate** ? – krisi Sep 21 '18 at 12:00
  • I'm sure it's OK, not sure if it will work :p Did you try it? – Ruan Mendes Sep 21 '18 at 12:13
  • yes it is ok. Thanks – krisi Sep 22 '18 at 10:33

0 Answers0