Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/qa/phpcbf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
cd $(dirname $0)/../../

# https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically
./vendor/bin/phpcbf --standard=ci/qa/phpcs.xml $1
./vendor/bin/phpcbf --standard=ci/qa/phpcs.xml src $1
4 changes: 2 additions & 2 deletions ci/qa/phplint.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: [./src, ./tests]
jobs: 10
cache: /var/qa/phplint.cache
cache-dir: var/cache/qa/phplint.cache
extensions:
- php
exclude:
- vendor
- vendor
211 changes: 190 additions & 21 deletions ci/qa/phpstan-baseline.php

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ci/qa/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ includes:
rules:

parameters:
treatPhpDocTypesAsCertain: false
Comment thread
kayjoosten marked this conversation as resolved.
Outdated
checkUninitializedProperties: true
level: 9
paths:
Expand Down
9 changes: 7 additions & 2 deletions ci/qa/phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="../../config/bootstrap.php">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" backupGlobals="false" colors="true"
bootstrap="../../config/bootstrap.php"
cacheDirectory="../../var/qa/phpunit.cache"

>
<coverage processUncoveredFiles="true">
<include>
<directory suffix="Test.php">../../src</directory>
Expand All @@ -11,7 +16,7 @@
<server name="APP_ENV" value="test" force="true"/>
<server name="SHELL_VERBOSITY" value="-1"/>
<server name="KERNEL_CLASS" value="\App\Kernel"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="999999"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0&amp;max[self]=0"/>
</php>
<testsuites>
<testsuite name="Project Test Suite">
Expand Down
17 changes: 11 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "surfnet/stepup-ra",
"license": "Apache-2.0",
"version": "0",
"description": "The SURFnet Step-up Registration Authority application allows Registration Authorities to vet identities by combining a real-world identity, federated identity and a token.",
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -48,10 +47,10 @@
"mockery/mockery": "^1.0",
"overtrue/phplint": "^9.0",
"phpmd/phpmd": "^2.6",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-symfony": "^1.3",
"phpstan/phpstan": "^2",
"phpstan/phpstan-symfony": "^2.0",
"phpunit/phpunit": "^9.5",
"rector/rector": "^1.0",
"rector/rector": "^2",
"slevomat/coding-standard": "^8.13",
"squizlabs/php_codesniffer": "^3.4",
"symfony/maker-bundle": "^1.19",
Expand All @@ -76,8 +75,14 @@
"@auto-scripts"
],
"frontend-install": [
"yarn install",
"yarn encore production"
"yarn install --frozen-lockfile",
"yarn encore production",
"./bin/console cache:clear",
"@fix-dev-permissions"
],
"fix-dev-permissions": [
"chown -R www-data:www-data /var/www/html/var/log",
"chown -R www-data:www-data /var/www/html/var/cache"
],
"check": [
"@phplint",
Expand Down
Loading