Skip to content

Commit

Permalink
appease Rubocop: Style/RedundantCurrentDirectoryInPath
Browse files Browse the repository at this point in the history
> Remove the redundant current directory path.
>
> require_relative './opentelemetry/blah/blahblah'
>                   ^^

OK.

    git ls-files \*.gemspec \
      | xargs dirname \
      | while read gem_root; do \
          (cd $gem_root && bundle install && bundle exec rubocop -A); \
        done
  • Loading branch information
robbkidd committed Jul 11, 2023
1 parent 699de79 commit d941f77
Show file tree
Hide file tree
Showing 125 changed files with 166 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/action_pack'
require_relative 'instrumentation/action_pack'
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ module ActionPack
end

require 'opentelemetry-instrumentation-rack'
require_relative './action_pack/instrumentation'
require_relative './action_pack/version'
require_relative 'action_pack/instrumentation'
require_relative 'action_pack/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/action_view'
require_relative 'instrumentation/action_view'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module ActionView
end
end

require_relative './action_view/instrumentation'
require_relative './action_view/version'
require_relative 'action_view/instrumentation'
require_relative 'action_view/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/active_job'
require_relative 'instrumentation/active_job'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module ActiveJob
end
end

require_relative './active_job/instrumentation'
require_relative './active_job/version'
require_relative 'active_job/instrumentation'
require_relative 'active_job/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module Instrumentation
end
end

require_relative './instrumentation/active_model_serializers'
require_relative 'instrumentation/active_model_serializers'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module ActiveModelSerializers
end
end

require_relative './active_model_serializers/instrumentation'
require_relative './active_model_serializers/version'
require_relative 'active_model_serializers/instrumentation'
require_relative 'active_model_serializers/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/active_record'
require_relative 'instrumentation/active_record'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module ActiveRecord
end
end

require_relative './active_record/instrumentation'
require_relative './active_record/version'
require_relative 'active_record/instrumentation'
require_relative 'active_record/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/active_support'
require_relative 'instrumentation/active_support'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module ActiveSupport
end
end

require_relative './active_support/instrumentation'
require_relative './active_support/version'
require_relative 'active_support/instrumentation'
require_relative 'active_support/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation/all'
require_relative 'opentelemetry/instrumentation/all'
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ module All
end
end

require_relative './all/version'
require_relative 'all/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module Instrumentation
end
end

require_relative './instrumentation/aws_sdk'
require_relative 'instrumentation/aws_sdk'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module AwsSdk
end
end

require_relative './aws_sdk/instrumentation'
require_relative './aws_sdk/version'
require_relative 'aws_sdk/instrumentation'
require_relative 'aws_sdk/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
2 changes: 1 addition & 1 deletion instrumentation/bunny/lib/opentelemetry/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/bunny'
require_relative 'instrumentation/bunny'
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ module Bunny
end
end

require_relative './bunny/instrumentation'
require_relative './bunny/version'
require_relative 'bunny/instrumentation'
require_relative 'bunny/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module Instrumentation
end
end

require_relative './instrumentation/concurrent_ruby'
require_relative 'instrumentation/concurrent_ruby'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module ConcurrentRuby
end
end

require_relative './concurrent_ruby/instrumentation'
require_relative './concurrent_ruby/version'
require_relative 'concurrent_ruby/instrumentation'
require_relative 'concurrent_ruby/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
2 changes: 1 addition & 1 deletion instrumentation/dalli/lib/opentelemetry/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module Instrumentation
end
end

require_relative './instrumentation/dalli'
require_relative 'instrumentation/dalli'
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ module Dalli
end
end

require_relative './dalli/instrumentation'
require_relative './dalli/version'
require_relative 'dalli/instrumentation'
require_relative 'dalli/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module Instrumentation
end
end

require_relative './instrumentation/delayed_job'
require_relative 'instrumentation/delayed_job'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module DelayedJob
end
end

require_relative './delayed_job/instrumentation'
require_relative './delayed_job/version'
require_relative 'delayed_job/instrumentation'
require_relative 'delayed_job/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
2 changes: 1 addition & 1 deletion instrumentation/ethon/lib/opentelemetry/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module Instrumentation
end
end

require_relative './instrumentation/ethon'
require_relative 'instrumentation/ethon'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module Ethon
end
end

require_relative './ethon/instrumentation'
require_relative './ethon/version'
require_relative 'ethon/instrumentation'
require_relative 'ethon/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
2 changes: 1 addition & 1 deletion instrumentation/excon/lib/opentelemetry/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module Instrumentation
end
end

require_relative './instrumentation/excon'
require_relative 'instrumentation/excon'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module Excon
end
end

require_relative './excon/instrumentation'
require_relative './excon/version'
require_relative 'excon/instrumentation'
require_relative 'excon/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ module Instrumentation
end
end

require_relative './instrumentation/faraday'
require_relative 'instrumentation/faraday'
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ module Faraday
end
end

require_relative './faraday/instrumentation'
require_relative './faraday/version'
require_relative 'faraday/instrumentation'
require_relative 'faraday/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
2 changes: 1 addition & 1 deletion instrumentation/grape/lib/opentelemetry/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/grape'
require_relative 'instrumentation/grape'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module Grape
end
end

require_relative './grape/instrumentation'
require_relative './grape/version'
require_relative 'grape/instrumentation'
require_relative 'grape/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/graphql'
require_relative 'instrumentation/graphql'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module GraphQL
end
end

require_relative './graphql/instrumentation'
require_relative './graphql/version'
require_relative 'graphql/instrumentation'
require_relative 'graphql/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
2 changes: 1 addition & 1 deletion instrumentation/http/lib/opentelemetry/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/http'
require_relative 'instrumentation/http'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module HTTP
end
end

require_relative './http/instrumentation'
require_relative './http/version'
require_relative 'http/instrumentation'
require_relative 'http/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/http_client'
require_relative 'instrumentation/http_client'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module HttpClient
end
end

require_relative './http_client/instrumentation'
require_relative './http_client/version'
require_relative 'http_client/instrumentation'
require_relative 'http_client/version'
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# SPDX-License-Identifier: Apache-2.0

require_relative './opentelemetry/instrumentation'
require_relative 'opentelemetry/instrumentation'
2 changes: 1 addition & 1 deletion instrumentation/koala/lib/opentelemetry/instrumentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module Instrumentation
end
end

require_relative './instrumentation/koala'
require_relative 'instrumentation/koala'
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ module Koala
end
end

require_relative './koala/instrumentation'
require_relative './koala/version'
require_relative 'koala/instrumentation'
require_relative 'koala/version'
Loading

0 comments on commit d941f77

Please sign in to comment.