Browse Source

Maintenance: Update dependency rubocop to v1.47.0

renovatebot 2 years ago
parent
commit
225bebdddd

+ 1 - 0
.rubocop/default.yml

@@ -8,6 +8,7 @@ require:
   - rubocop-performance
   - rubocop-rails
   - rubocop-rspec
+  - rubocop-capybara
   - ../config/initializers/inflections.rb
   - ./rubocop_zammad.rb
 

+ 3 - 3
Gemfile.lock

@@ -461,7 +461,7 @@ GEM
       rspec-core (> 3.3)
     rspec-support (3.12.0)
     rszr (1.3.0)
-    rubocop (1.46.0)
+    rubocop (1.47.0)
       json (~> 2.3)
       parallel (~> 1.10)
       parser (>= 3.2.0.0)
@@ -471,7 +471,7 @@ GEM
       rubocop-ast (>= 1.26.0, < 2.0)
       ruby-progressbar (~> 1.7)
       unicode-display_width (>= 2.4.0, < 3.0)
-    rubocop-ast (1.26.0)
+    rubocop-ast (1.27.0)
       parser (>= 3.2.1.0)
     rubocop-capybara (2.17.0)
       rubocop (~> 1.41)
@@ -494,7 +494,7 @@ GEM
     rubocop-rspec (2.18.1)
       rubocop (~> 1.33)
       rubocop-capybara (~> 2.17)
-    ruby-progressbar (1.11.0)
+    ruby-progressbar (1.12.0)
     ruby-saml (1.14.0)
       nokogiri (>= 1.10.5)
       rexml

+ 1 - 1
lib/html_sanitizer/scrubber/inline_images.rb

@@ -5,7 +5,7 @@ class HtmlSanitizer
     class InlineImages < Base
       attr_reader :attachments_inline, :prefix
 
-      def initialize(prefix = SecureRandom.uuid) # rubocop:disable Lint/MissingSuper
+      def initialize(prefix = SecureRandom.uuid)
         @direction = :top_down
 
         @attachments_inline = []

+ 1 - 1
lib/html_sanitizer/scrubber/link.rb

@@ -7,7 +7,7 @@ class HtmlSanitizer
 
       attr_reader :external, :web_app_url_prefix
 
-      def initialize(web_app_url_prefix:, external: false) # rubocop:disable Lint/MissingSuper
+      def initialize(web_app_url_prefix:, external: false)
         @direction = :top_down
 
         @external = external

+ 1 - 1
lib/html_sanitizer/scrubber/remove_last_empty_node.rb

@@ -5,7 +5,7 @@ class HtmlSanitizer
     class RemoveLastEmptyNode < Base
       attr_reader :remove_empty_nodes, :remove_empty_last_nodes
 
-      def initialize # rubocop:disable Lint/MissingSuper
+      def initialize
         @direction = :bottom_up
 
         @remove_empty_nodes      = %w[p div span small table]

+ 1 - 1
lib/sessions/backend/activity_stream.rb

@@ -4,7 +4,7 @@ class Sessions::Backend::ActivityStream < Sessions::Backend::Base
 
   attr_writer :user
 
-  def initialize(user, asset_lookup, client = nil, client_id = nil, ttl = 25) # rubocop:disable Lint/MissingSuper
+  def initialize(user, asset_lookup, client = nil, client_id = nil, ttl = 25)
     @user         = user
     @client       = client
     @client_id    = client_id

+ 1 - 1
lib/sessions/backend/ticket_overview_list.rb

@@ -6,7 +6,7 @@ class Sessions::Backend::TicketOverviewList < Sessions::Backend::Base
     Rails.cache.write("TicketOverviewPull::#{user_id}", { needed: true })
   end
 
-  def initialize(user, asset_lookup, client = nil, client_id = nil, ttl = 7) # rubocop:disable Lint/MissingSuper
+  def initialize(user, asset_lookup, client = nil, client_id = nil, ttl = 7)
     @user                 = user
     @client               = client
     @client_id            = client_id

+ 1 - 1
lib/user_context.rb

@@ -7,7 +7,7 @@
 # to the underlying User instance in the Policy
 class UserContext < Delegator
 
-  def initialize(user, token = nil) # rubocop:disable Lint/MissingSuper
+  def initialize(user, token = nil)
     @user  = user
     @token = token
   end