Skip to content

Commit

Permalink
Fix Rubocop Layout/EmptyLineAfterMagicComment
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver authored and ekohl committed Aug 6, 2023
1 parent cc47e39 commit fa073df
Show file tree
Hide file tree
Showing 58 changed files with 57 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,5 @@ Lint/MissingSuper:
Layout/LineLength:
Max: 197

Layout/EmptyLineAfterMagicComment:
Enabled: false

Style/SlicingWithRange:
Enabled: false
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

source 'https://rubygems.org'

gemspec :name => 'smart_proxy_dynflow'
Expand Down
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'rake'
require 'rake/testtask'
require 'rubocop/rake_task'
Expand Down
1 change: 1 addition & 0 deletions bundler.d/dynflow.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# frozen_string_literal: true

gem 'smart_proxy_dynflow'
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'dynflow'

require 'smart_proxy_dynflow/task_launcher_registry'
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module Action
end
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action/batch.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow::Action
class Batch < ::Dynflow::Action
include Dynflow::Action::WithSubPlans
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action/batch_callback.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow::Action
class BatchCallback < ::Dynflow::Action
def plan(input_hash, results)
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action/batch_runner.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/action/runner'

module Proxy::Dynflow::Action
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action/external_polling.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow::Action
module WithExternalPolling
Poll = Algebrick.atom
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action/output_collector.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow::Action
class OutputCollector < ::Proxy::Dynflow::Action::Runner
def init_run
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action/runner.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/action/shareable'
require 'smart_proxy_dynflow/action/external_polling'
module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action/shareable.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow::Action
class Shareable < ::Dynflow::Action
def plan(input)
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/action/single_runner_batch.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow::Action
class SingleRunnerBatch < Batch
include Dynflow::Action::WithPollingSubPlans
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/api.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'sinatra/base'
require 'proxy/helpers'
require 'sinatra/authorization'
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/callback.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'rest-client'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/continuous_output.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
class ContinuousOutput
attr_accessor :raw_outputs
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/core.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'fileutils'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/helpers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/action/external_polling'
require 'smart_proxy_dynflow/action/runner'

Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/http_config.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/api'

map "/dynflow" do
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/io_buffer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy
module Dynflow
# A buffer around an IO object providing buffering and convenience methods
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/log.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'logging'

module Proxy::Dynflow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Actions
module Middleware
class KeepCurrentRequestID < Dynflow::Middleware
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/otp_manager.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'base64'
require 'securerandom'

Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/plugin.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'proxy/log'
require 'proxy/pluggable'
require 'proxy/plugin'
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/process_manager.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/io_buffer'

module Proxy
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/proxy_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy
module Dynflow
class ProxyAdapter < ::Dynflow::LoggerAdapters::Simple
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/runner.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module Runner
end
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/runner/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module Runner
# Runner is an object that is able to initiate some action and
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/runner/command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module Runner
# This module expects to be included into a Runner action, where it can be
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/runner/command_runner.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'io/wait'
require 'pty'
require 'smart_proxy_dynflow/runner/command'
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/runner/dispatcher.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/ticker'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/runner/parent.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module Runner
class Parent < Base
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/runner/process_manager_command.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/process_manager'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/runner/update.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/continuous_output'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/settings.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

# require 'ostruct'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/settings_loader.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module SettingsLoader
def self.settings_registry
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/task_launcher.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module TaskLauncher
end
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/task_launcher/abstract.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module TaskLauncher
class Abstract
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/task_launcher/batch.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module TaskLauncher
class Batch < Abstract
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/task_launcher/group.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'smart_proxy_dynflow/runner'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/task_launcher/single.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
module TaskLauncher
class Single < Abstract
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/task_launcher_registry.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy::Dynflow
class TaskLauncherRegistry
class << self
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/testing.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'dynflow/testing'

unless defined? DYNFLOW_TESTING_LOG_LEVEL
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/ticker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'dynflow'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_dynflow/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

module Proxy
module Dynflow
VERSION = '0.9.0'
Expand Down
1 change: 1 addition & 0 deletions smart_proxy_dynflow.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'smart_proxy_dynflow/version'
Expand Down
1 change: 1 addition & 0 deletions test/api_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'json'
require 'smart_proxy_dynflow/api'
Expand Down
1 change: 1 addition & 0 deletions test/callback_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

module Proxy
Expand Down
1 change: 1 addition & 0 deletions test/dispatcher_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'smart_proxy_dynflow/runner'

Expand Down
1 change: 1 addition & 0 deletions test/helpers_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'ostruct'
require 'test_helper'
require 'smart_proxy_dynflow/otp_manager'
Expand Down
1 change: 1 addition & 0 deletions test/io_buffer_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'smart_proxy_dynflow/io_buffer'
require 'ostruct'
Expand Down
1 change: 1 addition & 0 deletions test/otp_manager_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'smart_proxy_dynflow/otp_manager'

Expand Down
1 change: 1 addition & 0 deletions test/process_manager_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'smart_proxy_dynflow/process_manager'
require 'ostruct'
Expand Down
1 change: 1 addition & 0 deletions test/runner_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'smart_proxy_dynflow/runner'
require 'ostruct'
Expand Down
1 change: 1 addition & 0 deletions test/task_launcher_registry_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'

module Proxy::Dynflow
Expand Down
1 change: 1 addition & 0 deletions test/task_launcher_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'test_helper'
require 'smart_proxy_dynflow/action/batch'
require 'smart_proxy_dynflow/task_launcher'
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true

require 'minitest/autorun'

ENV['RACK_ENV'] = 'test'
Expand Down

0 comments on commit fa073df

Please sign in to comment.