mirror of
https://github.com/Respect/Validation.git
synced 2026-03-14 22:35:45 +01:00
Group lint-related commands together
Since we have so many lint-related commands now, it makes sense to group them together to it's easier to spot them.
This commit is contained in:
parent
bd48bdcda4
commit
0190f3e109
6 changed files with 13 additions and 13 deletions
|
|
@ -30,4 +30,4 @@ jobs:
|
|||
run: composer install --prefer-dist
|
||||
|
||||
- name: Lint documentation files
|
||||
run: bin/console docs:lint
|
||||
run: bin/console lint:docs
|
||||
|
|
|
|||
2
.github/workflows/reuse.yml
vendored
2
.github/workflows/reuse.yml
vendored
|
|
@ -37,4 +37,4 @@ jobs:
|
|||
run: reuse lint
|
||||
|
||||
- name: Run SPDX conventions check
|
||||
run: bin/console spdx:lint
|
||||
run: bin/console lint:spdx
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ declare(strict_types=1);
|
|||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
use Respect\Dev\Commands\CreateMixinCommand;
|
||||
use Respect\Dev\Commands\DocsLintCommand;
|
||||
use Respect\Dev\Commands\LintDocsCommand;
|
||||
use Respect\Dev\Commands\SmokeTestsCheckCompleteCommand;
|
||||
use Respect\Dev\Commands\SpdxLintCommand;
|
||||
use Respect\Dev\Commands\LintSpdxCommand;
|
||||
use Respect\Dev\Commands\UpdateDomainSuffixesCommand;
|
||||
use Respect\Dev\Commands\UpdateDomainToplevelCommand;
|
||||
use Respect\Dev\Commands\UpdatePostalCodesCommand;
|
||||
|
|
@ -34,7 +34,7 @@ return (static function () {
|
|||
|
||||
$application = new Application('Respect/Validation', '3.0');
|
||||
$application->addCommand(new CreateMixinCommand());
|
||||
$application->addCommand(new DocsLintCommand($differ, new CompositeLinter(
|
||||
$application->addCommand(new LintDocsCommand($differ, new CompositeLinter(
|
||||
new AssertionMessageLinter(),
|
||||
new ValidatorHeaderLinter(),
|
||||
new ValidatorIndexLinter(),
|
||||
|
|
@ -42,11 +42,11 @@ return (static function () {
|
|||
new ValidatorTemplatesLinter(),
|
||||
new ValidatorChangelogLinter(),
|
||||
)));
|
||||
$application->addCommand(new LintSpdxCommand());
|
||||
$application->addCommand(new UpdateDomainSuffixesCommand());
|
||||
$application->addCommand(new UpdateDomainToplevelCommand());
|
||||
$application->addCommand(new UpdatePostalCodesCommand());
|
||||
$application->addCommand(new SmokeTestsCheckCompleteCommand());
|
||||
$application->addCommand(new SpdxLintCommand());
|
||||
|
||||
return $application->run();
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -76,14 +76,14 @@
|
|||
"scripts": {
|
||||
"bench-profile": "vendor/bin/phpbench xdebug:profile",
|
||||
"bench": "vendor/bin/phpbench run",
|
||||
"docs-fix": "bin/console docs:lint --fix",
|
||||
"docs": "bin/console docs:lint",
|
||||
"docs-fix": "bin/console lint:docs --fix",
|
||||
"docs": "bin/console lint:docs",
|
||||
"pest": "vendor/bin/pest --testsuite=feature --compact",
|
||||
"phpcs": "vendor/bin/phpcs",
|
||||
"phpstan": "vendor/bin/phpstan analyze",
|
||||
"phpunit": "vendor/bin/phpunit --testsuite=unit",
|
||||
"smoke-complete": "bin/console smoke-tests:check-complete",
|
||||
"spdx-lint": "bin/console spdx:lint",
|
||||
"spdx-lint": "bin/console lint:spdx",
|
||||
"qa": [
|
||||
"@spdx-lint",
|
||||
"@phpcs",
|
||||
|
|
|
|||
|
|
@ -24,10 +24,10 @@ use function dirname;
|
|||
use function sprintf;
|
||||
|
||||
#[AsCommand(
|
||||
name: 'docs:lint',
|
||||
name: 'lint:docs',
|
||||
description: 'Apply documentation linters and optionally auto-fix issues',
|
||||
)]
|
||||
final class DocsLintCommand extends Command
|
||||
final class LintDocsCommand extends Command
|
||||
{
|
||||
public function __construct(
|
||||
private readonly Differ $differ,
|
||||
|
|
@ -29,10 +29,10 @@ use function sprintf;
|
|||
use function trim;
|
||||
|
||||
#[AsCommand(
|
||||
name: 'spdx:lint',
|
||||
name: 'lint:spdx',
|
||||
description: 'Apply SPDX linters to source and documentation files',
|
||||
)]
|
||||
final class SpdxLintCommand extends Command
|
||||
final class LintSpdxCommand extends Command
|
||||
{
|
||||
public const array HEADERS = [
|
||||
'License-Identifier: MIT',
|
||||
Loading…
Add table
Add a link
Reference in a new issue