Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Conversation

@ghost
Copy link

@ghost ghost commented Jun 16, 2020

Calculate extended cyclomatic complexity and number of compound name for local variables inside methods

calc:
mkdir -p metrics
for r in $$(find clones/ -type directory -depth 2); do \
for r in $$(find clones/ -type d -maxdepth 2 ); do \
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For compatibility run on ubuntu

"""
def compound(node):
flag = False
if (isinstance(node, tree.LocalVariableDeclaration)):
Copy link
Author

@ghost ghost Jun 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

calculate compound names for local variables

@yegor256
Copy link
Owner

@goonnors how do I run the tests? Maybe we should add make test target to the Makefile?

@ghost
Copy link
Author

ghost commented Jun 17, 2020

I added calc_test target to the Makefile to run the tests

@yegor256 yegor256 merged commit 4d31c75 into yegor256:master Jun 17, 2020
@yegor256
Copy link
Owner

@goonnors thanks!

@yegor256 yegor256 mentioned this pull request Jun 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant