Skip to content

Commit 1897091

Browse files
committed
Merge branch 'release/2.1.0'
2 parents c6e1f5c + c1cf1a6 commit 1897091

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All Notable changes to the **Quality Assurance - PHP** package.
44

5+
## [Unreleased]
6+
7+
### Added
8+
9+
- Add Unused use statement rule to PHPCS checks.
10+
511
## [2.0.0]
612

713
### Added
@@ -46,6 +52,7 @@ Initial setup of the qa-php package:
4652
- Add support for PHP 7.3+
4753
- Add support for PHP 8.0+
4854

55+
[2.1.0]: https://github.com/district09/php_package_qa-php/compare/2.0.0...2.1.0
4956
[2.0.0]: https://github.com/district09/php_package_qa-php/compare/1.1.0...2.0.0
5057
[1.1.0]: https://github.com/district09/php_package_qa-php/compare/1.0.1...1.1.0
5158
[1.0.1]: https://github.com/district09/php_package_qa-php/compare/1.0.0...1.0.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Add the `grumphp` entry to the `extra` section of your `composer.json`.
2020
Add the qa-php package as dev requirement:
2121

2222
```bash
23-
composer require --dev district09/qa-php:^1.0
23+
composer require --dev district09/qa-php:^2.0
2424
```
2525

2626
## Configuration

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"sort-packages": true,
3333
"allow-plugins": {
3434
"ergebnis/composer-normalize": true,
35-
"phpro/grumphp-shim": true
35+
"phpro/grumphp-shim": true,
36+
"dealerdirect/phpcodesniffer-composer-installer": true
3637
}
3738
},
3839
"autoload": {
@@ -54,6 +55,7 @@
5455
"phpstan/phpstan-deprecation-rules": "^1.0",
5556
"phpunit/phpunit": "^9",
5657
"sebastian/phpcpd": "^6.0",
58+
"slevomat/coding-standard": "^8.15",
5759
"squizlabs/php_codesniffer": "^3.5.6",
5860
"symfony/filesystem": "^5.2|^6.0|^7.0"
5961
}

configs/phpcs.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@
1313
<arg value="np"/>
1414

1515
<rule ref="PSR12"></rule>
16+
17+
<!-- Extra rules not included in PSR12. -->
18+
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/>
1619
</ruleset>

0 commit comments

Comments
 (0)