Hey,

I checked the Drupal best practices and found the following issues :

 phpcs --standard=DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md .

FILE: /home/vagrant/Code/d8/modules/contrib/pathauto/pathauto.module
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 33 | WARNING | Global constants should not be used, move it to a
    |         | class or interface
----------------------------------------------------------------------


FILE: ...me/vagrant/Code/d8/modules/contrib/pathauto/src/AliasCleaner.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 32 WARNINGS AFFECTING 32 LINES
----------------------------------------------------------------------
 289 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 290 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 291 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 292 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 293 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 294 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 295 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 296 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 297 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 298 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 299 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 300 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 301 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 302 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 303 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 304 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 305 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 306 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 307 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 308 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 309 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 310 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 311 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 312 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 313 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 314 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 315 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 316 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 317 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 318 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 319 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
 320 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
----------------------------------------------------------------------


FILE: ...ode/d8/modules/contrib/pathauto/src/Form/PathautoAdminDelete.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
  59 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 135 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 139 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
----------------------------------------------------------------------


FILE: ...de/d8/modules/contrib/pathauto/src/Form/PathautoSettingsForm.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------
  91 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 130 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 133 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 160 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 209 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 244 | WARNING | Unused variable $original_entity_types.
----------------------------------------------------------------------


FILE: ...nt/Code/d8/modules/contrib/pathauto/src/Form/PatternEditForm.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 132 | WARNING | Unused variable $condition_id.
 249 | WARNING | t() calls should be avoided in classes, use
     |         | dependency injection and $this->t() instead
----------------------------------------------------------------------


FILE: ...grant/Code/d8/modules/contrib/pathauto/src/PathautoGenerator.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
 253 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 254 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 260 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
----------------------------------------------------------------------


FILE: ...d8/modules/contrib/pathauto/src/Tests/PathautoMassDeleteTest.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 174 | WARNING | Unused variable $id.
----------------------------------------------------------------------


FILE: ...8/modules/contrib/pathauto/src/Tests/PathautoTaxonomyWebTest.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 57 | WARNING | Unused variable $vocabulary.
----------------------------------------------------------------------


FILE: ...modules/pathauto_string_id_test/pathauto_string_id_test.info.yml
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 7 | WARNING | All dependencies must be prefixed with the project
   |         | name, for example "drupal:"
----------------------------------------------------------------------


FILE: ...o/tests/modules/pathauto_views_test/pathauto_views_test.info.yml
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 8 | WARNING | All dependencies must be prefixed with the project
   |         | name, for example "drupal:"
----------------------------------------------------------------------


FILE: ...modules/contrib/pathauto/tests/src/Kernel/PathautoKernelTest.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 367 | WARNING | There must be no blank line following an inline
     |         | comment
 406 | WARNING | Unused variable $vocab.
----------------------------------------------------------------------


FILE: .../modules/contrib/pathauto/tests/src/Kernel/PathautoTokenTest.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 54 | WARNING | Variable $values is undefined.
----------------------------------------------------------------------


FILE: ...dules/contrib/views_bulk_operations/src/Form/ConfigureAction.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 88 | WARNING | Unused variable $selection.
----------------------------------------------------------------------

Time: 2.5 secs; Memory: 26Mb

I'll try to fixed them and upload a patch for these issues.

CommentFileSizeAuthor
#39 Drupal_best_practices-2933046-39.patch23.75 KBrohit.rawat619
#35 Drupal_best_practices-2933046-35.patch80.42 KBarti_parmar
#31 2933046-31.patch81.01 KBviniciuscosta
#26 fix_coding_standard-2933046-26.patch23.81 KBrohit.rawat619
#22 interdiff_19-21.txt24.55 KBvictoria-marina
#21 2933046-21.patch47.53 KBvictoria-marina
#19 2933046-19.patch23.11 KBsaphemmy
#15 2933046-14.patch72.86 KBsaphemmy
#12 interdiff_10-12.txt23.1 KBswatichouhan012
#12 2933046-12.patch26.25 KBswatichouhan012
#10 interdiff_7-10.txt29.94 KBswatichouhan012
#10 2933046-10.patch26.73 KBswatichouhan012
#7 PathautoMassDeleteTest_Error.txt1.74 KBpramodga
#7 drupal_best_practices-2933046-7.patch4.94 KBpramodga
#6 pathauto_module_drupal-standard-issues.txt1.54 KBpramodga
#5 drupal_best_practices-2933046-5.patch5.46 KBpramodga
#5 pathauto_module_drupal-standard-issues.txt468 bytespramodga
#2 pathauto-drupal_practices-2933046-2-8.patch24.4 KBteeyo

