-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thread safety rubocop plugin (#3543)
* thread saftey rubocop plugin * use --auto-gen-config rubocop flag * move gem to :test :development group * move thread checks to rake task * woops, remove byebug * fix lint issue
- Loading branch information
1 parent
9431856
commit 6ee87b6
Showing
5 changed files
with
54 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
||
require: | ||
- rubocop-rails | ||
- rubocop-rspec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config` | ||
# on 2019-11-29 12:01:22 -0500 using RuboCop version 0.74.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 7 | ||
ThreadSafety/ClassAndModuleAttributes: | ||
Exclude: | ||
- 'app/models/base_facility.rb' | ||
- 'lib/common/models/redis_store.rb' | ||
- 'lib/facilities/nca_facility.rb' | ||
- 'lib/facilities/vba_facility.rb' | ||
- 'lib/facilities/vc_facility.rb' | ||
- 'lib/facilities/vha_facility.rb' | ||
- 'lib/saml/health_status.rb' | ||
|
||
# Offense count: 36 | ||
ThreadSafety/InstanceVariableInClassMethod: | ||
Exclude: | ||
- 'app/models/base_facility.rb' | ||
- 'app/models/form_profile.rb' | ||
- 'lib/common/client/base.rb' | ||
- 'lib/common/models/base.rb' | ||
- 'lib/common/models/collection.rb' | ||
- 'lib/common/models/concerns/active_record_cache_aside.rb' | ||
- 'lib/common/models/redis_store.rb' | ||
- 'lib/oidc/key_service.rb' | ||
- 'lib/saml/settings_service.rb' | ||
- 'lib/vet360/contact_information/person_response.rb' | ||
- 'lib/vet360/contact_information/transaction_response.rb' | ||
- 'lib/vic/url_helper.rb' | ||
|
||
# Offense count: 1 | ||
ThreadSafety/NewThread: | ||
Exclude: | ||
- 'spec/lib/common/client/middleware/request/remove_cookies_spec.rb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters