Skip to content

Commit 34ff1d6

Browse files
authored
Merge pull request #3012 from nextcloud/carl/psalm-level1
2 parents 6c27167 + e882eef commit 34ff1d6

20 files changed

+4257
-4700
lines changed

.php-cs-fixer.dist.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
* SPDX-License-Identifier: AGPL-3.0-or-later
88
*/
99

10-
require_once './vendor/autoload.php';
10+
require_once './vendor-bin/cs-fixer/vendor/autoload.php';
1111

1212
use Nextcloud\CodingStandard\Config;
1313

1414
$config = new Config();
1515
$config
1616
->getFinder()
17+
->ignoreVCSIgnored(true)
1718
->notPath('build')
19+
->notPath('tests/stubs')
1820
->notPath('l10n')
1921
->notPath('src')
2022
->notPath('vendor')
21-
->notPath('composer')
2223
->in(__DIR__);
2324
return $config;

REUSE.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,9 @@ path = ["img/app.svg"]
118118
precedence = "aggregate"
119119
SPDX-FileCopyrightText = "2018-2024 Google LLC"
120120
SPDX-License-Identifier = "Apache-2.0"
121+
122+
[[annotations]]
123+
path = ["vendor-bin/**"]
124+
precedence = "aggregate"
125+
SPDX-FileCopyrightText = "2025 Nextcloud GmbH and Nextcloud contributors"
126+
SPDX-License-Identifier = "AGPL-3.0-or-later"

composer.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,29 @@
55
"classmap-authoritative": true,
66
"platform": {
77
"php": "8.2"
8+
},
9+
"allow-plugins": {
10+
"bamarni/composer-bin-plugin": true
811
}
912
},
1013
"scripts": {
11-
"cs:fix": "php-cs-fixer fix",
14+
"post-install-cmd": [
15+
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all install --ansi",
16+
"composer dump-autoload"
17+
],
18+
"post-update-cmd": [
19+
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer bin all update --ansi",
20+
"composer dump-autoload"
21+
],
1222
"cs:check": "php-cs-fixer fix --dry-run --diff",
13-
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './composer/*' -print0 | xargs -0 -n1 php -l",
23+
"cs:fix": "php-cs-fixer fix",
24+
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './tests/stubs/*' -print0 | xargs -0 -n1 php -l",
1425
"psalm": "psalm --threads=1",
1526
"psalm:update-baseline": "psalm --threads=1 --update-baseline",
1627
"psalm:clear": "psalm --clear-cache && psalm --clear-global-cache",
1728
"psalm:fix": "psalm --alter --issues=InvalidReturnType,InvalidNullableReturnType,MissingParamType,InvalidFalsableReturnType"
1829
},
1930
"require-dev": {
20-
"nextcloud/coding-standard": "^1.2.0",
21-
"phpunit/phpunit": "^9",
22-
"vimeo/psalm": "^5.25.0",
23-
"nextcloud/ocp": "dev-master"
31+
"bamarni/composer-bin-plugin": "^1.8"
2432
}
2533
}

0 commit comments

Comments
 (0)