Issue fork pathauto-2933046

Command icon Show commands

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

teeyo created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, 2: pathauto-drupal_practices-2933046-2-8.patch, failed testing. View results

pramodga’s picture

Assigned: teeyo » pramodga
pramodga’s picture

Hello,

The attached file contains the list of Drupal coding standard issues and the patch file contains the issue fixing code for the .module file only

I'm reviewing all the file one by one, and I'm using Drupal coder.

pramodga’s picture

FileSize
1.54 KB

Attached is the list of issues fixed under the committed patch.

pramodga’s picture

Status: Needs work » Needs review
FileSize
4.94 KB
1.74 KB

Hello,

This is another patch fixing Drupal Coding Standard Issues for "PathautoMassDeleteTest.php" file.
Attaching error and patch fix file.

Thanks

pramodga’s picture

Assigned: pramodga » Unassigned
Berdir’s picture

Category: Bug report » Task
Status: Needs review » Needs work

Short array syntax was fixed elswhere.

swatichouhan012’s picture

Status: Needs work » Needs review
Issue tags: +VbContribution2020
FileSize
26.73 KB
29.94 KB

Short array syntax was fixed in pathhauto, still here is issue of deprecated t function, i have created a patch to fix this kindly review.

Status: Needs review » Needs work

The last submitted patch, 10: 2933046-10.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

swatichouhan012’s picture

Status: Needs work » Needs review
FileSize
26.25 KB
23.1 KB

t() can be removed from test classes. Without conversion of t() to $this->t()

https://www.drupal.org/docs/8/testing/phpunit-in-drupal-8/phpunit-browse...

Status: Needs review » Needs work

The last submitted patch, 12: 2933046-12.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

saphemmy’s picture

Assigned: Unassigned » saphemmy

I will work on this.

saphemmy’s picture

Assigned: saphemmy » Unassigned
Status: Needs work » Needs review
FileSize
72.86 KB

Fixed best practices with deprecated code within test:

DEPRECATED --- REPLACED WITH:
assertFieldChecked --- assertSession()->checkboxChecked() 
assertNoFieldChecked --- assertSession()->checkboxNotChecked()
assertFieldByName --- assertSession()->fieldExists()  or assertSession()->buttonExists() or assertSession()->fieldValueEquals()

assertNoFieldById --- assertSession()->fieldExists() or assertSession()->buttonExists() or assertSession()->fieldValueEquals()

Example:

-    $this->assertNoFieldById('edit-machine-name', 'views_block__test_view_block_1', 'The machine name is hidden on the views block form.');
+    $this->assertSession()->fieldNotExists('edit-machine-name', NULL, 'The machine name is hidden on the views block form.');

assertText --- assertSession()->pageTextContains()
assertUrl --- assertSession()->addressEquals
assertRaw --- assertSession()->responseContains() or assertSession()->responseNotContains()
assertLink ---- assertSession()->linkExists()
assertNoLink --- assertSession()->linkNotExists
assertLinkByHref --- assertSession()->linkByHrefExists()
assertOptionSelected --- assertSession()->optionExists() 

Status: Needs review » Needs work

The last submitted patch, 15: 2933046-14.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

saphemmy’s picture

Assigned: Unassigned » saphemmy

Will fix the broken tests as there seem to be no deprecated codes anymore.

Berdir’s picture

You are mixing many different things in a single big patch, that is very hard to review and will most likely not get committed like this as my time is very limited. There are probably already issues for deprecated method changes, if not, it should be split out.

saphemmy’s picture

Assigned: saphemmy » Unassigned
Status: Needs work » Needs review
FileSize
23.11 KB

As commented by Berdir: Mixing many different things in the previous patch #2933046-18: Drupal best practices I fixed the scope of the issue and will definitely create a new issue for deprecated codes

victoria-marina’s picture

Assigned: Unassigned » victoria-marina
victoria-marina’s picture

Assigned: victoria-marina » Unassigned
FileSize
47.53 KB

