Skip to content

Commit

Permalink
[ci] Autocorrect Style/TrailingBlankLines offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Sep 7, 2015
1 parent 32a8b1b commit ab019cd
Show file tree
Hide file tree
Showing 61 changed files with 4 additions and 77 deletions.
10 changes: 2 additions & 8 deletions src/api/.rubocop_todo.yml
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2015-09-06 16:58:52 +0200 using RuboCop version 0.33.0.
# on 2015-09-06 17:01:23 +0200 using RuboCop version 0.33.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -524,7 +524,7 @@ Style/EmptyLinesAroundModuleBody:
Style/EmptyLiteral:
Enabled: false

# Offense count: 156
# Offense count: 153
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Style/ExtraSpacing:
Expand Down Expand Up @@ -999,12 +999,6 @@ Style/Tab:
- 'test/unit/code_quality_test.rb'
- 'test/unit/package_test.rb'

# Offense count: 60
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
Style/TrailingBlankLines:
Enabled: false

# Offense count: 47
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
Expand Down
2 changes: 1 addition & 1 deletion src/api/Capfile
@@ -1,3 +1,3 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
load 'config/deploy'
1 change: 0 additions & 1 deletion src/api/Gemfile
Expand Up @@ -139,4 +139,3 @@ group :assets do
# assets for font-awesome vector icons
gem "font-awesome-rails"
end

2 changes: 0 additions & 2 deletions src/api/app/helpers/webui/monitor_helper.rb
Expand Up @@ -7,5 +7,3 @@ def self.print_statistics_array array
end

end


1 change: 0 additions & 1 deletion src/api/app/jobs/project_create_auto_cleanup_requests.rb
Expand Up @@ -63,4 +63,3 @@ def autoclean_project(prj)
end

end

1 change: 0 additions & 1 deletion src/api/app/jobs/project_log_rotate.rb
Expand Up @@ -27,4 +27,3 @@ def perform
true
end
end

1 change: 0 additions & 1 deletion src/api/app/jobs/update_package_meta_job.rb
Expand Up @@ -29,4 +29,3 @@ def perform
end

end

1 change: 0 additions & 1 deletion src/api/app/mixins/webui/load_buildresults.rb
Expand Up @@ -45,4 +45,3 @@ def fill_status_cache
end
end
end

1 change: 0 additions & 1 deletion src/api/app/models/attrib_namespace_modifiable_by.rb
Expand Up @@ -3,4 +3,3 @@ class AttribNamespaceModifiableBy < ActiveRecord::Base
belongs_to :user
belongs_to :group
end

1 change: 0 additions & 1 deletion src/api/app/models/blacklist_tag.rb
@@ -1,3 +1,2 @@
class BlacklistTag < ActiveRecord::Base
end

1 change: 0 additions & 1 deletion src/api/app/models/event/all.rb
Expand Up @@ -6,4 +6,3 @@
require_relative 'build'
require_relative 'factory'
require_relative 'packtrack'

1 change: 0 additions & 1 deletion src/api/app/models/event/comment.rb
Expand Up @@ -67,4 +67,3 @@ def set_payload(attribs, keys)
super(attribs, keys)
end
end

1 change: 0 additions & 1 deletion src/api/app/models/event/packtrack.rb
Expand Up @@ -6,4 +6,3 @@ class Event::Packtrack < Event::Base
# for package tracking in first place
create_jobs :update_released_binaries
end

1 change: 0 additions & 1 deletion src/api/app/models/event_subscription.rb
Expand Up @@ -66,4 +66,3 @@ def self.filter_relationships(rel, obj)
end

end

1 change: 0 additions & 1 deletion src/api/app/models/history.rb
Expand Up @@ -21,4 +21,3 @@ def self.find_by_review(review)
end

end

1 change: 0 additions & 1 deletion src/api/app/models/incident_updateinfo_counter_value.rb
Expand Up @@ -16,4 +16,3 @@ def self.find_or_create(time, updateinfo_counter, project)
end

end

1 change: 0 additions & 1 deletion src/api/app/models/issue_tracker.rb
Expand Up @@ -342,4 +342,3 @@ def end_element(name)
@@myIssue = nil
end
end

