mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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?)
|
||||
|
||||
@@ -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|
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -146,5 +146,4 @@ module TimelogHelper
|
||||
fallback_path = project ? project_time_entries_path(project) : time_entries_path
|
||||
cancel_button_tag(fallback_path)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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?
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
module Redmine
|
||||
module AccessControl
|
||||
|
||||
class << self
|
||||
def map
|
||||
mapper = Mapper.new
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
module Redmine
|
||||
module Activity
|
||||
|
||||
mattr_accessor :available_event_types, :default_event_types, :providers
|
||||
|
||||
@@available_event_types = []
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
module Redmine
|
||||
module CodesetUtil
|
||||
|
||||
def self.replace_invalid_utf8(str)
|
||||
return nil if str.nil?
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ require 'redmine'
|
||||
|
||||
module Redmine
|
||||
module Configuration
|
||||
|
||||
# Configuration default values
|
||||
@defaults = {
|
||||
'avatar_server_url' => 'https://www.gravatar.com',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
module Redmine
|
||||
module Search
|
||||
|
||||
mattr_accessor :available_search_types
|
||||
@@available_search_types = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user