Applied rubocop cop 'Lint/UnneededDisable'.

This commit is contained in:
Thorsten Eckel 2015-07-03 19:47:23 +02:00
parent 0c0ebe76d4
commit c59f616708
32 changed files with 4 additions and 36 deletions

View file

@ -673,7 +673,7 @@ curl http://localhost/api/v1/getting_started -v -u #{login}:#{password}
message: e.to_s, message: e.to_s,
subject: subject, subject: subject,
} }
return # rubocop:disable Lint/NonLocalExitFromIterator return
end end
next if !found next if !found
@ -735,7 +735,7 @@ curl http://localhost/api/v1/getting_started -v -u #{login}:#{password}
render json: { render json: {
result: 'ok', result: 'ok',
} }
return # rubocop:disable Lint/NonLocalExitFromIterator return
} }
# check delivery for 30 sek. # check delivery for 30 sek.

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module ApplicationModel::ActivityStreamBase module ApplicationModel::ActivityStreamBase
=begin =begin

View file

@ -1,5 +1,4 @@
#36 Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ #36 Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module ApplicationModel::Assets module ApplicationModel::Assets
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
class ApplicationModel::BackgroundJobSearchIndex class ApplicationModel::BackgroundJobSearchIndex
def initialize(object, o_id) def initialize(object, o_id)
@object = object @object = object

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module ApplicationModel::HistoryLogBase module ApplicationModel::HistoryLogBase
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module ApplicationModel::SearchIndexBase module ApplicationModel::SearchIndexBase
=begin =begin

View file

@ -1,6 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
class Store::Provider::File class Store::Provider::File
# write file to fs # write file to fs

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::ActivityStreamLog module Ticket::ActivityStreamLog
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
class Ticket::Article < ApplicationModel class Ticket::Article < ApplicationModel
load 'ticket/article/assets.rb' load 'ticket/article/assets.rb'
include Ticket::Article::Assets include Ticket::Article::Assets

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::Article::ActivityStreamLog module Ticket::Article::ActivityStreamLog
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::Assets module Ticket::Assets
=begin =begin

View file

@ -1,4 +1,3 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
class Ticket::Counter < ApplicationModel class Ticket::Counter < ApplicationModel
end end

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::Escalation module Ticket::Escalation
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::HistoryLog module Ticket::HistoryLog
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::Number::Date module Ticket::Number::Date
module_function module_function

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::Overviews module Ticket::Overviews
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::Permission module Ticket::Permission
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
class Ticket::Priority < ApplicationModel class Ticket::Priority < ApplicationModel
self.table_name = 'ticket_priorities' self.table_name = 'ticket_priorities'
validates :name, presence: true validates :name, presence: true

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::ScreenOptions module Ticket::ScreenOptions
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::Search module Ticket::Search
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::SearchIndex module Ticket::SearchIndex
=begin =begin

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
class Ticket::State < ApplicationModel class Ticket::State < ApplicationModel
belongs_to :state_type, class_name: 'Ticket::StateType' belongs_to :state_type, class_name: 'Ticket::StateType'
validates :name, presence: true validates :name, presence: true

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
class Ticket::StateType < ApplicationModel class Ticket::StateType < ApplicationModel
has_many :states, class_name: 'Ticket::State' has_many :states, class_name: 'Ticket::State'
validates :name, presence: true validates :name, presence: true

View file

@ -1,5 +1,4 @@
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/ # Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
# rubocop:disable ClassAndModuleChildren
module Ticket::Subject module Ticket::Subject
=begin =begin

View file

@ -1,5 +1,4 @@
# encoding: utf-8 # encoding: utf-8
# rubocop:disable UselessAssignment
require 'integration_test_helper' require 'integration_test_helper'
class ElasticsearchTest < ActiveSupport::TestCase class ElasticsearchTest < ActiveSupport::TestCase

View file

@ -1,5 +1,4 @@
# encoding: utf-8 # encoding: utf-8
# rubocop:disable UselessAssignment
require 'integration_test_helper' require 'integration_test_helper'
class TwitterTest < ActiveSupport::TestCase class TwitterTest < ActiveSupport::TestCase

View file

@ -1,5 +1,4 @@
ENV['RAILS_ENV'] = 'test' ENV['RAILS_ENV'] = 'test'
# rubocop:disable ClassAndModuleChildren
require File.expand_path('../../config/environment', __FILE__) require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'
require 'cache' require 'cache'

View file

@ -1,5 +1,4 @@
ENV['RAILS_ENV'] = 'test' ENV['RAILS_ENV'] = 'test'
# rubocop:disable ClassAndModuleChildren
require File.expand_path('../../config/environment', __FILE__) require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help' require 'rails/test_help'
require 'cache' require 'cache'

View file

@ -1,5 +1,4 @@
# encoding: utf-8 # encoding: utf-8
# rubocop:disable PerceivedComplexity, CyclomaticComplexity
require 'test_helper' require 'test_helper'
class HistoryTest < ActiveSupport::TestCase class HistoryTest < ActiveSupport::TestCase

View file

@ -1,5 +1,4 @@
# encoding: utf-8 # encoding: utf-8
# rubocop:disable UselessAssignment
require 'test_helper' require 'test_helper'
class RestTest < ActiveSupport::TestCase class RestTest < ActiveSupport::TestCase

View file

@ -1,5 +1,4 @@
# encoding: utf-8 # encoding: utf-8
# rubocop:disable UselessAssignment
require 'test_helper' require 'test_helper'
class SessionBasicTest < ActiveSupport::TestCase class SessionBasicTest < ActiveSupport::TestCase

View file

@ -1,5 +1,4 @@
# encoding: utf-8 # encoding: utf-8
# rubocop:disable UselessAssignment
require 'test_helper' require 'test_helper'
class SessionBasicTicketTest < ActiveSupport::TestCase class SessionBasicTicketTest < ActiveSupport::TestCase