Updated rubocop to latest version (0.62.0) and applied required changes.

This commit is contained in:
Thorsten Eckel 2019-01-01 17:54:13 +01:00
parent 1e08fd7350
commit 27b9bbd401
13 changed files with 4 additions and 20 deletions

View file

@ -10,6 +10,7 @@ AllCops:
- 'bin/rake' - 'bin/rake'
- 'bin/spring' - 'bin/spring'
- 'db/schema.rb' - 'db/schema.rb'
- 'vendor/**/*'
Rails: Rails:
Enabled: true Enabled: true

View file

@ -409,7 +409,7 @@ GEM
rspec-mocks (~> 3.8.0) rspec-mocks (~> 3.8.0)
rspec-support (~> 3.8.0) rspec-support (~> 3.8.0)
rspec-support (3.8.0) rspec-support (3.8.0)
rubocop (0.61.1) rubocop (0.62.0)
jaro_winkler (~> 1.5.1) jaro_winkler (~> 1.5.1)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1) parser (>= 2.5, != 2.5.1.1)
@ -486,7 +486,7 @@ GEM
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.7.5) unf_ext (0.0.7.5)
unicode-display_width (1.4.0) unicode-display_width (1.4.1)
unicorn (5.3.1) unicorn (5.3.1)
kgio (~> 2.6) kgio (~> 2.6)
raindrops (~> 0.7) raindrops (~> 0.7)

View file

@ -1,7 +1,5 @@
module Import module Import
module BaseFactory module BaseFactory
# rubocop:disable Style/ModuleFunction
extend self extend self
def import_action(records, *args) def import_action(records, *args)

View file

@ -27,8 +27,6 @@ module Import
extend Import::OTRS::ImportStats extend Import::OTRS::ImportStats
extend Import::OTRS::Async extend Import::OTRS::Async
extend Import::OTRS::Diff extend Import::OTRS::Diff
# rubocop:disable Style/ModuleFunction
extend self extend self
def start def start

View file

@ -3,8 +3,6 @@ module Import
class Article class Article
module AttachmentFactory module AttachmentFactory
extend Import::Helper extend Import::Helper
# rubocop:disable Style/ModuleFunction
extend self extend self
def import(args) def import(args)

View file

@ -1,7 +1,6 @@
module Import module Import
module OTRS module OTRS
module Diff module Diff
# rubocop:disable Style/ModuleFunction
extend self extend self
def diff_worker def diff_worker

View file

@ -3,8 +3,6 @@ module Import
module DynamicFieldFactory module DynamicFieldFactory
extend Import::Factory extend Import::Factory
extend Import::Helper extend Import::Helper
# rubocop:disable Style/ModuleFunction
extend self extend self
def skip?(record, *_args) def skip?(record, *_args)

View file

@ -1,7 +1,6 @@
module Import module Import
module OTRS module OTRS
module Helper module Helper
# rubocop:disable Style/ModuleFunction
extend self extend self
private private

View file

@ -2,8 +2,6 @@ module Import
module OTRS module OTRS
module HistoryFactory module HistoryFactory
extend Import::Factory extend Import::Factory
# rubocop:disable Style/ModuleFunction
extend self extend self
def skip?(record, *_args) def skip?(record, *_args)

View file

@ -1,7 +1,6 @@
module Import module Import
module OTRS module OTRS
module ImportStats module ImportStats
# rubocop:disable Style/ModuleFunction
extend self extend self
def current_state def current_state

View file

@ -5,8 +5,6 @@ module Import
# @return [Number] the sleep time between the request retries # @return [Number] the sleep time between the request retries
module Requester module Requester
extend Import::Helper extend Import::Helper
# rubocop:disable Style/ModuleFunction
extend self extend self
attr_accessor :retry_sleep attr_accessor :retry_sleep

View file

@ -1,8 +1,6 @@
module Import module Import
module OTRS module OTRS
module SysConfigFactory module SysConfigFactory
# rubocop:disable Style/ModuleFunction
extend self extend self
def import(settings, *_args) def import(settings, *_args)

View file

@ -3,7 +3,7 @@
module PasswordHash module PasswordHash
include ApplicationLib include ApplicationLib
extend self # rubocop:disable Style/ModuleFunction extend self
def crypt(password) def crypt(password)
argon2.create(password) argon2.create(password)