Open philliparente opened 7 years ago
try '-Eoutside'
Thanks, but there is a way to run with extension as a python module? (ex: i = lizard.analyze_file("../cpputest/tests/AllTests.py"))?
Hmm, There's also 'analyze' function that takes a list of extensions, or you can call 'FileAnalyzer(get_extensions(['outside']))(filename)'. I didn't test test this, just a wild guess.
Thanks, but when I run FileAnalyzer(get_extensions(['outside']))(filename) I get 'unicode' object is not callable. When I run without extension and with this aproach "FileAnalyzer(get_extensions([]))(filename)" the lizard runs, but can't get de cyclomatic complexity. There is a way to pass this extension as a python module?
Hi @philliparente , use get_extensions(['outside']) to translate the string list to python modules.
Oh, maybe my mistake. The get_extensions(['outside']) function doesn't work when you have "from future import unicode_literals" in the code. I removed the import and set unicode where i really need them. Thanks
Which version of Python are you using? Let me try if I can reproduce this.
2.7.12
Can I close this issue now?
Oh thanks for replying. Did you reproduce the environment error?
When I run the analysis in a python file without any function inside, it is not be able to get the cyclomatic complexity. Is that some limitation?