60 Commits (bd6403a6bef36fdbefdb287dc7e26286d5e06e5e)

Author SHA1 Message Date
Jordi Boggiano be4b70ce79
Fix phpstan issues 2 years ago
Jordi Boggiano 27a449eaf7
Move duplicate key parsing from bootstrap to validate/diagnose to reduce bootstrap time a bit 2 years ago
Jordi Boggiano 6a466a120a
Enable strict types on all files 2 years ago
Jordi Boggiano 0db443ba5f
Add visibility to all consts, fixes #10550 2 years ago
Jordi Boggiano 6da38f83a0
Add parameter types to all the things 2 years ago
Jordi Boggiano eda9014bef
Add return types to all code which is not being extended by open source packages 2 years ago
Jordi Boggiano 32852304d0
Make use of some new PHP features 2 years ago
Jordi Boggiano 24ce1eddbd
Add composer/pcre dependency and use it everywhere instead of preg_* 3 years ago
Martin Herndl 995bf5a932
Add types to `Util` namespace, refs #10159 (#10190) 3 years ago
Jordi Boggiano 0761474599
Add type info to many properties/methods 3 years ago
Guilliam Xavier 41c66b1a2d Revert "Update docs and add more helpful output to validate command, refs #9782"
This reverts commit 458bd41d8f.
3 years ago
Jordi Boggiano 458bd41d8f
Update docs and add more helpful output to validate command, refs #9782 3 years ago
Jordi Boggiano b7d770659b
CS fixes 4 years ago
Nils Adermann 6409ed0fc2 Validate: Warn about providing or replacing packages you require 4 years ago
Simon Berger 80d71ccb3f Merged isset, unset and str_replace calls 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
Adam Žurek 25cd2382cb
Raise phpstan level to 1 (#8027) 4 years ago
Jordi Boggiano 08f769220a Merge branch '1.6' 6 years ago
Jordi Boggiano f857da7c29 Remove deprecated license check from ValidatingArrayLoader, fixes #7026, fixes #7073 6 years ago
Martin Hujer bbee0d7c6c Validation warns if script description for nonexistent script is present
Fixes #7010
7 years ago
Jordi Boggiano 5cd0fef7ff Upgrade to SPDX License 3.0 and handle deprecations more gracefully, fixes #6951 7 years ago
Martin Hasoň 88ec172bd8 Fix CS 7 years ago
Jordi Boggiano 0efc66d968 Tweak message 7 years ago
Nicola Spanti (RyDroid) 5cd080dfac Add a specific message for stupid users that put useless spaces in license 7 years ago
Jordi Boggiano 1818b95149 CS fixes 9 years ago
Jordi Boggiano d7c61c50ad Merge branch 'tls-config' 9 years ago
Jordi Boggiano 03299ff075 Suggest https in docs where it makes sense, closes #4056 9 years ago
Jordi Boggiano cb53bd04cb Remove a few instances of RemoteFilesystem that were not needed 9 years ago
Jordi Boggiano f8dff0867c Remove --disable-tls/--cafile flags and rely solely on config options plus some wording clarifications 9 years ago
Jordi Boggiano 5d015defb8 Merge remote-tracking branch 'origin/master' into tls-config 9 years ago
Jeroen Seegers 279b5f0156 Drop irrelevant properties from composer_commit-ref.json 9 years ago
Jeroen Seegers f3dc31839f Refactor commit-ref validation
The require and require-dev arrays have been merged into one and no
longer user private methods/properties to collect warnings.
9 years ago
Jeroen Seegers 73e73c90fb Generate a warning when a commit reference is used
Closes #4485
9 years ago
Jordi Boggiano ce08582671 Fix CS 9 years ago
Jordi Boggiano ae23979dfa Add validation warning for prs-0/4 definitions without namespace prefix, refs #3202 9 years ago
Rob Bast 5ae9e7fe22 remove spdx files, introduce external library 9 years ago
Kunal Mehta 49bd1d773b Make an invalid package name a publish error, not warning
Since invalid names will prevent publishing to packagist, they should
be considered publish errors. If people do not plan on submitting their
package to packagist, they can use the --no-check-publish flag to turn
it into a normal warning again.
9 years ago
jakoch 74a077dd3d updated spdx-license handling to include metadata
issue https://github.com/composer/composer/issues/3744

summary of changes
- replaced bin script "fetch-spdx-identifiers" by "update-spdx-licenses"
- "update-spdx-licenses" uses "Composer/Util/SpdxLicensesUpdater" to update "spdx-licenses.json" file with license identifier, fullname and osi-approved-status
- dropped "spdx-identifiers.json" (identifiers only)
- dropped "SpdxLicenseIdentifier", it's just "SpdxLicense" now
- modified "ShowCommand" to output the license with metadata and removed some unused method arguments (cleanup)
9 years ago
Padraic Brady 19e24c5804 Merge branch 'master' into tls-config
Conflicts:
	.travis.yml
	doc/03-cli.md
	src/Composer/Command/ConfigCommand.php
	src/Composer/Command/CreateProjectCommand.php
	src/Composer/Command/DiagnoseCommand.php
	src/Composer/Command/InstallCommand.php
	src/Composer/Command/RequireCommand.php
	src/Composer/Command/SelfUpdateCommand.php
	src/Composer/Command/ShowCommand.php
	src/Composer/Command/UpdateCommand.php
	src/Composer/Config.php
	src/Composer/Downloader/FileDownloader.php
	src/Composer/Factory.php
	src/Composer/Repository/ComposerRepository.php
	src/Composer/Repository/PearRepository.php
	src/Composer/Repository/Vcs/VcsDriver.php
	src/Composer/Util/GitHub.php
	src/Composer/Util/RemoteFilesystem.php
10 years ago
Jordi Boggiano d79f2b0fd3 Adds warning when the version field is set, fixes composer/packagist#438 10 years ago
Jordi Boggiano ac497feaba CS fixes 10 years ago
Jérôme Macias 4f417e3985 Add --no-check-all option to composer validate command 10 years ago
Jordi Boggiano e7b82cdd88 Only check in require and for non-platform packages, add flag to make this warning optional, refs #2320 10 years ago
Pádraic Brady 470fb58273 Add a bundled cacert.pem as a last resort option 10 years ago
Pádraic Brady 306ba77e93 Implement the RemoteFilesystem Factory everywhere...
- also fixes impacted test
10 years ago
Pádraic Brady 49590af656 $originUrl passed to RemoteFilesystem is actually a HOST string already (so far!) 10 years ago
Jordi Boggiano 1b789d5226 Fix indenting, refs #2535 11 years ago
chr0n1x 528d35a835 ConfigValidator: ensure that require-dev exists during override check
- Ensure that require-dev is present before checking for dependeny overrides.
- A small grammar update for the warning message.
11 years ago
Jordi Boggiano 4ae5c95c8d Detect require overrides, fixes #2503 11 years ago