26B / php-pre-commit

Pre-commit git hook to help keep code within PHP standards.
MIT License
7 stars 1 forks source link

Advise to install codesniffer locally #6

Closed gh0stwin closed 2 years ago

gh0stwin commented 3 years ago

I updated the README.md file to advise the installation of php_codesniffer locally. This is because if you want to have different sets of standards for different repositories phpcs --config-set ... will be in conflict (or aggregate all standards installed).

I also updated the bash commands with a comment to tell how to use phpcs command when installed locally (don't know if is excessive)...