Skip to content

Commit

Permalink
AF Style/SpecialGlobalVars OC: 91
Browse files Browse the repository at this point in the history
  • Loading branch information
mxygem committed Jul 25, 2018
1 parent 51cd312 commit e942929
Show file tree
Hide file tree
Showing 91 changed files with 90 additions and 97 deletions.
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Expand Up @@ -222,13 +222,6 @@ Style/MultilineTernaryOperator:
Exclude:
- 'lib/cucumber/formatter/console.rb'

# Offense count: 91
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: use_perl_names, use_english_names
Style/SpecialGlobalVars:
Enabled: false

# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -2,7 +2,7 @@ require 'rubygems'
require 'bundler'
Bundler::GemHelper.install_tasks

$:.unshift(File.dirname(__FILE__) + '/lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/lib')
Dir['gem_tasks/**/*.rake'].each { |rake| load rake }

require 'rubocop/rake_task'
Expand Down
2 changes: 1 addition & 1 deletion bin/cucumber
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
file_name = File.dirname(__FILE__) + '/../lib'
$:.unshift(file_name) unless $:.include?(file_name)
$LOAD_PATH.unshift(file_name) unless $LOAD_PATH.include?(file_name)

require 'simplecov_setup'
require 'cucumber/rspec/disable_option_parser'
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/Rakefile
Expand Up @@ -28,5 +28,5 @@ def examples_working?(lang)
end

def rake(args)
ruby($0, args)
ruby($PROGRAM_NAME, args)
end
2 changes: 1 addition & 1 deletion examples/i18n/ar/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/bg/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/bg/features/support/env.rb
Expand Up @@ -5,5 +5,5 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'
2 changes: 1 addition & 1 deletion examples/i18n/ca/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculadora'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/cs/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/da/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'lommeregner'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/de/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/el/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/en-lol/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new
2 changes: 1 addition & 1 deletion examples/i18n/en-lol/features/support/env.rb
Expand Up @@ -5,6 +5,6 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'basket'
require 'belly'
2 changes: 1 addition & 1 deletion examples/i18n/en/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/eo/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/es/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculador'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/et/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'kalkulaator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/fi/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/fi/features/step_definitions/laskin_steps.rb
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'laskin'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/fr/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/fr/features/support/env.rb
Expand Up @@ -5,5 +5,5 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculatrice'
2 changes: 1 addition & 1 deletion examples/i18n/he/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/hi/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/ht/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'kalkilatris'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/hu/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/id/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/it/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calcolatrice'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/ja/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/ja/features/support/env.rb
Expand Up @@ -5,5 +5,5 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'
2 changes: 1 addition & 1 deletion examples/i18n/ko/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/lt/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/lv/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down
Expand Up @@ -5,7 +5,7 @@
end

require 'cucumber/formatter/unicode'
$:.unshift(File.dirname(__FILE__) + '/../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
require 'calculator'

Before do
Expand Down
2 changes: 1 addition & 1 deletion examples/i18n/no/Rakefile
@@ -1,4 +1,4 @@
$:.unshift(File.dirname(__FILE__) + '/../../../lib')
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../../lib')
require 'cucumber/rake/task'

Cucumber::Rake::Task.new do |t|
Expand Down

0 comments on commit e942929

Please sign in to comment.