diff --git a/.rubocop.yml b/.rubocop.yml index 5d51b6c..d771237 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,3 +1,7 @@ +require: + - rubocop-capybara + - rubocop-rails + AllCops: Exclude: - 'config/**/*.rb' @@ -7,6 +11,7 @@ AllCops: - 'bin/rake' - 'bin/rails' - 'bin/setup' + NewCops: enable Style/Documentation: - enabled: false \ No newline at end of file + Enabled: false \ No newline at end of file diff --git a/Gemfile b/Gemfile index a5224d4..25bec68 100644 --- a/Gemfile +++ b/Gemfile @@ -64,6 +64,8 @@ group :development do # Speed up commands on slow machines / big apps [https://github.com/rails/spring] # gem "spring" gem 'rubocop' + gem 'rubocop-capybara' + gem 'rubocop-rails' gem 'ruby-lsp' gem 'ruby-lsp-rails' end diff --git a/Gemfile.lock b/Gemfile.lock index cb9bbfd..4105ebe 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -228,6 +228,13 @@ GEM unicode-display_width (>= 2.4.0, < 3.0) rubocop-ast (1.31.3) parser (>= 3.3.1.0) + rubocop-capybara (2.21.0) + rubocop (~> 1.41) + rubocop-rails (2.25.1) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.33.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) ruby-lsp (0.17.7) language_server-protocol (~> 3.17.0) prism (>= 0.29.0, < 0.31) @@ -302,6 +309,8 @@ DEPENDENCIES puma (>= 5.0) rails (~> 7.1.3, >= 7.1.3.4) rubocop + rubocop-capybara + rubocop-rails ruby-lsp ruby-lsp-rails selenium-webdriver