Skip to content

Commit

Permalink
Merge pull request #432 from Shopify/trailing-comma-args
Browse files Browse the repository at this point in the history
Enable TrailingCommaInArguments
  • Loading branch information
nunosilva800 committed Sep 5, 2022
2 parents 3dddb41 + 92a2650 commit ab54c20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ Style/TrailingBodyOnMethodDefinition:
Enabled: false

Style/TrailingCommaInArguments:
Enabled: false
EnforcedStyleForMultiline: consistent_comma

Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Expand Down
2 changes: 1 addition & 1 deletion test/config_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_config_is_unchanged
Rake::Task["config:dump"].invoke(tempfile.path)

diff = Diffy::Diff.new(
original_config, tempfile.path, source: "files", context: 5
original_config, tempfile.path, source: "files", context: 5,
).to_s

error_message = <<~ERROR
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3882,9 +3882,9 @@ Style/TrailingBodyOnModule:
Style/TrailingCommaInArguments:
Description: Checks for trailing comma in argument lists.
StyleGuide: "#no-trailing-params-comma"
Enabled: false
Enabled: true
VersionAdded: '0.36'
EnforcedStyleForMultiline: no_comma
EnforcedStyleForMultiline: consistent_comma
SupportedStylesForMultiline:
- comma
- consistent_comma
Expand Down

0 comments on commit ab54c20

Please sign in to comment.