Compare commits

..

No commits in common. "bf548d856daf296bac9c48c975ee03f36393f895" and "a26d99204c94bfdf1cb3ca502171135f1f765535" have entirely different histories.

3 changed files with 3 additions and 10 deletions

View File

@ -3,8 +3,5 @@ All notable changes to this package will be documented in this file
## Unreleased ## Unreleased
## 1.0.1 - 2022-08-18
- Added exclusion for `SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants` to allow late static binding for constants [patch]
## 1.0.0 - 2022-08-20 ## 1.0.0 - 2022-08-20
- Initial release [major] - Initial release [major]

View File

@ -3,7 +3,7 @@
[![Latest Version on Packagist](https://img.shields.io/packagist/v/crawl/coding-standard.svg?style=flat-square)](https://packagist.org/packages/crawl/coding-standard) [![Latest Version on Packagist](https://img.shields.io/packagist/v/crawl/coding-standard.svg?style=flat-square)](https://packagist.org/packages/crawl/coding-standard)
[![Total Downloads](https://img.shields.io/packagist/dt/crawl/coding-standard.svg?style=flat-square)](https://packagist.org/packages/crawl/coding-standard) [![Total Downloads](https://img.shields.io/packagist/dt/crawl/coding-standard.svg?style=flat-square)](https://packagist.org/packages/crawl/coding-standard)
This package provides rule sets for the Crawl Coding Standard. This package provides rule sets for the Crawl Coding Standard.\
It requires `squizlabs/php_codesniffer` and some extensions (see [composer.json](composer.json)). It requires `squizlabs/php_codesniffer` and some extensions (see [composer.json](composer.json)).
## Installation ## Installation
@ -15,9 +15,8 @@ composer require crawl/coding-standard --dev
``` ```
## Usage ## Usage
Depending on your project, copy `phpcs-laravel.xml` or `phpcs-package.xml` from `config/` to your project. Depending on your project, copy `phpcs-laravel.xml` or `phpcs-package.xml` from `config/` to your project.\
**Note:** don't forget to update `Package\Namespace` when using `phpcs-package.xml`.
> **Note:** don't forget to update `Package\Namespace` when using `phpcs-package.xml`.
You can then run PHP Code Sniffer/Beautifier: You can then run PHP Code Sniffer/Beautifier:
```bash ```bash

View File

@ -22,9 +22,6 @@
<!-- Disabled since subclasses can't always overrule parents --> <!-- Disabled since subclasses can't always overrule parents -->
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/> <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/>
<!-- Disabled to allow late static binding for constants (static::CONST) -->
<exclude name="SlevomatCodingStandard.Classes.DisallowLateStaticBindingForConstants"/>
<exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/> <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/>
</rule> </rule>