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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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