Fix RuboCop offense Layout/EmptyLinesAroundModuleBody, one of the offenses enabled in rubocop-rails-omakase (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22951 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-08-12 07:51:45 +00:00
parent 74e2262efb
commit 79873291d7
18 changed files with 0 additions and 40 deletions

View File

@@ -52,29 +52,6 @@ Layout/EmptyLinesAroundExceptionHandlingKeywords:
- 'app/controllers/wiki_controller.rb'
- 'test/functional/settings_controller_test.rb'
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
Layout/EmptyLinesAroundModuleBody:
Exclude:
- 'app/helpers/attachments_helper.rb'
- 'app/helpers/custom_fields_helper.rb'
- 'app/helpers/email_addresses_helper.rb'
- 'app/helpers/journals_helper.rb'
- 'app/helpers/reports_helper.rb'
- 'app/helpers/routes_helper.rb'
- 'app/helpers/timelog_helper.rb'
- 'app/helpers/trackers_helper.rb'
- 'app/helpers/watchers_helper.rb'
- 'lib/redmine/access_control.rb'
- 'lib/redmine/activity.rb'
- 'lib/redmine/codeset_util.rb'
- 'lib/redmine/configuration.rb'
- 'lib/redmine/helpers/calendar.rb'
- 'lib/redmine/mime_type.rb'
- 'lib/redmine/plugin.rb'
- 'lib/redmine/search.rb'
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
Layout/ExtraSpacing:

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module AttachmentsHelper
def container_attachments_edit_path(container)
object_attachments_edit_path container.class.name.underscore.pluralize, container.id
end

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module CustomFieldsHelper
CUSTOM_FIELDS_TABS = [
{:name => 'IssueCustomField', :partial => 'custom_fields/index',
:label => :label_issue_plural},

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module EmailAddressesHelper
# Returns a link to enable or disable notifications for the address
def toggle_email_address_notify_link(address)
if address.notify?

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module JournalsHelper
# Returns the attachments of a journal that are displayed as thumbnails
def journal_thumbnail_attachments(journal)
journal.attachments.select(&:thumbnailable?)

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module ReportsHelper
def aggregate(data, criteria)
a = 0
data.each do |row|

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module RoutesHelper
# Returns the path to project issues or to the cross-project
# issue list if project is nil
def _project_issues_path(project, *args)

View File

@@ -146,5 +146,4 @@ module TimelogHelper
fallback_path = project ? project_time_entries_path(project) : time_entries_path
cancel_button_tag(fallback_path)
end
end

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module TrackersHelper
def tracker_name_tag(tracker)
title = tracker.description.presence
css = title ? "field-description" : nil

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module WatchersHelper
def watcher_link(objects, user)
return '' unless user && user.logged?

View File

@@ -19,7 +19,6 @@
module Redmine
module AccessControl
class << self
def map
mapper = Mapper.new

View File

@@ -19,7 +19,6 @@
module Redmine
module Activity
mattr_accessor :available_event_types, :default_event_types, :providers
@@available_event_types = []

View File

@@ -19,7 +19,6 @@
module Redmine
module CodesetUtil
def self.replace_invalid_utf8(str)
return nil if str.nil?

View File

@@ -21,7 +21,6 @@ require 'redmine'
module Redmine
module Configuration
# Configuration default values
@defaults = {
'avatar_server_url' => 'https://www.gravatar.com',

View File

@@ -19,7 +19,6 @@
module Redmine
module Helpers
# Simple class to compute the start and end dates of a calendar
class Calendar
include Redmine::I18n

View File

@@ -19,7 +19,6 @@
module Redmine
module MimeType
MIME_TYPES = {
'text/plain' => 'txt,tpl,properties,patch,diff,ini,readme,install,upgrade,sql',
'text/css' => 'css',

View File

@@ -18,7 +18,6 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
module Redmine
# Exception raised when a plugin cannot be found given its id.
class PluginNotFound < StandardError; end

View File

@@ -19,7 +19,6 @@
module Redmine
module Search
mattr_accessor :available_search_types
@@available_search_types = []