Use this rule to control the number of spaces before and after commas (,).

Parameters

max-spaces-before
Defines the maximal number of spaces allowed before commas (use -1 to disable).
min-spaces-after
Defines the minimal number of spaces allowed after commas.
max-spaces-after
Defines the maximal number of spaces allowed after commas (use -1 to disable).

Examples

With max-spaces-before = 0 the following code snippet would PASS:

    strange var:
      [10, 20, 30, {x: 1, y: 2}]

the following code snippet would FAIL:

    strange var:
      [10, 20 , 30, {x: 1, y: 2}]

With max-spaces-before = 2 the following code snippet would PASS:

    strange var:
      [10,
       20   , 30
       ,   {x: 1, y: 2}]

With min-spaces-after = 1 and max-spaces-after = 1 the following code snippet would PASS:

    strange var:
      [10, 20,30, {x: 1, y: 2}]

the following code snippet would FAIL:

    strange var:
      [10, 20,30,   {x: 1,   y: 2}]

With min-spaces-after = 1 and max-spaces-after = 3 the following code snippet would PASS:

    strange var:
      [10, 20,  30,  {x: 1,   y: 2}]

With min-spaces-after = 0 and max-spaces-after = 1 the following code snippet would PASS:

    strange var:
      [10, 20,30, {x: 1, y: 2}]