yiisoft / yii2-coding-standards

Yii 2 coding standards
182 stars 49 forks source link

Delete composer.lock #7

Closed maximal closed 10 years ago

maximal commented 10 years ago

Lock file doesn’t need to be in repo.

cebe commented 10 years ago

As this repo is not going to be used as a library it is fine to lock the version of codesniffer.

maximal commented 10 years ago

This can be done in composer.json:

"require": {
    "php": ">=5.4.0",
    // Version of CodeSniffer
    "squizlabs/php_codesniffer": "1.*"
}

Or am I wrong?

cebe commented 10 years ago

composer.json defines a general restriction. you could write "squizlabs/php_codesniffer": "*" to always have the latest version. composer.lock will be updated when you call composer update. To ensure everyone is working with the same version when working in a team for example all can do composer install to get exactly the same versions as all other team members.