Skip to content

Commit

Permalink
Update docs for TrailingCommaInArguments cop
Browse files Browse the repository at this point in the history
The existing documentation for the `no_comma` option does not clearly
indicate that the cop requires that there is no comma present.
  • Loading branch information
geshwho authored and bbatsov committed Apr 13, 2020
1 parent 2b6330a commit ade0ab0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/rubocop/cop/style/trailing_comma_in_arguments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module Style
# for all parenthesized method calls with arguments.
# - `comma`: Requires a comma after the last argument, but only for
# parenthesized method calls where each argument is on its own line.
# - `no_comma`: Does not requires a comma after the last argument.
# - `no_comma`: Requires that there is no comma after the last
# argument.
#
# @example EnforcedStyleForMultiline: consistent_comma
# # bad
Expand Down
3 changes: 2 additions & 1 deletion manual/cops_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -7175,7 +7175,8 @@ The supported styles are:
for all parenthesized method calls with arguments.
- `comma`: Requires a comma after the last argument, but only for
parenthesized method calls where each argument is on its own line.
- `no_comma`: Does not requires a comma after the last argument.
- `no_comma`: Requires that there is no comma after the last
argument.
### Examples
Expand Down

0 comments on commit ade0ab0

Please sign in to comment.