Skip to content

Commit cb7a659

Browse files
committed
guidelines: composer: exclude empty guidelines
1 parent 64baf20 commit cb7a659

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Install/GuidelineComposer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function compose(): string
5151
public static function composeGuidelines(Collection $guidelines): string
5252
{
5353
return trim($guidelines
54+
->filter(fn ($content) => !empty(trim($content)))
5455
->map(fn ($content, $key) => "\n=== {$key} rules ===\n\n{$content}")
5556
->join("\n\n"));
5657
}

0 commit comments

Comments
 (0)