Minor refactoring#61
Conversation
arnau
left a comment
There was a problem hiding this comment.
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>