Skip to content

Commit 5f68d61

Browse files
committed
GH Actions/yamllint: also scan the PHPStan config
... as that is also a YAML file. Includes minor formatting fixes to the PHPStan config file.
1 parent 6ac68fc commit 5f68d61

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.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)