Skip to content

Commit

Permalink
Fix indentation in generated YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Nov 9, 2020
1 parent 651d9fd commit be21e3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rubocop/capybara/config_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def initialize(config, 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
Expand Down

0 comments on commit be21e3d

Please sign in to comment.