Skip to content

fix(rubocop): Style warnings #828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions script/alphabetize
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require 'open-uri'
require 'json'
require 'yaml'

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

files.each do |file|
contents = File.open(file).read
Expand All @@ -23,7 +23,7 @@ files.each do |file|
end

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

File.open(file, 'w') { |f| f.write(formatted_output) }
end
2 changes: 1 addition & 1 deletion script/fetch-cfa
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module CFA
end

def logger
@logger ||= Logger.new(STDOUT)
@logger ||= Logger.new($stdout)
end

private
Expand Down