Skip to content

Commit f688c4d

Browse files
committed
Fix indentation in generated YAML
1 parent 7864ecc commit f688c4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rubocop/rspec/config_formatter.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ def initialize(config, descriptions)
1515
end
1616

1717
def dump
18-
YAML.dump(unified_config).gsub(EXTENSION_ROOT_DEPARTMENT, "\n\\1")
18+
YAML.dump(unified_config)
19+
.gsub(EXTENSION_ROOT_DEPARTMENT, "\n\\1")
20+
.gsub(/^(\s+)- /, '\1 - ')
1921
end
2022

2123
private

0 commit comments

Comments
 (0)