Fix coding standards

This commit is contained in:
Alexander Meindl 2019-01-01 10:11:19 +01:00
parent 62d7f321ce
commit ff4ada86a5
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ Rails/SkipsModelValidations:
Rails/CreateTableWithTimestamps:
Enabled: false
# we drop this, if we drop Rails 4.2 support
# app/model/application_record.rb is missing in redmine, we can't use ApplicationRecord
Rails/ApplicationRecord:
Enabled: false

View File

@ -102,7 +102,7 @@ module AdditionalsTagHelper
end
def additionals_tag_color(tag_name)
"##{'%06x' % (tag_name.unpack('H*').first.hex % 0xffffff)}"
"##{format('%06x', tag_name.unpack('H*').first.hex % 0xffffff)}"
end
def cloudify(tags)

View File

@ -2,7 +2,7 @@ module Additionals
MAX_CUSTOM_MENU_ITEMS = 5
SELECT2_INIT_ENTRIES = 20
LIST_SEPARATOR = ' » '.html_safe # rubocop:disable Rails/OutputSafety
LIST_SEPARATOR = ' » '.html_safe
class << self
def setup