Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Commit 80ea18d

Browse files
committed
feat(spip42): new CS Standard
1 parent f46fd77 commit 80ea18d

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
## [Unreleased]
1010

11+
## [1.3.0] - 20231-03-14
12+
13+
### Added
14+
15+
- `dev` keyword to prevent a "no-dev" installation (composer 2.4+)
16+
- `SCS2` SPIP Coding Standard Ruleset (SCS1+prevention prefixed with an underscore on method names)
17+
- `SPIP42` PHP8.0+ Compatibility Ruleset, including SCS2, for SPIP 4.2+
18+
1119
## [1.2.1] - 2021-08-25
1220

1321
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPIP Standard Coding Rules for PHP_CodeSniffer
22

3-
This is a set of rules for [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) that checks for SPIP Coding Standard and PHP Compatibility for SPIP v4.0.
3+
This is a set of rules for [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) that checks for SPIP Coding Standard and PHP Compatibility for SPIP v4.0+.
44

55
## Installation
66

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "spip/coding-standards",
33
"description": "SPIP Coding Standards",
44
"type": "phpcodesniffer-standard",
5-
"keywords": ["spip", "phpcs"],
5+
"keywords": ["spip", "phpcs", "dev"],
66
"license": "MIT",
77
"authors": [
88
{
@@ -17,10 +17,10 @@
1717
"phpcompatibility/php-compatibility": "dev-develop"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "^9.5"
20+
"phpunit/phpunit": "^9.6"
2121
},
2222
"suggest" : {
23-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
23+
"dealerdirect/phpcodesniffer-composer-installer": "^1.0 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically."
2424
},
2525
"autoload": {
2626
"psr-4": {
@@ -36,5 +36,10 @@
3636
"branch-alias": {
3737
"dev-main": "1.3.x-dev"
3838
}
39+
},
40+
"config": {
41+
"allow-plugins": {
42+
"dealerdirect/phpcodesniffer-composer-installer": true
43+
}
3944
}
4045
}

0 commit comments

Comments
 (0)