Skip to content
Snippets Groups Projects
Commit c3a7b1b6 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3369381 by Project Update Bot: Automated Drupal 10 compatibility fixes...

Issue #3369381 by Project Update Bot: Automated Drupal 10 compatibility fixes for Unite and functional tests
parent bc14defd
No related branches found
No related tags found
No related merge requests found
Pipeline #25813 failed
......@@ -46,10 +46,10 @@ stages:
.yarn-cache: &yarn-cache
key:
files:
- ./core/package.json
- ./core/yarn.lock
- ./package.json
- ./yarn.lock
paths:
- ./core/node_modules
- ./node_modules
.with-composer-cache: &with-composer-cache
cache:
......@@ -156,5 +156,4 @@ stages:
<<: [ *with-composer-cache, *junit-artifacts, *default-job-settings-lint ]
stage: 🪄 Lint
script:
# Turn off apc to avoid corrupt composer cache.
- php -d apc.enabled=0 -d apc.enable_cli=0 vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --error-format=junit > junit.xml
- php -d apc.enabled=0 -d apc.enable_cli=0 vendor/bin/phpstan analyze --configuration=phpstan.neon.dist --error-format=junit > junit.xml
# Configuration file for PHPStan static code checking, see https://phpstan.org .
# PHPStan with partial analysis is triggered in commit-code-check.sh.
includes:
- phpstan.neon.dist
# Do not add additional configuration to this file. This configuration exists
# only to allow core/scripts/dev/commit-code-check.sh to run against a subset of
# the codebase.
parameters:
reportUnmatchedIgnoredErrors: false
\ No newline at end of file
# Configuration file for PHPStan static code checking, see https://phpstan.org .
# PHPStan is triggered on Drupal CI in commit-code-check.sh.
includes:
- phpstan-baseline.neon
- phar://phpstan.phar/conf/bleedingEdge.neon
parameters:
level: 1
paths:
- .
- ../composer
excludePaths:
# Skip sites directory.
- ../sites
# Skip test fixtures.
- ../*/node_modules/*
ignoreErrors:
# new static() is a best practice in Drupal, so we cannot fix that.
- "#^Unsafe usage of new static#"
# Ignore common errors for now.
- "#Drupal calls should be avoided in classes, use dependency injection instead#"
- "#^Plugin definitions cannot be altered.#"
- "#^Missing cache backend declaration for performance.#"
- "#cache tag might be unclear and does not contain the cache key in it.#"
- "#^Class .* extends @internal class#"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment