Commit 2aa2f521 authored by Gabriel Mazetto's avatar Gabriel Mazetto

Enable Style/EmptyLinesAroundModuleBody cop

parent aa49c20e
...@@ -157,7 +157,7 @@ Style/EmptyLinesAroundClassBody: ...@@ -157,7 +157,7 @@ Style/EmptyLinesAroundClassBody:
# Keeps track of empty lines around module bodies. # Keeps track of empty lines around module bodies.
Style/EmptyLinesAroundModuleBody: Style/EmptyLinesAroundModuleBody:
Enabled: false Enabled: true
# Keeps track of empty lines around method bodies. # Keeps track of empty lines around method bodies.
Style/EmptyLinesAroundMethodBody: Style/EmptyLinesAroundMethodBody:
......
module AvatarsHelper module AvatarsHelper
def author_avatar(commit_or_event, options = {}) def author_avatar(commit_or_event, options = {})
user_avatar(options.merge({ user_avatar(options.merge({
user: commit_or_event.author, user: commit_or_event.author,
...@@ -26,5 +25,4 @@ module AvatarsHelper ...@@ -26,5 +25,4 @@ module AvatarsHelper
mail_to(options[:user_email], avatar) mail_to(options[:user_email], avatar)
end end
end end
end end
module Banzai module Banzai
module Filter module Filter
# Find every image that isn't already wrapped in an `a` tag, and that has # Find every image that isn't already wrapped in an `a` tag, and that has
# a `src` attribute ending with a video extension, add a new video node and # 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. # a "Download" link in the case the video cannot be played.
...@@ -54,6 +53,5 @@ module Banzai ...@@ -54,6 +53,5 @@ module Banzai
container container
end end
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment