-
Hi! I can see the Modification object returns the cyclomatic complexity of a file changed in a commit. Is there a way to check what it was previously? Basically, I'd like to get a diff of the cyclomatic complexity for comparison. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@ks3057 perhaps you can use this method pydriller/pydriller/domain/commit.py Line 436 in 2ad53b0 |
Beta Was this translation helpful? Give feedback.
-
Hi @ks3057, sorry I haven't replied sooner, I missed this discussion. Yes you are right, the complexity at file level is only calculated after the change, while the complexity at method level can be calculated before and after. I think we can add the complexity at file level before. What do you think, can you work on a PR? |
Beta Was this translation helpful? Give feedback.
@ks3057 perhaps you can use this method
pydriller/pydriller/domain/commit.py
Line 436 in 2ad53b0