Skip to content

Commit 4e4602e

Browse files
authored
Merge pull request #828 from nschonni/robocop-auto-correct
fix(rubocop): Style warnings
2 parents 7471f99 + 6953629 commit 4e4602e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

script/alphabetize

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require 'open-uri'
77
require 'json'
88
require 'yaml'
99

10-
files = Dir[File.expand_path('../_data/', File.dirname(__FILE__)) + '/*.yml']
10+
files = Dir["#{File.expand_path('../_data/', File.dirname(__FILE__))}/*.yml"]
1111

1212
files.each do |file|
1313
contents = File.open(file).read
@@ -23,7 +23,7 @@ files.each do |file|
2323
end
2424

2525
# Add extra line break between groups, indent arrays, and strip header
26-
formatted_output = comment + output.to_yaml.gsub(/^(.+?):$/, "\n" + '\1:').gsub(/^- /, ' - ').gsub(/\A---\n/m, '')
26+
formatted_output = comment + output.to_yaml.gsub(/^(.+?):$/, "\n\\1:").gsub(/^- /, ' - ').gsub(/\A---\n/m, '')
2727

2828
File.open(file, 'w') { |f| f.write(formatted_output) }
2929
end

script/fetch-cfa

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module CFA
6363
end
6464

6565
def logger
66-
@logger ||= Logger.new(STDOUT)
66+
@logger ||= Logger.new($stdout)
6767
end
6868

6969
private

0 commit comments

Comments
 (0)