#!/usr/bin/env php
<?php

declare(strict_types=1);

/**
 * This file is part of the guanguans/ai-commit.
 *
 * (c) guanguans <ityaozm@gmail.com>
 *
 * This source file is subject to the MIT license that is bundled.
 */
require __DIR__.'/vendor/autoload.php';

collect(glob('README-*.md'))->each(static function (string $file): void {
    if (count(file($file)) !== count(file('README.md'))) {
        echo "The file [$file] has a different number of lines than [README.md]\n";
        exit(1);
    }
});

exit(0);
