Skip to content

Commit fa75e75

Browse files
authored
Merge branch 'master' into dsstore-gitignore
2 parents e74089e + 4b5aca2 commit fa75e75

File tree

11 files changed

+48
-19
lines changed

11 files changed

+48
-19
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ jobs:
3131
- composer install
3232
script:
3333
- vendor/bin/phpunit
34+
- language: php
35+
php: 8.0
36+
install:
37+
# For PHP 8.0+, we need to ignore platform reqs as PHPUnit 7 is still used.
38+
- composer install --ignore-platform-reqs
39+
script:
40+
- vendor/bin/phpunit
41+
- language: php
42+
php: 8.1
43+
install:
44+
# For PHP 8.0+, we need to ignore platform reqs as PHPUnit 7 is still used.
45+
- composer install --ignore-platform-reqs
46+
script:
47+
# For PHP 8.1+, we need to ignore the config file so that PHPUnit 7 doesn't try to read it and cause an error.
48+
# Instead, we pass all required settings as part of the phpunit command.
49+
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/AllSniffs.php
50+
- vendor/bin/phpunit --no-configuration --bootstrap=tests/bootstrap.php --dont-report-useless-tests tests/FixtureTests.php
3451
- language: node_js
3552
node_js: 16
3653
install:

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
# Changelog
22

3+
## 1.2.0 (September 13, 2022)
4+
5+
- Add new Isset sniff #236
6+
- Update custom escaping functions for clean_html #264
7+
- Require spaces in template strings #256
8+
- Ignore "use" within "class" in OrderSniff #271
9+
- Add dealerdirect/phpcodesniffer-composer-installer to allow-plugins in composer.json #284
10+
- Update PHPCS to support PHP 8+ #282
11+
312
## 1.1.3 (February 3, 2021)
413

514
- Open ESLint peer dependency range to accept ESLint v6 & v7 #222
15+
616
## 1.1.2 (December 10, 2020)
717

818
### Removed:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"license": "GPL-2.0-or-later",
66
"require": {
77
"php": ">=7.1",
8-
"wp-coding-standards/wpcs": "2.2.1",
8+
"wp-coding-standards/wpcs": "2.3.0",
99
"automattic/vipwpcs": "2.0.0",
1010
"fig-r/psr2r-sniffer": "^0.5.0",
1111
"phpcompatibility/phpcompatibility-wp": "^2.0.0",
12-
"squizlabs/php_codesniffer": "~3.5.0",
12+
"squizlabs/php_codesniffer": "~3.5",
1313
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0"
1414
},
1515
"require-dev": {
16-
"phpunit/phpunit": "^5.7"
16+
"phpunit/phpunit": "^7"
1717
},
1818
"scripts": {
1919
"test": "phpunit"

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"packages": [
1212
"packages/*"
1313
],
14-
"version": "1.1.3"
14+
"version": "1.2.1"
1515
}

packages/eslint-config-humanmade/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/eslint-config-humanmade/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@humanmade/eslint-config",
3-
"version": "1.1.3",
3+
"version": "1.2.1",
44
"description": "Human Made Coding Standards for JavaScript.",
55
"author": "Human Made",
66
"license": "GPL-2.0-or-later",
@@ -22,9 +22,9 @@
2222
"bugs": {
2323
"url": "https://github.com/humanmade/coding-standards/issues"
2424
},
25-
"engines" : {
26-
"npm" : ">=7.0.0",
27-
"node" : ">=16.0.0"
25+
"engines": {
26+
"npm": ">=7.0.0",
27+
"node": ">=16.0.0"
2828
},
2929
"files": [
3030
".eslintrc",

packages/stylelint-config/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/stylelint-config/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@humanmade/stylelint-config",
3-
"version": "1.1.2",
3+
"version": "1.2.1",
44
"description": "Human Made Coding Standards for CSS and SCSS.",
55
"author": "Human Made",
66
"license": "GPL-2.0-or-later",
@@ -22,9 +22,9 @@
2222
"bugs": {
2323
"url": "https://github.com/humanmade/coding-standards/issues"
2424
},
25-
"engines" : {
26-
"npm" : ">=7.0.0",
27-
"node" : ">=16.0.0"
25+
"engines": {
26+
"npm": ">=7.0.0",
27+
"node": ">=16.0.0"
2828
},
2929
"main": ".stylelintrc.json",
3030
"dependencies": {

phpunit.xml.dist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<phpunit
2+
beStrictAboutTestsThatDoNotTestAnything="false"
23
bootstrap="tests/bootstrap.php"
34
colors="true"
45
convertErrorsToExceptions="true"
@@ -7,7 +8,7 @@
78
>
89
<testsuites>
910
<!-- Default test suite to run all tests -->
10-
<testsuite>
11+
<testsuite name="all">
1112
<file>tests/AllSniffs.php</file>
1213
<file>tests/FixtureTests.php</file>
1314
</testsuite>

tests/AllSniffs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static function main() {
4242
public static function suite() {
4343
$GLOBALS['PHP_CODESNIFFER_SNIFF_CODES'] = array();
4444
$GLOBALS['PHP_CODESNIFFER_FIXABLE_CODES'] = array();
45+
$GLOBALS['PHP_CODESNIFFER_SNIFF_CASE_FILES'] = array();
4546

4647
$suite = new TestSuite( 'HM Standards' );
4748

0 commit comments

Comments
 (0)