Browse Source

Maintenance: Update dependency rubocop to v1.48.0

renovatebot 2 years ago
parent
commit
1d21105a3d

+ 2 - 2
Gemfile.lock

@@ -461,7 +461,7 @@ GEM
       rspec-core (> 3.3)
     rspec-support (3.12.0)
     rszr (1.3.0)
-    rubocop (1.47.0)
+    rubocop (1.48.0)
       json (~> 2.3)
       parallel (~> 1.10)
       parser (>= 3.2.0.0)
@@ -494,7 +494,7 @@ GEM
     rubocop-rspec (2.18.1)
       rubocop (~> 1.33)
       rubocop-capybara (~> 2.17)
-    ruby-progressbar (1.12.0)
+    ruby-progressbar (1.13.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)
+      def initialize(prefix = SecureRandom.uuid) # rubocop:disable Lint/MissingSuper
         @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)
+      def initialize(web_app_url_prefix:, external: false) # rubocop:disable Lint/MissingSuper
         @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
+      def initialize # rubocop:disable Lint/MissingSuper
         @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)
+  def initialize(user, asset_lookup, client = nil, client_id = nil, ttl = 25) # rubocop:disable Lint/MissingSuper
     @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)
+  def initialize(user, asset_lookup, client = nil, client_id = nil, ttl = 7) # rubocop:disable Lint/MissingSuper
     @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)
+  def initialize(user, token = nil) # rubocop:disable Lint/MissingSuper
     @user  = user
     @token = token
   end