Jordi Boggiano
6a466a120a
Enable strict types on all files
2 years ago
Jordi Boggiano
6da38f83a0
Add parameter types to all the things
2 years ago
Alexander Schranz
1321bfca36
Add return types to closures ( #9 )
2 years ago
Jordi Boggiano
abdc6893a6
Add void types where no return statement is present
2 years ago
Jordi Boggiano
5c98a2cf8e
Add phpstan-symfony to get type info about console InputInterface, fix many errors ( #10476 )
...
Extract common init/require commands functionality into PackageDiscoveryTrait
Extract some helper methods into BaseCommand for better types
2 years ago
Samuel Felipe
3ccb54832b
PHPStan level 6 in src/Composer/Command ( #10214 )
3 years ago
Jordi Boggiano
90d72ca686
Tweak validate command output to be slightly more readable, less colorful
3 years ago
Jordi Boggiano
2eaf81c813
Fix a few issues in lock file validation
...
- handle packages present but in wrong version
- handle provide/replace correctly
- do not validate if lock file is missing
refs #9899
3 years ago
Frank Prins
e83e92b2ae
Ignore platform requirements like "ext-*" and "php" when validating the lock file as they don't get locked
3 years ago
Frank Prins
32b70142d9
Replace static anonymous function and replace it with normal anonymous function as static ones are only supported on PHP5.4 and up
3 years ago
Frank Prins
f4d3a1e478
Detect missing packages that are a requirement or dev-requirement but not locked.
3 years ago
Jordi Boggiano
3380178798
Introduce a cross-platform safe version of is_readable to support UNC / wsl$ paths on Windows ( #9861 )
3 years ago
username
18009af023
Inline variable
4 years ago
Jordi Boggiano
c12a1a6d64
Update flag description
4 years ago
Kuba Werłos
a54bf0e2d4
Use flags instead of boolean in ConfigValidator for checking version field
4 years ago
Kuba Werłos
4ec73874cb
Add "no-check-version" option to ValidateCommand
4 years ago
Guilliam Xavier
a17e7e9bd3
ValidateCommand: fix array syntax for PHP 5.3
4 years ago
Jordi Boggiano
ff8bf0ab82
Clarify code
...
Co-Authored-By: Guilliam Xavier <guilliamxavier@users.noreply.github.com>
4 years ago
Guilliam Xavier
a222ec5b36
ValidateCommand: remove actually unused code
4 years ago
Guilliam Xavier
35562dcd49
ValidateCommand: add a comment that we didn't forget $lockErrors
4 years ago
Guilliam Xavier
2f4bd85219
ValidateCommand: de-invert if-elseif-else to reduce code duplication
4 years ago
Guilliam Xavier
901d177179
ValidateCommand: factorize $printSchemaUrl code
4 years ago
Guilliam Xavier
b5e41d6792
ValidateCommand: always display all warnings, independently of --strict
4 years ago
Guilliam Xavier
7e2679ffc1
ValidateCommand: pass $isStrict to outputResult() of with-dependencies too
4 years ago
Jordi Boggiano
ef6ef8ac0f
Hint at the partial update command, fixes #8508 , refs #8332
4 years ago
Markus Staab
c876613d5c
Added "Read more at" links to all commands ( #8019 )
5 years ago
Jordi Boggiano
abcde19022
Document --no-check-all better, fixes #7889
5 years ago
Ahammar Yassine
4a8c416a02
Update ValidateCommand.php
...
Skip publish and lock check even in strict check mode when the user want so.
Example : `composer validate --no-check-lock --strict composer.json`.
Issue : #7624
6 years ago
Jordi Boggiano
0fdf746ebe
Fix --no-plugins not working in certain edge cases
6 years ago
Jordi Boggiano
ff59bbdab0
CS fixer
6 years ago
Markus Staab
ecb26c7b75
support COMPOSER env var in validate command ( #6834 )
...
* support COMPOSER env var in validate command
7 years ago
Sven Luijten
b4a77e1c0e
Add full stop to all command descriptions
7 years ago
Rob Bast
a245c4618b
php-cs-fixer
8 years ago
Niels Keurentjes
692a3ed300
Renamed Composer\Console\Command to BaseCommand for consistency with other abstract base classes.
8 years ago
Alexander Stehlik
298e7a218a
Trigger event in validate command
...
This allows plugins to run additional validations.
8 years ago
Jordi Boggiano
f5e0fc14b3
Clarify some error messages, fixes #3770
9 years ago
Jordi Boggiano
ce08582671
Fix CS
9 years ago
Jordi Boggiano
9f2e562e48
Add --strict flag to validate command to treat warnings as failures as well, refs #3202
9 years ago
Jordi Boggiano
e61b3a6370
Allow the validate command to validate dependencies with -A/--with-dependencies, refs #3202
9 years ago
Olivier Laviale
cc522c20bb
Optimized this->getIO()
9 years ago
Andreas Möller
5828f6202d
Enhancement: Also validate lock file
9 years ago
Possum
2e99b9fdf5
Use https where possible
9 years ago
Kunal Mehta
05e196893b
Add --no-check-publish option to "composer validate"
...
This is useful when you want to use composer to manage dependencies, but
don't actually want your project to be installable as a composer package.
Any issues that would prevent publishing are still shown, but as a warning
instead of an error.
9 years ago
Rob Bast
cb336a5416
Implement writeError throughout Composer
9 years ago
Jérôme Macias
4f417e3985
Add --no-check-all option to composer validate command
10 years ago
Jordi Boggiano
ee0cd07468
CS fixes
12 years ago
Johannes M. Schmitt
4e769e1100
moved some code to a dedicated class
12 years ago
Jordi Boggiano
5777aa8087
Fix typo in validate command
12 years ago
Jordi Boggiano
c65af3e3a1
Add ValidatingArrayLoader and more validation for the validate command
12 years ago
Jordi Boggiano
f8d671a07a
Tweak exception message
12 years ago