-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmago.toml
More file actions
35 lines (29 loc) · 1.33 KB
/
Copy pathmago.toml
File metadata and controls
35 lines (29 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
extends = "vendor/php-db/phpdb-qa-tools/mago.toml"
php-version = "8.3.0"
[source]
paths = ["src", "test"]
includes = ["vendor"]
[formatter]
parentheses-around-new-in-member-access = true
[linter]
baseline = "lint-baseline.toml"
[linter.rules]
# Exception classes are message catalogues: one template and one named constructor per
# condition, per the convention in docs/book/exceptions.md. The method count tracks the
# number of distinct failures a component can report, so the maintainability signal does
# not apply. "test/" repeats the phpdb-qa-tools default, which this key replaces.
too-many-methods = { exclude = ["test/", "src/Sql/Exception/", "src/TableGateway/Exception/", "src/Adapter/Exception/"] }
# The capability interfaces return `ResultSetInterface&<themselves>`, and PHP rejects
# `self` as part of an intersection type, so this rule's advice cannot be taken there.
prefer-self-return-type = { exclude = [
"src/ResultSet/ArrayObjectResultSetInterface.php",
"src/ResultSet/HydratingResultSetInterface.php",
"src/ResultSet/RowPrototypeResultSetInterface.php",
] }
[analyzer]
baseline = "analyzer-baseline.toml"
class-initializers = [
"PhpDb\\ResultSet\\AbstractResultSet::initialize",
"PhpDb\\TableGateway\\Feature\\AbstractFeature::setTableGateway",
"PhpDb\\RowGateway\\Feature\\AbstractFeature::setRowGateway",
]