1 change: 0 additions & 1 deletion src/api/app/models/package_kind.rb
Expand Up @@ -2,4 +2,3 @@
class PackageKind < ActiveRecord::Base
belongs_to :package
end

1 change: 0 additions & 1 deletion src/api/app/models/status_history_rescaler.rb
Expand Up @@ -63,4 +63,3 @@ def cleanup(key, offset, maxtimeoffset)
end
end
end

1 change: 0 additions & 1 deletion src/api/app/models/tag.rb
Expand Up @@ -43,4 +43,3 @@ def not_blacklisted


end

1 change: 0 additions & 1 deletion src/api/app/models/updateinfo.rb
Expand Up @@ -4,4 +4,3 @@ class Updateinfo < ActiveRecord::Base
belongs_to :repository, foreign_key: :repository_id

end

1 change: 0 additions & 1 deletion src/api/app/models/updateinfo_counter.rb
Expand Up @@ -26,4 +26,3 @@ def increase
end

end

1 change: 0 additions & 1 deletion src/api/config/boot.rb
Expand Up @@ -4,4 +4,3 @@
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])

2 changes: 0 additions & 2 deletions src/api/config/deploy.rb
Expand Up @@ -131,5 +131,3 @@
end

end


1 change: 0 additions & 1 deletion src/api/config/environment.rb
Expand Up @@ -28,4 +28,3 @@

# Initialize the rails application
OBSApi::Application.initialize!

1 change: 0 additions & 1 deletion src/api/config/environments/production.rb
Expand Up @@ -60,4 +60,3 @@
#require 'memory_dumper'
# dumps the full heap after next request on SIGURG
#config.middleware.insert(0, MemoryDumper)

1 change: 0 additions & 1 deletion src/api/config/initializers/02_apiversion.rb
Expand Up @@ -9,4 +9,3 @@
CONFIG['version'] = api_version
end
end

1 change: 0 additions & 1 deletion src/api/config/initializers/fast_json.rb
Expand Up @@ -7,4 +7,3 @@
self.content_type ||= Mime::JSON
json
end

1 change: 0 additions & 1 deletion src/api/config/initializers/logging.rb
Expand Up @@ -37,4 +37,3 @@ def call(severity, timestamp, progname, msg)
include APIInstrumentation::ControllerRuntime
Rails.logger.formatter.extend(TimestampFormatter)
end

1 change: 0 additions & 1 deletion src/api/config/initializers/nokogiri_builder.rb
Expand Up @@ -20,4 +20,3 @@ def call(template)
end

ActionView::Template.register_template_handler :builder, ActionView::Template::Handlers::NokogiriBuilder.new

1 change: 0 additions & 1 deletion src/api/config/initializers/wrap_parameters.rb
Expand Up @@ -74,4 +74,3 @@ def parse_parameters(env)
end

OBSApi::Application.config.middleware.use MyParamsParser

1 change: 0 additions & 1 deletion src/api/db/attribute_descriptions.rb
Expand Up @@ -33,4 +33,3 @@ def update_all_attrib_type_descriptions
at.save
end
end

Expand Up @@ -30,4 +30,3 @@ def self.down
end
end
end

Expand Up @@ -11,4 +11,3 @@ def self.down
end

end

1 change: 0 additions & 1 deletion src/api/db/migrate/20121112104534_fix_projects_charset.rb
Expand Up @@ -22,4 +22,3 @@ def down
raise ActiveRecord::IrreversibleMigration
end
end

1 change: 0 additions & 1 deletion src/api/db/migrate/20130702203665_write_configuration.rb
Expand Up @@ -11,4 +11,3 @@ def self.down
end

end

1 change: 0 additions & 1 deletion src/api/lib/api_exception.rb
Expand Up @@ -84,4 +84,3 @@ class ExpandError < APIException;
class ProjectNotLocked < APIException
setup 'not_locked'
end

1 change: 0 additions & 1 deletion src/api/lib/engines/base.rb
Expand Up @@ -16,4 +16,3 @@ def self.load_engines
end
end
end

3 changes: 0 additions & 3 deletions src/api/lib/memory_dumper.rb
Expand Up @@ -29,6 +29,3 @@ def call(env)
ret
end
end



