Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Issue 2181743002: Always split collections and argument lists with trailing commas. (Closed)

Created:
4 years, 5 months ago by Bob Nystrom
Modified:
4 years, 4 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dart_style.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Always split collections and argument lists with trailing commas. This preserves the users intention that a trailing comma means, "make this easy to edit each element on its own line". It also means argument lists with trailing commas are formatted similar to collections: fn( arg, arg, ); R=nweiz@google.com Committed: https://github.com/dart-lang/dart_style/commit/ad69e8a8a31776a33bbcb0cd9bb9c0afeeede09e

Patch Set 1 #

Total comments: 4

Patch Set 2 : Revise. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -36 lines) Patch
M CHANGELOG.md View 1 1 chunk +1 line, -0 lines 0 comments Download
M lib/src/source_visitor.dart View 1 4 chunks +25 lines, -3 lines 0 comments Download
M test/io_test.dart View 1 6 chunks +27 lines, -10 lines 0 comments Download
M test/regression/0200/0223.stmt View 1 chunk +3 lines, -1 line 0 comments Download
M test/regression/other/pub.stmt View 2 chunks +6 lines, -2 lines 0 comments Download
M test/splitting/arguments.stmt View 1 chunk +11 lines, -7 lines 0 comments Download
M test/splitting/lists.stmt View 1 chunk +5 lines, -3 lines 0 comments Download
M test/splitting/maps.stmt View 1 chunk +5 lines, -3 lines 0 comments Download
M test/whitespace/expressions.stmt View 1 chunk +11 lines, -3 lines 0 comments Download
M tool/node_format_service.dart View 1 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Bob Nystrom
4 years, 5 months ago (2016-07-25 17:55:59 UTC) #2
nweiz
lgtm https://codereview.chromium.org/2181743002/diff/1/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/2181743002/diff/1/CHANGELOG.md#newcode11 CHANGELOG.md:11: * Always split collection literals that contain a ...
4 years, 5 months ago (2016-07-25 22:29:06 UTC) #3
Bob Nystrom
https://codereview.chromium.org/2181743002/diff/1/CHANGELOG.md File CHANGELOG.md (right): https://codereview.chromium.org/2181743002/diff/1/CHANGELOG.md#newcode11 CHANGELOG.md:11: * Always split collection literals that contain a trailing ...
4 years, 4 months ago (2016-07-26 21:22:08 UTC) #4
Bob Nystrom
4 years, 4 months ago (2016-07-26 21:33:03 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
ad69e8a8a31776a33bbcb0cd9bb9c0afeeede09e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698