lib/rubocop/rspec/config_formatter.rb in rubocop-rspec-2.0.0 vs lib/rubocop/rspec/config_formatter.rb in rubocop-rspec-2.0.1
- old
+ new
@@ -13,10 +13,12 @@
@config = config
@descriptions = descriptions
end
def dump
- YAML.dump(unified_config).gsub(EXTENSION_ROOT_DEPARTMENT, "\n\\1")
+ YAML.dump(unified_config)
+ .gsub(EXTENSION_ROOT_DEPARTMENT, "\n\\1")
+ .gsub(/^(\s+)- /, '\1 - ')
end
private
def unified_config