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

Update rubocop and enable it in CI #114

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

dosas
Copy link
Contributor

@dosas dosas commented Aug 21, 2024

No description provided.

@dosas dosas marked this pull request as ready for review August 21, 2024 10:59
@dosas
Copy link
Contributor Author

dosas commented Aug 21, 2024

@ShimShtein This also enables the rubocop in the CI

@@ -32,3 +31,23 @@ jobs:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake

lint:
Copy link
Collaborator

Choose a reason for hiding this comment

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

For performance sake, can we add rubocop just as a step before the tests? It would spare a full spin up of a machine just for running rubocop.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes that makes sense.

@@ -30,6 +29,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler"
spec.add_development_dependency "pry"
spec.add_development_dependency "rake"
spec.add_development_dependency "rubocop", "~> 0.52"
spec.add_development_dependency "rubocop"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's freeze rubocop version. It tends to change under our feet and fail CI.
If you think we would like to keep rubocop up to date, I would recommend adding a separate CI job that will test against the latest rubocop once in a while and we will monitor it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed the version, we could use dependabot for this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't have experience with dependabot, but I am not against it. We can always disable it later 🤷

@ShimShtein ShimShtein merged commit 32820f5 into fog:master Aug 22, 2024
5 checks passed
@ShimShtein
Copy link
Collaborator

@dosas I see rubocop started to fail in CI. Any idea why?

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

Successfully merging this pull request may close these issues.

2 participants