Hi!
I made a patch that complements the previous one. Please review it.

victoria-marina’s picture

FileSize
24.55 KB
Vighneshh’s picture

Assigned: Unassigned » Vighneshh

i will review this

Berdir’s picture

Assigned: Vighneshh » Unassigned
Status: Needs review » Needs work

All the D10 related changes have been committed elsewhere, this will require a big and possibly painful reroll.

Disclaimer: This issue change does not mean that I mean to commit this soon. As commented elsewhere, reviewing huge coding standard change issues is a lot of work and I'd strongly recommend to not work on such issues without discussing such changes with the maintainer *first*, to avoid wasting time (both yours and that of maintainers) :)

rohit.rawat619’s picture

Assigned: Unassigned » rohit.rawat619

i am working in this issue.

rohit.rawat619’s picture

Assigned: rohit.rawat619 » Unassigned
Status: Needs work » Needs review
FileSize
23.81 KB

I have fix some coding standard please review on this

dipesh_goswami made their first commit to this issue’s fork.

vitorbs’s picture

All the t() function were removed, i think we just need to use $this->t() instead, to avoid any type of bugs.

vitorbs’s picture

Status: Needs review » Needs work
viniciuscosta’s picture

Assigned: Unassigned » viniciuscosta

Hii, I am work on it =)

viniciuscosta’s picture

Assigned: viniciuscosta » Unassigned
Status: Needs work » Needs review
FileSize
81.01 KB
Webbeh’s picture

As a friendly reminder, please post interdiffs between patches if you're conducting meaningful work, so maintainers and other users can understand the changes.

Alternatively, this would be much more succinct to use the fork + MR functionaliy, but I understand that doesn't assign Drupal.org credit upon a commit/MR, so it may not be as attractive.

Status: Needs review » Needs work

The last submitted patch, 31: 2933046-31.patch, failed testing. View results

arti_parmar’s picture

Assigned: Unassigned » arti_parmar
arti_parmar’s picture

Status: Needs work » Needs review
FileSize
80.42 KB

i have created a new patch to fix this-"Drupal best practices", kindly review.
Thanks!

Status: Needs review » Needs work

The last submitted patch, 35: Drupal_best_practices-2933046-35.patch, failed testing. View results

Webbeh’s picture

To reiterate:

As a friendly reminder, please post interdiffs between patches if you're conducting meaningful work, so maintainers and other users can understand the changes.

rohit.rawat619’s picture

Assigned: arti_parmar » rohit.rawat619
Status: Needs work » Active
rohit.rawat619’s picture

Assigned: rohit.rawat619 » Unassigned
Status: Active » Needs review
FileSize
23.75 KB
Akshay kashyap’s picture

Thanks for the work @RohitRawat676
Applied Patch cleanly 39
But few error showing when i run vendor/bin/phpcs --standard=Drupal,DrupalPractice modules/pathauto command so please fix all these coding standard issues.

FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/FunctionalJavascript/PathautoLocaleTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------------
  31 | ERROR | The array declaration extends to column 83 (the limit is 80). The array content should be split up over multiple lines
  45 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
  64 | ERROR | The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
  82 | ERROR | The array declaration extends to column 97 (the limit is 80). The array content should be split up over multiple lines
  86 | ERROR | The array declaration extends to column 120 (the limit is 80). The array content should be split up over multiple lines
 203 | ERROR | The array declaration extends to column 133 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/FunctionalJavascript/PathautoUiTest.php
----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------
  60 | ERROR   | Doc comment is empty
  73 | ERROR   | Doc comment is empty
 111 | WARNING | Line exceeds 80 characters; contains 97 characters
----------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Functional/PathautoTestHelperTrait.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 17 LINES
---------------------------------------------------------------------------------------------------------------------------------------
  73 | ERROR | Doc comment is empty
  80 | ERROR | The array declaration extends to column 223 (the limit is 80). The array content should be split up over multiple lines
  83 | ERROR | Doc comment is empty
  94 | ERROR | Doc comment is empty
 105 | ERROR | Doc comment is empty
 112 | ERROR | Doc comment is empty
 123 | ERROR | Doc comment is empty
 134 | ERROR | Doc comment is empty
 147 | ERROR | Doc comment is empty
 156 | ERROR | Doc comment is empty
 164 | ERROR | Doc comment is empty
 172 | ERROR | Missing short description in doc comment
 173 | ERROR | Missing parameter comment
 175 | ERROR | Description for the @return value is missing
 189 | ERROR | Doc comment is empty
 203 | ERROR | Doc comment is empty
 218 | ERROR | Doc comment is empty
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Functional/PathautoNodeWebTest.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
  30 | ERROR   | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
 182 | ERROR   | Missing short description in doc comment
 187 | ERROR   | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
 208 | WARNING | Line exceeds 80 characters; contains 92 characters
 225 | WARNING | Line exceeds 80 characters; contains 81 characters
 290 | ERROR   | The array declaration extends to column 125 (the limit is 80). The array content should be split up over multiple lines
-----------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Functional/PathautoEnablingEntityTypesTest.php
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
 61 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Functional/PathautoSettingsFormWebTest.php
-------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
 222 | ERROR | Type hint "array" missing for $settings
-------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Functional/PathautoMassDeleteTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------
 100 | ERROR | The array declaration extends to column 150 (the limit is 80). The array content should be split up over multiple lines
 163 | ERROR | The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
 163 | ERROR | The array declaration extends to column 110 (the limit is 80). The array content should be split up over multiple lines
 194 | ERROR | The array declaration extends to column 98 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Functional/PathautoBulkUpdateTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
  73 | ERROR | Doc comment is empty
 108 | ERROR | The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
 108 | ERROR | The array declaration extends to column 101 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Kernel/PathautoTokenTest.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
  23 | ERROR   | Doc comment is empty
  41 | WARNING | Line exceeds 80 characters; contains 81 characters
  95 | ERROR   | The array declaration extends to column 156 (the limit is 80). The array content should be split up over multiple lines
  98 | ERROR   | The array declaration extends to column 125 (the limit is 80). The array content should be split up over multiple lines
 101 | ERROR   | The array declaration extends to column 298 (the limit is 80). The array content should be split up over multiple lines
 104 | ERROR   | The array declaration extends to column 251 (the limit is 80). The array content should be split up over multiple lines
 111 | ERROR   | Doc comment is empty
-----------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Kernel/PathautoEntityWithStringIdTest.php
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
 78 | ERROR | Parameter tags must be defined first in a doc comment
------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/tests/src/Kernel/PathautoKernelTest.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 21 ERRORS AND 2 WARNINGS AFFECTING 22 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
  31 | ERROR   | Missing member variable doc comment
  31 | ERROR   | The array declaration extends to column 186 (the limit is 80). The array content should be split up over multiple lines
  33 | ERROR   | Missing member variable doc comment
  35 | ERROR   | Missing short description in doc comment
  40 | ERROR   | Missing short description in doc comment
  45 | ERROR   | Doc comment is empty
 280 | WARNING | Line exceeds 80 characters; contains 102 characters
 307 | ERROR   | The array declaration extends to column 116 (the limit is 80). The array content should be split up over multiple lines
 316 | ERROR   | The array declaration extends to column 130 (the limit is 80). The array content should be split up over multiple lines
 340 | ERROR   | Doc comment short description must be on a single line, further text should be a separate paragraph
 357 | WARNING | Line exceeds 80 characters; contains 83 characters
 367 | ERROR   | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 386 | ERROR   | The array declaration extends to column 130 (the limit is 80). The array content should be split up over multiple lines
 388 | ERROR   | The array declaration extends to column 88 (the limit is 80). The array content should be split up over multiple lines
 400 | ERROR   | The array declaration extends to column 124 (the limit is 80). The array content should be split up over multiple lines
 404 | ERROR   | The array declaration extends to column 144 (the limit is 80). The array content should be split up over multiple lines
 426 | ERROR   | Doc comment is empty
 463 | ERROR   | The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple lines
 471 | ERROR   | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
 476 | ERROR   | The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
 497 | ERROR   | The array declaration extends to column 110 (the limit is 80). The array content should be split up over multiple lines
 498 | ERROR   | The array declaration extends to column 110 (the limit is 80). The array content should be split up over multiple lines
 562 | ERROR   | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
-----------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/Entity/PathautoPattern.php
---------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------
 100 | ERROR | Missing short description in doc comment
 126 | ERROR | Missing short description in doc comment
 131 | ERROR | Missing short description in doc comment
---------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/PathautoWidget.php
-------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------
 35 | WARNING | Line exceeds 80 characters; contains 144 characters
-------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/EventSubscriber/PathautoSettingsCacheTag.php
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
 16 | ERROR | Missing short description in doc comment
---------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/Plugin/Deriver/EntityAliasTypeDeriver.php
------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
 23 | ERROR | Missing short description in doc comment
 35 | ERROR | Missing short description in doc comment
------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/Plugin/pathauto/AliasType/EntityAliasTypeBase.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 193 | ERROR | The array declaration extends to column 126 (the limit is 80). The array content should be split up over multiple lines
 297 | ERROR | The text '@deprecated Use \Drupal\pathauto\PathautoState::bulkDelete() instead.' does not match the standard format: @deprecated in %deprecation-version% and is removed from %removal-version%.
     |       | %extra-info%.
 297 | ERROR | Each @deprecated tag must have a @see tag immediately following it
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/Plugin/migrate/source/PathautoPattern.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
  98 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
 117 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
--------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/AliasUniquifierInterface.php
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------
 13 | WARNING | Line exceeds 80 characters; contains 81 characters
-----------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/AliasTypeBatchUpdateInterface.php
----------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------
 22 | ERROR | Type hint "array" missing for $context
 30 | ERROR | Type hint "array" missing for $context
----------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/VerboseMessenger.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
 68 | ERROR | The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/PathautoFieldItemList.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
  7 | ERROR | Doc comment is empty
 12 | ERROR | Missing short description in doc comment
 32 | ERROR | Missing short description in doc comment
--------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/AliasCleaner.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 33 ERRORS AFFECTING 33 LINES
---------------------------------------------------------------------------------------------------------------------------------------
 197 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
 295 | ERROR | The array declaration extends to column 106 (the limit is 80). The array content should be split up over multiple lines
 296 | ERROR | The array declaration extends to column 120 (the limit is 80). The array content should be split up over multiple lines
 297 | ERROR | The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
 298 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
 299 | ERROR | The array declaration extends to column 90 (the limit is 80). The array content should be split up over multiple lines
 300 | ERROR | The array declaration extends to column 90 (the limit is 80). The array content should be split up over multiple lines
 301 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
 302 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
 303 | ERROR | The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
 304 | ERROR | The array declaration extends to column 103 (the limit is 80). The array content should be split up over multiple lines
 305 | ERROR | The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
 306 | ERROR | The array declaration extends to column 103 (the limit is 80). The array content should be split up over multiple lines
 307 | ERROR | The array declaration extends to column 103 (the limit is 80). The array content should be split up over multiple lines
 308 | ERROR | The array declaration extends to column 104 (the limit is 80). The array content should be split up over multiple lines
 309 | ERROR | The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
 310 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
 311 | ERROR | The array declaration extends to column 92 (the limit is 80). The array content should be split up over multiple lines
 312 | ERROR | The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
 313 | ERROR | The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
 314 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
 315 | ERROR | The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
 316 | ERROR | The array declaration extends to column 114 (the limit is 80). The array content should be split up over multiple lines
 317 | ERROR | The array declaration extends to column 91 (the limit is 80). The array content should be split up over multiple lines
 318 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
 319 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
 320 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
 321 | ERROR | The array declaration extends to column 101 (the limit is 80). The array content should be split up over multiple lines
 322 | ERROR | The array declaration extends to column 97 (the limit is 80). The array content should be split up over multiple lines
 323 | ERROR | The array declaration extends to column 98 (the limit is 80). The array content should be split up over multiple lines
 324 | ERROR | The array declaration extends to column 101 (the limit is 80). The array content should be split up over multiple lines
 325 | ERROR | The array declaration extends to column 89 (the limit is 80). The array content should be split up over multiple lines
 326 | ERROR | The array declaration extends to column 94 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/AliasUniquifier.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
 105 | WARNING | Line exceeds 80 characters; contains 81 characters
