Skip to content
Snippets Groups Projects
Unverified Commit d9997541 authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Rubocop + Eslint + Rspec Clean up (#5616)

parent 31fa9ab6
No related branches found
No related tags found
No related merge requests found
...@@ -17,3 +17,4 @@ rules: ...@@ -17,3 +17,4 @@ rules:
max-len: max-len:
- 'error' - 'error'
- code: 150 - code: 150
jsx-a11y/control-has-associated-label: "off"
...@@ -2,6 +2,8 @@ require: ...@@ -2,6 +2,8 @@ require:
- rubocop-performance - rubocop-performance
- rubocop-rails - rubocop-rails
- rubocop-rspec - rubocop-rspec
- rubocop-factory_bot
- rubocop-capybara
AllCops: AllCops:
Exclude: Exclude:
......
...@@ -40,6 +40,8 @@ end ...@@ -40,6 +40,8 @@ end
group :development do group :development do
gem 'rubocop', '~> 1.26', require: false gem 'rubocop', '~> 1.26', require: false
gem 'rubocop-capybara', '~> 2.19.0', require: false
gem 'rubocop-factory_bot', '~> 2.24.0', require: false
gem 'rubocop-performance', '~> 1.13', require: false gem 'rubocop-performance', '~> 1.13', require: false
gem 'rubocop-rails', '~> 2.18', '>= 2.18.0', require: false gem 'rubocop-rails', '~> 2.18', '>= 2.18.0', require: false
gem 'rubocop-rspec', '~> 2.9.0', require: false gem 'rubocop-rspec', '~> 2.9.0', require: false
......
...@@ -409,6 +409,10 @@ GEM ...@@ -409,6 +409,10 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0) unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.29.0) rubocop-ast (1.29.0)
parser (>= 3.2.1.0) parser (>= 3.2.1.0)
rubocop-capybara (2.19.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.24.0)
rubocop (~> 1.33)
rubocop-performance (1.16.0) rubocop-performance (1.16.0)
rubocop (>= 1.7.0, < 2.0) rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0) rubocop-ast (>= 0.4.0)
...@@ -529,6 +533,8 @@ DEPENDENCIES ...@@ -529,6 +533,8 @@ DEPENDENCIES
remote_syslog_logger remote_syslog_logger
rspec-rails (>= 6.0.4) rspec-rails (>= 6.0.4)
rubocop (~> 1.26) rubocop (~> 1.26)
rubocop-capybara (~> 2.19.0)
rubocop-factory_bot (~> 2.24.0)
rubocop-performance (~> 1.13) rubocop-performance (~> 1.13)
rubocop-rails (~> 2.18, >= 2.18.0) rubocop-rails (~> 2.18, >= 2.18.0)
rubocop-rspec (~> 2.9.0) rubocop-rspec (~> 2.9.0)
...@@ -539,3 +545,9 @@ DEPENDENCIES ...@@ -539,3 +545,9 @@ DEPENDENCIES
web-console (>= 4.2.1) web-console (>= 4.2.1)
webdrivers webdrivers
webmock webmock
RUBY VERSION
ruby 3.1.0p0
BUNDLED WITH
2.3.9
...@@ -58,7 +58,9 @@ WebMock.disable_net_connect!(allow_localhost: true) ...@@ -58,7 +58,9 @@ WebMock.disable_net_connect!(allow_localhost: true)
RSpec.configure do |config| RSpec.configure do |config|
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
config.fixture_path = Rails.root.join('spec/fixtures"') config.fixture_paths = [
Rails.root.join('spec/fixtures')
]
# If you're not using ActiveRecord, or you'd prefer not to run each of your # If you're not using ActiveRecord, or you'd prefer not to run each of your
# examples within a transaction, remove the following line or assign false # examples within a transaction, remove the following line or assign false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment