Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
experience_builder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
experience_builder
Commits
2d3b4df9
Commit
2d3b4df9
authored
1 month ago
by
Christian López Espínola
Committed by
Ted Bowman
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3516801
: Update PHPCS config to match Drupal 11 + phpstan issues
parent
52b1e49d
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!832
Issue #3516801: Update PHPCS config to match Drupal 11 + phpstan issues
Pipeline
#463461
failed
1 month ago
Stage: development
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core.phpcs.xml.dist
+13
-20
13 additions, 20 deletions
core.phpcs.xml.dist
tests/src/Traits/XBFieldTrait.php
+1
-0
1 addition, 0 deletions
tests/src/Traits/XBFieldTrait.php
with
14 additions
and
20 deletions
core.phpcs.xml.dist
+
13
−
20
View file @
2d3b4df9
...
...
@@ -31,6 +31,9 @@
<!-- Drupal sniffs -->
<rule
ref=
"Drupal.Arrays.Array"
/>
<rule
ref=
"Drupal.Arrays.Array.LongLineDeclaration"
>
<include-pattern>
core/*/Unit/*
</include-pattern>
<include-pattern>
core/*/FunctionalJavascript/*
</include-pattern>
<include-pattern>
core/*/Kernel/*
</include-pattern>
<include-pattern>
core/lib/*
</include-pattern>
<include-pattern>
core/modules/*/tests/modules/*
</include-pattern>
</rule>
...
...
@@ -46,12 +49,6 @@
<rule
ref=
"Drupal.Classes.UseGlobalClass"
/>
<rule
ref=
"Drupal.Classes.UseLeadingBackslash"
/>
<rule
ref=
"Drupal.Commenting.ClassComment"
/>
<rule
ref=
"Drupal.Commenting.ClassComment.Missing"
>
<include-pattern>
*/Functional/*
</include-pattern>
<include-pattern>
*/tests/modules/*
</include-pattern>
<include-pattern>
./core/tests/Drupal/Tests/Core/*
</include-pattern>
<include-pattern>
./core/modules/*
</include-pattern>
</rule>
<rule
ref=
"Drupal.Commenting.DataTypeNamespace"
/>
<rule
ref=
"Drupal.Commenting.Deprecated"
/>
<rule
ref=
"Drupal.Commenting.DocComment"
>
...
...
@@ -62,30 +59,18 @@
<exclude
name=
"Drupal.Commenting.DocComment.LongFullStop"
/>
<exclude
name=
"Drupal.Commenting.DocComment.MissingShort"
/>
</rule>
<rule
ref=
"Drupal.Commenting.DocComment"
>
<exclude-pattern>
core/tests/*
</exclude-pattern>
</rule>
<rule
ref=
"Drupal.Commenting.DocCommentAlignment"
/>
<rule
ref=
"Drupal.Commenting.DocCommentLongArraySyntax"
/>
<rule
ref=
"Drupal.Commenting.DocCommentStar"
/>
<rule
ref=
"Drupal.Commenting.FileComment"
/>
<rule
ref=
"Drupal.Commenting.FunctionComment"
/>
<rule
ref=
"Drupal.Commenting.FunctionComment.Missing"
>
<include-pattern>
core/modules/*/Plugin/views/argument/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/filter/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/access/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/cache/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/query/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/sort/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/display/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/exposed_form/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/field/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/pager/*
</include-pattern>
<include-pattern>
core/modules/*/Plugin/views/style/*
</include-pattern>
<include-pattern>
core/*/src/Plugin/*
</include-pattern>
<include-pattern>
*/Database/*
</include-pattern>
<include-pattern>
*/FunctionalJavascript/*
</include-pattern>
<include-pattern>
*/Kernel/*
</include-pattern>
<include-pattern>
*/Functional/*
</include-pattern>
<include-pattern>
*/Unit/*
</include-pattern>
</rule>
<rule
ref=
"Drupal.Commenting.FunctionComment.MissingParamType"
/>
<rule
ref=
"Drupal.Commenting.FunctionComment.MissingReturnComment"
>
...
...
@@ -110,6 +95,14 @@
<rule
ref=
"Drupal.ControlStructures.InlineControlStructure"
/>
<rule
ref=
"Drupal.Files.EndFileNewline"
/>
<rule
ref=
"Drupal.Files.FileEncoding"
/>
<rule
ref=
"Drupal.Files.LineLength"
>
<include-pattern>
*/core/lib/*
</include-pattern>
<exclude-pattern>
*/core/lib/*/*Trait
</exclude-pattern>
<include-pattern>
*/core/includes/*
</include-pattern>
<include-pattern>
*/core/profiles/*
</include-pattern>
<include-pattern>
*/core/recipes/*
</include-pattern>
<include-pattern>
*/core/themes/*
</include-pattern>
</rule>
<rule
ref=
"Drupal.Files.TxtFileLineLength"
/>
<rule
ref=
"Drupal.Formatting.MultiLineAssignment"
/>
<rule
ref=
"Drupal.Formatting.MultipleStatementAlignment"
/>
...
...
This diff is collapsed.
Click to expand it.
tests/src/Traits/XBFieldTrait.php
+
1
−
0
View file @
2d3b4df9
...
...
@@ -161,6 +161,7 @@ trait XBFieldTrait {
private
function
assertNodeValues
(
Node
$node
,
array
$expected_component_ids
,
array
$expected_inputs
,
array
$expected_field_values
):
void
{
$nid
=
$node
->
id
();
assert
(
is_string
(
$nid
));
// Reset the node to ensure we're not getting a cached version.
$this
->
container
->
get
(
'entity_type.manager'
)
->
getStorage
(
'node'
)
...
...
This diff is collapsed.
Click to expand it.
Wim Leers
@wimleers
mentioned in merge request
!815 (merged)
·
1 month ago
mentioned in merge request
!815 (merged)
mentioned in merge request !815
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment