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

Only displays 5 files instead of 10 #389

Closed
vincent-debes opened this issue Jun 22, 2023 · 2 comments
Closed

Only displays 5 files instead of 10 #389

vincent-debes opened this issue Jun 22, 2023 · 2 comments
Labels

Comments

@vincent-debes
Copy link

Hi,

I am testing churn-php, here is my configuration (I kept it simple):

filesToShow: 10
minScoreToShow: 0
cachePath: .churn.cache
directoriesToScan:
 - src

The result outputs only 5 files. I know for sure the filesToShow value is taken into account since it displays 3 files if I put 3 instead of 10. But nothing above 5, it sticks to 5 files displayed and I cannot figure out what is missing to get 10 (or more) files in the list.

Any help appreciated. Thanks for this great tool by the way!

@villfa
Copy link
Collaborator

villfa commented Jun 23, 2023

Hello @vincent-debes,

I think this is related to #366.
Since the score can be negative, by decreasing minScoreToShow you should be able to see the other files.

This is not an intuitive behaviour and it will most probably change in the next major version.

@vincent-debes
Copy link
Author

That was the problem! Thanks for your help.

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

No branches or pull requests

2 participants