Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to calculate fan_in and fan_out #250

Open
ishepard opened this issue Jan 22, 2019 · 2 comments
Open

Fail to calculate fan_in and fan_out #250

ishepard opened this issue Jan 22, 2019 · 2 comments

Comments

@ishepard
Copy link

I am having problems in calculating fan_in and fan_out of the methods. I tried different languages, different approaches (analyze recursively a directory, analyze only one file, etc.), but the result is always the same: fan_in and fan_out = 0.

What am I doing wrong?

This is the code I am using:

import lizard

an = lizard.analyze_file("/path/to/HTTP.c")
# also tried analyze, analyze_file and giving the directory

print(an.filename)
for func in an.function_list:
    print(func.fan_in)
    print(func.fan_out)

the output is always 0.

@terryyin
Copy link
Owner

terryyin commented Jan 22, 2019 via email

@hgn
Copy link

hgn commented Feb 9, 2019

Yes, it is not working yet. I realized that too. ;-) Beside this: thank you @terryyin for lizard and the effort in developing that tool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants