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
Minor refactoring #61
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ran rake and RuboCop seems to be complaining:
Running RuboCop...
Inspecting 32 files
............C...................
Offenses:
lib/iso8601/months.rb:66:5: C: Metrics/CyclomaticComplexity: Cyclomatic complexity for calculation is too high. [7/6]
def calculation(atom, base) ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 files inspected, 1 offense detected
RuboCop failed!
What version of RuboCop d'you have? |
|
|
Okay, I'll put this in .rubocop.yml so this shouldn't be a blocker. |
|
I use |
|
It's there 🤦 but doesn't work for me for some reason. |
|
Okay, I'm going to experiment with a few changes and commits here. Shall squash the related commits in the end. Meanwhile if you've any idea about CI failure because of RubyTargetVersion, let me know 😪😅 |
|
If I'm reading it correctly, the problem comes from
Which is a RuboCop dependency 🤔 |
|
Weehoo, CI is green again! The problem was that bundler was cached 😄 |
|
What about this https://docs.rubocop.org/rubocop/configuration.html#setting-the-target-ruby-version ? AllCops:
TargetRubyVersion: 2.5.0 |
|
So I am going to finally squash them and it should be ready in the next ~10 minutes. |
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
|
@arnau, green and ready from my side! 🎉 |
|
Unless you have other things in mind, I'll be releasing v0.13.0 soon. |
|
Sure, looks good for v0.13.0 🎉 |
|
Fantastic! nice work, thanks :) |
Hi @arnau 👋
Here's my take on doing some minor refactoring and most importantly, getting the CI go green again! 🎉
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>