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

Enable Rubocop #72

Merged
merged 1 commit into from
Dec 22, 2022
Merged

Enable Rubocop #72

merged 1 commit into from
Dec 22, 2022

Conversation

jay7x
Copy link
Member

@jay7x jay7x commented Dec 21, 2022

This PR enables rubocop in the GHA. Though all cops are disabled at the moment in the .rubocop_todo.yml file.

@codecov
Copy link

codecov bot commented Dec 21, 2022

Codecov Report

Base: 84.74% // Head: 84.74% // No change to project coverage 👍

Coverage data is based on head (b5b9c86) compared to base (f3bcdc3).
Patch has no changes to coverable lines.

❗ Current head b5b9c86 differs from pull request most recent head 770397d. Consider uploading reports for the commit 770397d to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #72   +/-   ##
=======================================
  Coverage   84.74%   84.74%           
=======================================
  Files           1        1           
  Lines         295      295           
=======================================
  Hits          250      250           
  Misses         45       45           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I think we should consider fixing various cops rather than building up a huge todo file. And we should consider moving to Ruby 2.5+ at least.

.github/workflows/test.yml Outdated Show resolved Hide resolved
.rubocop.yml Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
Rakefile Outdated Show resolved Hide resolved
beaker-docker.gemspec Outdated Show resolved Hide resolved
Cops are mostly disabled now to make the lint stage pass.
@bastelfreak
Copy link
Member

bastelfreak commented Dec 21, 2022

@ekohl I think we currently imply ruby 2.4 support. It's not mentioned in the gemspec, but we test on it in CI, and most other beaker gems claim ruby 2.4 support. should we merge this as is, do a minor release and then bump to ruby 2.5? We could also wait with the bump until Puppet 6 is EoL in January? and then directly bump to 2.7. Or we directly bump to 2.7. I don't see a requirement for beaker to match the ruby versions in Puppet AIO packages. We also don't have that as a CI requirement.

Edit: beaker-hcloud is the latest/newest beaker gem and it started with Ruby 2.7 as a requirement, but we could change that, it's not yet released.

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I had a quick look at the violations, but a LOT are layout ones so I'd be OK with leaving those for a future PR.

@ekohl ekohl merged commit 2285a57 into voxpupuli:master Dec 22, 2022
@jay7x jay7x deleted the rubocop branch December 23, 2022 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants