Closed (fixed)
Project:
Easy Breadcrumb
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2025 at 20:28 UTC
Updated:
15 Aug 2026 at 04:20 UTC
Jump to comment: Most recent
When there are failing tests maintainership is slightly more difficult because you can't depend on the tests to catch new issues.
Run PHPCS on the repo. See https://addons.ddev.com/addons/ddev/ddev-drupal-contrib for help.
Address everything mentioned in this report.
FILE: /var/www/html/web/modules/custom/easy_breadcrumb/easy_breadcrumb.install
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
153 | ERROR | [x] Expected 1 newline at end of file; 0 found (Drupal.Files.EndFileNewline.NoneFound)
------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/custom/easy_breadcrumb/src/TitleResolver.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
74 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters (Drupal.Files.LineLength.TooLong)
103 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
104 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/custom/easy_breadcrumb/tests/src/Kernel/EasyBreadcrumbBuilderTest.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
231 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
232 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found (Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar)
232 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters (Drupal.Files.LineLength.TooLong)
233 | ERROR | [x] Expected 5 space(s) before asterisk; 3 found (Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar)
237 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" (Generic.PHP.UpperCaseConstant.Found)
272 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters (Drupal.Files.LineLength.TooLong)
277 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true" (Generic.PHP.UpperCaseConstant.Found)
312 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast)
313 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody)
---------------------------------------------------------------------------------------------------------------------------------------------
Add a merge request.
Update gitlab-ci.yml to disallow merging if tests are failing.
N/A
N/A
N/A
N/A
N/A
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
trackleft2Comment #4
trackleft2This merge request is blocked by https://www.drupal.org/project/easy_breadcrumb/issues/3501451 because the merge request there deletes a file that this MR relies on being gone.
Once that merge request is merged, this fork's codebase should be updated. that will make all of the tests pass if AFAICT
Comment #6
svendecabooterMerge request has been updated, since the blocking issue is now resolved.
PHPCS pipeline is passing now.
Comment #7
loopduplicate commentedThanks all for the help on this. The MR was a little outdated. I'll be creating a new MR for this. It's simpler than MR143. I also found particular things potentially problematic with MR143, like the use of
// phpcs:disableand the shortening of commments like "load the entity if present and use that field" to "use it", instead of just wrapping the comment.Comment #9
loopduplicate commentedComment #10
loopduplicate commentedOK, all set. Back to Needs review.
Comment #11
trackleft2LGTM Thanks!
Comment #12
loopduplicate commentedJust bumping this. It would be nice to get this in. For example, the automated Drupal 12 issue keeps flagging some things that are fixed in this MR. Once this gets in, all tests will pass. Wouldn't that be nice? :3
Comment #17
loopduplicate commentedOK, new MR in #13. It has the same code from the original request, but it's up to date with 2.x-dev and it has one more fix that was introduced with the addition of tugboat, which was just a missing new line at the end of the file.
Comment #18
loopduplicate commentedComment #21
loopduplicate commentedThanks @trackleft2 and @svendecabooter