do not set FrozenStringLiteral before Redmine itself use it

This commit is contained in:
Alexander Meindl 2019-05-15 19:54:06 +02:00
parent 43eb4b2f9e
commit ff3b7f52c9
102 changed files with 3 additions and 202 deletions

View File

@ -43,6 +43,9 @@ Performance/ChainArrayAllocation:
Style/AutoResourceCleanup:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: false
Style/Documentation:
Enabled: false

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
gem 'deface', '1.3.2'
gem 'gemoji', '~> 3.0.0'
gem 'invisible_captcha'

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
class AdditionalsAssignToMeController < ApplicationController
before_action :find_issue
helper :additionals_issues

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
class AdditionalsChangeStatusController < ApplicationController
before_action :find_issue
helper :additionals_issues

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
class AdditionalsMacrosController < ApplicationController
before_action :require_login

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module AdditionalsFontawesomeHelper
def fontawesome_info_url
s = []

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module AdditionalsIssuesHelper
def issue_author_options_for_select(project, issue = nil)
authors = project.users.sorted

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module AdditionalsMenuHelper
def additionals_top_menu_setup
return unless User.current.try(:hrm_user_type_id).nil?

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module AdditionalsQueriesHelper
def additionals_query_session_key(object_type)
"#{object_type}_query".to_sym

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module AdditionalsSettingsHelper
def additionals_settings_tabs
tabs = [{ name: 'general', partial: 'additionals/settings/general', label: :label_general },

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
require 'digest/md5'
module AdditionalsTagHelper

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module AdditionalsWikiPdfHelper
include Redmine::Export::PDF

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
class AdditionalsFontAwesome
include Redmine::I18n

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
class AdditionalsImport < Import
class_attribute :import_class

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
class AdditionalsMacro
def self.all(options = {})
all = Redmine::WikiFormatting::Macros.available_macros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module AdditionalsQuery
def self.included(base)
base.send :include, InstanceMethods

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
class AdditionalsTag
TAG_TABLE_NAME = RedmineCrm::Tag.table_name if defined? RedmineCrm
TAGGING_TABLE_NAME = RedmineCrm::Tagging.table_name if defined? RedmineCrm

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'account/register',
name: 'add-invisble-captcha',
insert_top: 'div.box',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'admin/info',
name: 'add-system_info',
insert_after: 'table.list',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'issues/_edit',
name: 'edit-issue-permission',
replace: 'erb[silent]:contains("User.current.allowed_to?(:log_time, @project)")',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'issues/_action_menu',
name: 'show-issue-log-time',
replace: 'erb[loud]:contains("User.current.allowed_to?(:log_time, @project)")',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'layouts/base',
name: 'add-body-header',
insert_before: 'div#wrapper',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'roles/_form',
name: 'roles-form-hide',
insert_before: 'p.manage_members_shown',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'users/show',
name: 'user-show-info-hook',
insert_top: 'div.splitcontentleft ul:first-child',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'welcome/index',
name: 'add-welcome-bottom-content',
insert_after: 'div.splitcontentright',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'wiki/show',
name: 'addto-wiki-show',
insert_before: 'div.contextual',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
Deface::Override.new virtual_path: 'wiki/_sidebar',
name: 'addto-wiki-sidebar',
insert_after: 'ul',

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
# Plugin's routes
# See: http://guides.rubyonrails.org/routing.html

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
class AddAutowatchInvolvedIssueToUser < Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
def change
add_column :user_preferences, :autowatch_involved_issue, :boolean, default: true, null: false

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
class AddHideToRoles < Rails.version < '5.2' ? ActiveRecord::Migration : ActiveRecord::Migration[4.2]
def change
add_column :roles, :hide, :boolean, default: false, null: false

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
raise "\n\033[31madditionals requires ruby 2.3 or newer. Please update your ruby version.\033[0m" if RUBY_VERSION < '2.3'
require_dependency 'additionals'

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
MAX_CUSTOM_MENU_ITEMS = 5
SELECT2_INIT_ENTRIES = 20

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Formater
module Additionals
module Formatter

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Helpers
def additionals_list_title(options)

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
class AdditionalsHookListener < Redmine::Hook::ViewListener
include IssuesHelper

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module AccessControlPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module AccountControllerPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module FormatterMarkdownPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module FormatterTextilePatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module FormattingHelperPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module IssuePatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module IssuePriorityPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module PrincipalPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module ProjectPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
require_dependency 'query'
module Additionals

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module RolePatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module TimeEntryPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module UserPatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
module Additionals
module Patches
module UserPreferencePatch

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
require_dependency 'wiki_controller'
module Additionals

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
require_dependency 'wiki'
module Additionals

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Calendar wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# CryptoCompare wiki macros
# see https://www.cryptocompare.com/dev/widget/wizard/
module Additionals

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Date wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Font Awesome wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Gist wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Gist wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Group wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Slideshare wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Issue wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Last_updated_at wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Last_updated_by wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Member wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# meteoblue wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Issue wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Project wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Recently updated wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Reddit wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Redmine.org issue wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Redmine.org issue wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Slideshare wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Tradingview wiki macros
# see https://www.tradingview.com/widget/
module Additionals

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Twitter wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# User wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Vimeo wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
# Youtube wiki macros
module Additionals
module WikiMacros

View File

@ -1,5 +1,3 @@
# frozen_string_literal: false
namespace :redmine do
namespace :additionals do
desc <<-DESCRIPTION

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class AccountControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class AdditionalsAssignToMeControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class AdditionalsChangeStatusControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class AdditionalsMacrosControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class IssuesControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class ProjectsControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class UsersControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class WelcomeControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class WikiControllerTest < Additionals::ControllerTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
module Additionals
module GlobalTestHelper
def with_additionals_settings(settings, &_block)

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../../test_helper', __FILE__)
module ApiTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class CommonViewsTest < Redmine::IntegrationTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class JavascriptLibraryTest < Redmine::IntegrationTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class RoutingTest < Redmine::RoutingTest

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
# for travis debugging
# config.logger = Logger.new(STDOUT)
# config.logger.level = Logger::INFO

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
$VERBOSE = nil
unless ENV['SKIP_COVERAGE']

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class AdditionalsFontAwesomeTest < Additionals::TestCase

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class AdditionalsMacroTest < Additionals::TestCase

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../../test_helper', __FILE__)
class GlobalHelperTest < ActionView::TestCase

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class I18nTest < Additionals::TestCase

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class IssueTest < Additionals::TestCase

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class QueryTest < Additionals::TestCase

View File

@ -1,5 +1,3 @@
# frozen_string_literal: true
require File.expand_path('../../test_helper', __FILE__)
class RoleTest < Additionals::TestCase

Some files were not shown because too many files have changed in this diff Show More