--------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/Commands/PathautoCommands.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AFFECTING 13 LINES
---------------------------------------------------------------------------------------------------------------------------------------
  65 | ERROR | Doc comment short description must start with a capital letter
  69 | ERROR | Parameter tags must be defined first in a doc comment
 100 | ERROR | The array declaration extends to column 110 (the limit is 80). The array content should be split up over multiple lines
 100 | ERROR | The array declaration extends to column 109 (the limit is 80). The array content should be split up over multiple lines
 107 | ERROR | Parameter $options is not described in comment
 112 | ERROR | Parameter tags must be defined first in a doc comment
 143 | ERROR | The array declaration extends to column 97 (the limit is 80). The array content should be split up over multiple lines
 143 | ERROR | The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
 148 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
 170 | ERROR | Missing short description in doc comment
 183 | ERROR | Missing short description in doc comment
 197 | ERROR | Missing short description in doc comment
 201 | ERROR | @throws tag comment must end with a full stop
 216 | ERROR | Missing short description in doc comment
 220 | ERROR | @throws tag comment must end with a full stop
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/Form/PathautoBulkUpdateForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
 136 | ERROR | The array declaration extends to column 110 (the limit is 80). The array content should be split up over multiple lines
 136 | ERROR | The array declaration extends to column 109 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/Form/PatternEditForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------------
  25 | ERROR | Missing short description in doc comment
 124 | ERROR | The array declaration extends to column 86 (the limit is 80). The array content should be split up over multiple lines
 143 | ERROR | The array declaration extends to column 102 (the limit is 80). The array content should be split up over multiple lines
 226 | ERROR | The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/Form/PathautoAdminDelete.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------------
  90 | ERROR | The array declaration extends to column 181 (the limit is 80). The array content should be split up over multiple lines
 128 | ERROR | The array declaration extends to column 97 (the limit is 80). The array content should be split up over multiple lines
 128 | ERROR | The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines
 134 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
 138 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over multiple lines
 139 | ERROR | The array declaration extends to column 100 (the limit is 80). The array content should be split up over multiple lines
 150 | ERROR | The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/PathautoGeneratorInterface.php
-------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------
 13 | ERROR | Doc comment short description must start with a capital letter
 13 | ERROR | Doc comment short description must end with a full stop
 18 | ERROR | Doc comment short description must start with a capital letter
 18 | ERROR | Doc comment short description must end with a full stop
 23 | ERROR | Doc comment short description must start with a capital letter
 23 | ERROR | Doc comment short description must end with a full stop
 53 | ERROR | Description for the @return value is missing
 81 | ERROR | Parameter comment must start with a capital letter
-------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/AliasCleanerInterface.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
  5 | ERROR   | Missing short description in doc comment
 16 | WARNING | Line exceeds 80 characters; contains 81 characters
 55 | WARNING | Line exceeds 80 characters; contains 81 characters
 96 | ERROR   | Type hint "array" missing for $replacements
 96 | ERROR   | Type hint "array" missing for $data
 96 | ERROR   | Type hint "array" missing for $options
--------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/PathautoPatternInterface.php
-----------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
-----------------------------------------------------------------------------------
  15 | ERROR | Description for the @return value is missing
  22 | ERROR | Missing parameter comment
  31 | ERROR | Description for the @return value is missing
  35 | ERROR | Missing short description in doc comment
  36 | ERROR | Description for the @return value is missing
  43 | ERROR | Description for the @return value is missing
  60 | ERROR | Description for the @return value is missing
 128 | ERROR | Description for the @return value is missing
 149 | ERROR | Description for the @return value is missing
 174 | ERROR | Missing parameter type
 177 | ERROR | Description for the @return value is missing
-----------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/PathautoState.php
------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------
  30 | ERROR | Missing short description in doc comment
 123 | ERROR | Description for the @return value is missing
------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/src/AliasStorageHelperInterface.php
--------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------
 105 | ERROR | Missing parameter type
 130 | ERROR | Type hint "array" missing for $pids
--------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/modules/pathauto/pathauto.api.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 10 | ERROR | Missing short description in doc comment
----------------------------------------------------------------------
Akshay kashyap’s picture

Status: Needs review » Needs work
Webbeh’s picture

Please read the issue before contributing.

Removing files uploaded in #39 (and other, non-interdiff patches) because, to reiterate again:

As a friendly reminder, please post interdiffs between patches if you're conducting meaningful work, so maintainers and other users can understand the changes.

Frankly, I recommend closing this issue as "Will Not Fix" and handling these outside of an issue, as this issue is largely a drive-by patch effort rather than coordinated efforts.

Yashaswi18 made their first commit to this issue’s fork.