diff --git a/.rubocop.yml b/.rubocop.yml index b05ac369f61b8dcb2eef15674564a3664dd64be5..cf3607f985baf96d8ec1d0b3b95870ae92c4cce1 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -153,7 +153,7 @@ Style/EmptyLinesAroundBlockBody: # Keeps track of empty lines around class bodies. Style/EmptyLinesAroundClassBody: - Enabled: false + Enabled: true # Keeps track of empty lines around module bodies. Style/EmptyLinesAroundModuleBody: diff --git a/lib/banzai/filter/video_link_filter.rb b/lib/banzai/filter/video_link_filter.rb index 0f86ae83f72b795983586ca95887a6f1808d0b14..ac7bbcb0d10a7c5119af269138cabda389495e53 100644 --- a/lib/banzai/filter/video_link_filter.rb +++ b/lib/banzai/filter/video_link_filter.rb @@ -4,7 +4,6 @@ module Banzai # a `src` attribute ending with a video extension, add a new video node and # a "Download" link in the case the video cannot be played. class VideoLinkFilter < HTML::Pipeline::Filter - def call doc.xpath(query).each do |el| el.replace(video_node(doc, el)) diff --git a/lib/gitlab/import_export/avatar_restorer.rb b/lib/gitlab/import_export/avatar_restorer.rb index 352539eb594ead70aec67accc7d348ba31776f15..cfa595629f4758fd8ee6bd6d04d0f37d311fdb5b 100644 --- a/lib/gitlab/import_export/avatar_restorer.rb +++ b/lib/gitlab/import_export/avatar_restorer.rb @@ -1,7 +1,6 @@ module Gitlab module ImportExport class AvatarRestorer - def initialize(project:, shared:) @project = project @shared = shared