-
Notifications
You must be signed in to change notification settings - Fork 5
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
Inaccurate libyears total for a Rails application #27
Comments
Hi Ernesto, glad you got some use out of it!
If I understand your arithmetic, you are referring to the fact that rails is composed of 11 gems (activerecord, activejob, etc.) One of the main goals of the "libyear" metric is to be simple. We must be able to explain it quickly to our colleagues. If we begin adding special rules for certain gems, it loses that property of simplicity. So, I don't want to change the default calculation. However, I'd be open to adding a CLI option, like Perhaps a simpler design would be |
@jaredbeck Thanks for the quick response! I agree with your train of thought there and I really like this idea:
It's simple and flexible enough so that anybody can pick and choose which gems they care about. In my case, I would ignore all the I could work on this option and submit a PR for it. |
This issue has been automatically marked as stale due to inactivity. |
Hi there,
First of all, thank you for creating and maintaining this gem!
Secondly, I think I found an issue with the total sum of libyears for a pretty regular Rails application. It may be related to #11
This application is using Rails 6.1.7.2 which is 0.8 libyears behind:
So I would expect libyears to say that
rails
is 0.8 libyears behind and that's that.But then it says that it's 0.8 * + 0.8 (rails) behind.
So then it ends up being 0.8 * 11 + 0.8 (rails) behind which wrongly reports that it is in total 9.6 libyears behind...
Would it make sense to try to fix this?
The text was updated successfully, but these errors were encountered: