mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 03:31:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
PHP_CodeSniffer
|
||||
=====================================================
|
||||
# PHP_CodeSniffer
|
||||
|
||||
<div aria-hidden="true">
|
||||
|
||||
[](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
|
||||
[](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
|
||||
[](https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/workflows/validate.yml)
|
||||
[](https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/workflows/test.yml)
|
||||
[][GHA-test]
|
||||
[](https://coveralls.io/github/PHPCSStandards/PHP_CodeSniffer?branch=master)
|
||||
[](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt)
|
||||
[](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt)
|
||||
|
||||

|
||||
[](https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/workflows/test.yml)
|
||||

|
||||
[][GHA-test]
|
||||
|
||||
[GHA-test]: https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/workflows/test.yml
|
||||
|
||||
</div>
|
||||
|
||||
@@ -47,7 +48,9 @@ php phpcbf.phar -h
|
||||
```
|
||||
|
||||
These Phars are signed with the official Release key for PHPCS with the
|
||||
fingerprint `95DE 904A B800 754A 11D8 0B60 5E6D DE99 8AB7 3B8E`.
|
||||
fingerprint `689D AD77 8FF0 8760 E046 228B A978 2203 05CD 5C32`.
|
||||
|
||||
As of PHP_CodeSniffer 3.10.3, the provenance of PHAR files associated with a release can be verified via [GitHub Artifact Attestations](https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds) using the [GitHub CLI tool](https://cli.github.com/) with the following command: `gh attestation verify [phpcs|phpcbf].phar -o PHPCSStandards`.
|
||||
|
||||
### Composer
|
||||
If you use Composer, you can install PHP_CodeSniffer system-wide with the following command:
|
||||
@@ -71,17 +74,19 @@ You will then be able to run PHP_CodeSniffer from the vendor bin directory:
|
||||
./vendor/bin/phpcs -h
|
||||
./vendor/bin/phpcbf -h
|
||||
```
|
||||
|
||||
### Phive
|
||||
If you use Phive, you can install PHP_CodeSniffer as a project tool using the following commands:
|
||||
```bash
|
||||
phive install --trust-gpg-keys 95DE904AB800754A11D80B605E6DDE998AB73B8E phpcs
|
||||
phive install --trust-gpg-keys 95DE904AB800754A11D80B605E6DDE998AB73B8E phpcbf
|
||||
phive install --trust-gpg-keys 689DAD778FF08760E046228BA978220305CD5C32 phpcs
|
||||
phive install --trust-gpg-keys 689DAD778FF08760E046228BA978220305CD5C32 phpcbf
|
||||
```
|
||||
You will then be able to run PHP_CodeSniffer from the `tools` directory:
|
||||
```bash
|
||||
./tools/phpcs -h
|
||||
./tools/phpcbf -h
|
||||
```
|
||||
|
||||
### Git Clone
|
||||
You can also download the PHP_CodeSniffer source and run the `phpcs` and `phpcbf` commands directly from the Git clone:
|
||||
```bash
|
||||
@@ -90,6 +95,7 @@ cd PHP_CodeSniffer
|
||||
php bin/phpcs -h
|
||||
php bin/phpcbf -h
|
||||
```
|
||||
|
||||
## Getting Started
|
||||
|
||||
The default coding standard used by PHP_CodeSniffer is the PEAR coding standard. To check a file against the PEAR coding standard, simply specify the file's location:
|
||||
|
||||
Reference in New Issue
Block a user