1 change: 0 additions & 1 deletion src/api/lib/tasks/cleanup_sessions.rake
Expand Up @@ -11,4 +11,3 @@ namespace :db do
end
end
end

2 changes: 0 additions & 2 deletions src/api/lib/tasks/coverage.rake
Expand Up @@ -20,5 +20,3 @@ namespace :test do
end

end


1 change: 0 additions & 1 deletion src/api/lib/tasks/delayed_job.rake
Expand Up @@ -21,4 +21,3 @@ namespace :jobs do
end
}
end

1 change: 0 additions & 1 deletion src/api/lib/tasks/test_webui.rake
Expand Up @@ -20,4 +20,3 @@ Rake::TestTask.new do |t|
t.test_files = filelist
t.name = 'test:webui'
end

2 changes: 0 additions & 2 deletions src/api/lib/workers/accept_requests.rb
Expand Up @@ -20,5 +20,3 @@ def perform
end

end


2 changes: 0 additions & 2 deletions src/api/lib/workers/import_requests.rb
Expand Up @@ -24,5 +24,3 @@ def perform
end

end


2 changes: 0 additions & 2 deletions src/api/lib/workers/update_issues.rb
Expand Up @@ -15,5 +15,3 @@ def perform
end

end


2 changes: 0 additions & 2 deletions src/api/lib/workers/write_configuration.rb
Expand Up @@ -9,5 +9,3 @@ def perform
end

end


1 change: 0 additions & 1 deletion src/api/test/functional/aaa_pre_consistency_test.rb
Expand Up @@ -7,4 +7,3 @@ def test_resubmit_fixtures
resubmit_all_fixtures
end
end

1 change: 0 additions & 1 deletion src/api/test/functional/branch_publish_flag_test.rb
Expand Up @@ -88,4 +88,3 @@ def test_branching
branch_helper(false, false)
end
end

1 change: 0 additions & 1 deletion src/api/test/functional/cross_build_test.rb
Expand Up @@ -30,4 +30,3 @@ def test_setup_project
end

end

1 change: 0 additions & 1 deletion src/api/test/functional/status_controller_test.rb
Expand Up @@ -86,4 +86,3 @@ def test_history
assert_not_nil assigns(@samples)
end
end

1 change: 0 additions & 1 deletion src/api/test/functional/webui/add_repo_test.rb
Expand Up @@ -33,4 +33,3 @@ def test_add_default
end

end

1 change: 0 additions & 1 deletion src/api/test/functional/webui/request_controller_test.rb
Expand Up @@ -346,4 +346,3 @@ def test_comment_event
end

end

1 change: 0 additions & 1 deletion src/api/test/functional/webui/signup_test.rb
Expand Up @@ -34,4 +34,3 @@ def test_signup_deny
page.must_have_content "Sign Up for an Open Build Service account"
end
end

1 change: 0 additions & 1 deletion src/api/test/functional/webui/users_test.rb
Expand Up @@ -168,4 +168,3 @@ def test_add_and_edit_project_users
end

end

1 change: 0 additions & 1 deletion src/api/test/integration/last_events_test.rb
Expand Up @@ -37,4 +37,3 @@ def setup
end

end

2 changes: 1 addition & 1 deletion src/api/test/policies/attrib_policy_test.rb
Expand Up @@ -60,4 +60,4 @@ class AttribPolicyTest < ActiveSupport::TestCase
assert_not policy.create?, "#{users(:Iggy)} shouldn't be able to CURD attrib_namespace"
end

end
end
1 change: 0 additions & 1 deletion src/api/test/test_helper.rb
Expand Up @@ -560,4 +560,3 @@ def teardown
Rails.cache.clear
end
end

1 change: 0 additions & 1 deletion src/api/test/unit/product_test.rb
Expand Up @@ -19,4 +19,3 @@ def test_indexed_fixture
end

end

1 change: 0 additions & 1 deletion src/api/test/unit/project_test.rb
Expand Up @@ -562,4 +562,3 @@ def test_cycle_handling
assert_not Project.exists_by_name('HiddenRemoteInstance')
end
end

1 change: 0 additions & 1 deletion src/api/test/unit/publish_flag_test.rb
Expand Up @@ -187,4 +187,3 @@ def test_position


end

0 comments on commit ab019cd

Please sign in to comment.