Skip to content

Commit bbb8994

Browse files
authored
Merge pull request #520 from PHPCSStandards/feature/ghactions-various-tweaks
GH Actions: various tweaks
2 parents 349e443 + 5f68d61 commit bbb8994

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/basics.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ jobs:
6262
6363
# Show XML violations inline in the file diff.
6464
# @link https://github.com/marketplace/actions/xmllint-problem-matcher
65-
- uses: korelstar/xmllint-problem-matcher@v1
65+
- name: Enable showing XML issues inline
66+
uses: korelstar/xmllint-problem-matcher@v1
6667

6768
# Validate the XML file.
6869
# @link http://xmlsoft.org/xmllint.html
@@ -99,7 +100,7 @@ jobs:
99100

100101
# Install dependencies and handle caching in one go.
101102
# Dependencies need to be installed to make sure the PHPCS and PHPUnit classes are recognized.
102-
# @link https://github.com/marketplace/actions/install-composer-dependencies
103+
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
103104
- name: Install Composer dependencies
104105
uses: "ramsey/composer-install@v2"
105106
with:

.yamllint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ yaml-files:
66
- '*.yaml'
77
- '*.yml'
88
- '.yamllint'
9+
- 'phpstan.neon*'
910

1011
# Rule documentation: https://yamllint.readthedocs.io/en/stable/rules.html
1112
rules:

phpstan.neon.dist

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
#phpVersion: 50400 # Needs to be 70100 or higher... sigh...
2+
# phpVersion: 50400 # Needs to be 70100 or higher... sigh...
33
level: 6
44
paths:
55
- phpcsutils-autoload.php
@@ -14,6 +14,8 @@ parameters:
1414
treatPhpDocTypesAsCertain: false
1515

1616
ignoreErrors:
17+
# yamllint disable rule:line-length
18+
1719
# Level 0
1820
# Ignoring this as availability depends on which PHPUnit Polyfills version is loaded/installed. This is 100% okay.
1921
-
@@ -72,10 +74,10 @@ parameters:
7274
-
7375
message: '`^Parameter #[0-9]+ \$\S+ of static method PHPCSUtils\\(?!Tests)[A-Za-z]+\\[A-Za-z]+::[A-Za-z]+\(\) expects [^,]+, \S+ given\.$`'
7476
paths:
75-
- Tests/BackCompat/BCFile/GetTokensAsStringTest.php
76-
- Tests/Exceptions/TestTargetNotFound/TestTargetNotFoundTest.php
77-
- Tests/Fixers/SpacesFixer/SpacesFixerExceptionsTest.php
78-
- Tests/Utils/GetTokensAsString/GetTokensAsStringTest.php
77+
- Tests/BackCompat/BCFile/GetTokensAsStringTest.php
78+
- Tests/Exceptions/TestTargetNotFound/TestTargetNotFoundTest.php
79+
- Tests/Fixers/SpacesFixer/SpacesFixerExceptionsTest.php
80+
- Tests/Utils/GetTokensAsString/GetTokensAsStringTest.php
7981

8082
# Ignoring as this is fine.
8183
-
@@ -93,3 +95,5 @@ parameters:
9395
-
9496
message: '`^Method PHPCSUtils\\Tests\\[^: ]+Test(Case)?::\S+\(\) has parameter \$\S* with no value type specified in iterable type array\.$`'
9597
path: Tests/*
98+
99+
# yamllint enable rule:line-length

0 commit comments

Comments
 (0)