PHPCSStandards / composer-installer

Composer installer for PHP_CodeSniffer coding standards
https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer
MIT License
559 stars 36 forks source link

CHANGE: Local projects uses relative paths to their coding standards #28

Closed frenck closed 7 years ago

frenck commented 7 years ago

Proposed Changes

Changed they way paths are put into PHP_CodeSniffer based on Composer being executes globally or not. Local repositories (project folder) installations will use relative paths from the PHP_CodeSniffer installation directory to the directory containing the coding standard.

The behaviour for globally installed instances will keep using absolute paths; unchanged.

Related Issues

20 Install sniffs with relative paths in CodeSniffer.conf