From c6fd8accfb3a5907f29bec94d1c69bd58812e642 Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Fri, 12 Mar 2021 21:51:56 -0500 Subject: [PATCH] Allow method chaining indentation --- tests/check_coding_standards.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/check_coding_standards.sh b/tests/check_coding_standards.sh index 327d380..9022bbf 100755 --- a/tests/check_coding_standards.sh +++ b/tests/check_coding_standards.sh @@ -37,6 +37,12 @@ find_invalid_indentation() { if (substr($trimmed_line, 0, 1) === '*') { continue; } + + // Allow method chaining. + if (substr($trimmed_line, 0, 2) === '->') { + continue; + } + $add_count = 4 - $remainder; $remove_count = $remainder; echo 'Invalid indentation found in ' .