Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 726 Bytes

ExtraCommas.md

File metadata and controls

23 lines (15 loc) · 726 Bytes

Commas without a parameter at the end of a method call (ExtraCommas)

Description

Do not include a comma at the end of a method call without specifying a parameter. It is difficult to understand and does not carry important information.
Not required parameters under the principle of Occam's Razor "Do not multiply entities without need", since the "hanging" comma is not very informative.

Bad:

Result = Action (P1, P2 ,,);

Good:

Result = Action (P1, P2);

Sources