mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
This commit introduces REUSE compliance by annotating all files with SPDX information and placing the reused licences in the LICENSES folder. We additionally removed the docheader tool which is made obsolete by this change. The main LICENSE and copyright text of the project is now not under my personal name anymore, and it belongs to "The Respect Project Contributors" instead. This change restores author names to several files, giving the appropriate attribution for contributions.
48 lines
1.8 KiB
PHP
Executable file
48 lines
1.8 KiB
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/*
|
|
* SPDX-License-Identifier: MIT
|
|
* SPDX-FileCopyrightText: (c) Respect Project Contributors
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use Respect\Dev\Commands\CreateMixinCommand;
|
|
use Respect\Dev\Commands\DocsLintCommand;
|
|
use Respect\Dev\Commands\SmokeTestsCheckCompleteCommand;
|
|
use Respect\Dev\Commands\UpdateDomainSuffixesCommand;
|
|
use Respect\Dev\Commands\UpdateDomainToplevelCommand;
|
|
use Respect\Dev\Commands\UpdatePostalCodesCommand;
|
|
use Respect\Dev\Markdown\CompositeLinter;
|
|
use Respect\Dev\Markdown\Differ as MarkdownDiffer;
|
|
use Respect\Dev\Markdown\Linters\AssertionMessageLinter;
|
|
use Respect\Dev\Markdown\Linters\ValidatorHeaderLinter;
|
|
use Respect\Dev\Markdown\Linters\ValidatorIndexLinter;
|
|
use Respect\Dev\Markdown\Linters\ValidatorRelatedLinter;
|
|
use Respect\Dev\Markdown\Linters\ValidatorTemplatesLinter;
|
|
use SebastianBergmann\Diff\Differ;
|
|
use SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder;
|
|
use Symfony\Component\Console\Application;
|
|
|
|
return (static function () {
|
|
$differ = new MarkdownDiffer(new Differ(new UnifiedDiffOutputBuilder('', addLineNumbers: true)));
|
|
|
|
$application = new Application('Respect/Validation', '3.0');
|
|
$application->addCommand(new CreateMixinCommand());
|
|
$application->addCommand(new DocsLintCommand($differ, new CompositeLinter(
|
|
new AssertionMessageLinter(),
|
|
new ValidatorHeaderLinter(),
|
|
new ValidatorIndexLinter(),
|
|
new ValidatorRelatedLinter(),
|
|
new ValidatorTemplatesLinter(),
|
|
)));
|
|
$application->addCommand(new UpdateDomainSuffixesCommand());
|
|
$application->addCommand(new UpdateDomainToplevelCommand());
|
|
$application->addCommand(new UpdatePostalCodesCommand());
|
|
$application->addCommand(new SmokeTestsCheckCompleteCommand());
|
|
|
|
return $application->run();
|
|
})();
|