-
Notifications
You must be signed in to change notification settings - Fork 62
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
Thread safety rubocop plugin #3543
Conversation
@omgitsbillryan just curious if we've had any problems from thread safety in the past that this would pick up |
I like it! How about committing the results of |
Gemfile
Outdated
@@ -4,6 +4,8 @@ source 'https://rubygems.org' | |||
|
|||
ruby '2.4.5' | |||
|
|||
gem 'rubocop-thread_safety' |
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.
Should this be moved to the group :development, :test
block?
I'm sad by how little this readme tells me |
The jenkins build passed 🎉 But it looks like code climate is unable to load the plugin 🤔
|
ugh! So, codeclimate doesn't run the version of rubocop from the gemfile. It does it's own nonsense and rubocop-thread_safety isn't in their gemfile https://github.com/codeclimate/codeclimate-rubocop/blob/channel-rubocop-0.71/Gemfile I could see ditching codeclimate for this. |
different rubocop gem, similar issue codeclimate/codeclimate-rubocop#131 |
It might be possible to execute the thread safety cop in a separate Jenkins stage purely on the command line rather than include it as a plugin in our |
We already run rubocop on CI, so why are we bothering running it again on CodeClimate, especially when it adds the "keep versions in sync" issue. Isn't rubocop, for our purposes on the platform, like specs -- pass/fail? |
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.
LGTM
Description of change
Adds a thread safety rubocop plugin to our linter.
Testing done
Run the lint locally using the command to only look for thread safety issues.
Applies to all PRs