Bump rubocop from 1.14.0 to 1.15.0 (#13791)
* Bump rubocop from 1.14.0 to 1.15.0 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.14.0 to 1.15.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.14.0...v1.15.0) Signed-off-by: dependabot[bot] <support@github.com> * Enable Style/TopLevelMethodDefinition and fix outstanding violations Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: rhymes <github@rhymes.dev>
This commit is contained in:
parent
b7ff9aadd1
commit
ff244a31ef
7 changed files with 14 additions and 8 deletions
|
|
@ -646,6 +646,10 @@ Style/SwapValues:
|
|||
StyleGuide: '#values-swapping'
|
||||
Enabled: true
|
||||
|
||||
Style/TopLevelMethodDefinition:
|
||||
Description: 'This cop looks for top-level method definitions.'
|
||||
Enabled: true
|
||||
|
||||
Style/TrailingCommaInArguments:
|
||||
Description: 'Checks for trailing comma in argument lists.'
|
||||
StyleGuide: '#no-trailing-params-comma'
|
||||
|
|
|
|||
2
Gemfile
2
Gemfile
|
|
@ -147,7 +147,7 @@ group :development, :test do
|
|||
gem "knapsack_pro", "~> 2.16.0" # Help parallelize Ruby spec builds
|
||||
gem "pry-byebug", "~> 3.8" # Combine 'pry' with 'byebug'. Adds 'step', 'next', 'finish', 'continue' and 'break' commands to control execution
|
||||
gem "rspec-rails", "~> 5.0" # rspec-rails is a testing framework for Rails 3+
|
||||
gem "rubocop", "~> 1.14", require: false # Automatic Ruby code style checking tool
|
||||
gem "rubocop", "~> 1.15", require: false # Automatic Ruby code style checking tool
|
||||
gem "rubocop-performance", "~> 1.11", require: false # A collection of RuboCop cops to check for performance optimizations in Ruby code
|
||||
gem "rubocop-rails", "~> 2.10", require: false # Automatic Rails code style checking tool
|
||||
gem "rubocop-rspec", "~> 2.3", require: false # Code style checking for RSpec files
|
||||
|
|
|
|||
|
|
@ -650,7 +650,7 @@ GEM
|
|||
rspec-retry (0.6.2)
|
||||
rspec-core (> 3.3)
|
||||
rspec-support (3.10.2)
|
||||
rubocop (1.14.0)
|
||||
rubocop (1.15.0)
|
||||
parallel (~> 1.10)
|
||||
parser (>= 3.0.0.0)
|
||||
rainbow (>= 2.2.2, < 4.0)
|
||||
|
|
@ -955,7 +955,7 @@ DEPENDENCIES
|
|||
rpush-redis (~> 1.1)
|
||||
rspec-rails (~> 5.0)
|
||||
rspec-retry (~> 0.6)
|
||||
rubocop (~> 1.14)
|
||||
rubocop (~> 1.15)
|
||||
rubocop-performance (~> 1.11)
|
||||
rubocop-rails (~> 2.10)
|
||||
rubocop-rspec (~> 2.3)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ class RegistrationsController < Devise::RegistrationsController
|
|||
end
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/CyclomaticComplexity
|
||||
# rubocop:disable Metrics/PerceivedComplexity
|
||||
def create
|
||||
not_authorized unless Settings::Authentication.allow_email_password_registration ||
|
||||
SiteConfig.waiting_on_first_user
|
||||
|
|
@ -45,6 +47,8 @@ class RegistrationsController < Devise::RegistrationsController
|
|||
flash[:notice] = "You must complete the recaptcha ✅"
|
||||
end
|
||||
end
|
||||
# rubocop:enable Metrics/CyclomaticComplexity
|
||||
# rubocop:enable Metrics/PerceivedComplexity
|
||||
|
||||
private
|
||||
|
||||
|
|
|
|||
|
|
@ -38,11 +38,9 @@ module GithubRepos
|
|||
Github::Errors::RepositoryUnavailable
|
||||
repo.destroy
|
||||
rescue Github::Errors::ClientError => e
|
||||
if e.message.include? "Repository access blocked"
|
||||
repo.destroy
|
||||
else
|
||||
raise e
|
||||
end
|
||||
raise e unless e.message.include?("Repository access blocked")
|
||||
|
||||
repo.destroy
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
BIN
vendor/cache/rubocop-1.14.0.gem
vendored
BIN
vendor/cache/rubocop-1.14.0.gem
vendored
Binary file not shown.
BIN
vendor/cache/rubocop-1.15.0.gem
vendored
Normal file
BIN
vendor/cache/rubocop-1.15.0.gem
vendored
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue