Reduce max_consecutive_blank_lines to 1
commit3e8a2400f7333787cd60499ee2d506b2ef3dd37c
authorJake Bailey <jakebailey@fb.com>
Wed, 14 Sep 2022 04:22:26 +0000 (13 21:22 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 14 Sep 2022 04:22:26 +0000 (13 21:22 -0700)
tree4475d836973e5e38c484644cdb86b976dcc472c1
parent58a3d73cbca795988739c94c10a016aa895f22cf
Reduce max_consecutive_blank_lines to 1

Summary: hackfmt has allowed two blank lines in a row ever since its original prototype. This might be because eshrews-zz figured multiple blank lines were occasionally useful for grouping methods, or maybe he borrowed the behavior from dartfmt. Whatever the reason, we've had requests that we reduce this limit down to 1, so do so.

Reviewed By: ravibhoraskar, bhamodi

Differential Revision: D39114707

fbshipit-source-id: 0279df8c8d68a9a2fabcaf2c04ebe6573d59897a
hphp/hack/src/hackfmt/hack_format.ml
hphp/hack/test/hackfmt/tests/comment_indentation.php.exp
hphp/hack/test/hackfmt/tests/concat_operator.php.exp
hphp/hack/test/hackfmt/tests/end_of_file_invisible_trivia_3.php.exp
hphp/hack/test/hackfmt/tests/end_of_file_invisible_trivia_4.php.exp
hphp/hack/test/hackfmt/tests/ignore_format_1.php.exp
hphp/hack/test/hackfmt/tests/readonly.php.exp
hphp/hack/test/hackfmt/tests/xhp.php.exp
hphp/hack/test/hackfmt/tests/xhp_children_declaration.php.exp