- First commit to issue fork.
- @gun2dru opened merge request.
- Status changed to Needs review
almost 2 years ago 8:13am 10 February 2023 - ๐ฎ๐ณIndia rassoni Bangalore
Rashmisoni โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia rassoni Bangalore
Merge request resolve errors above but found few more issues.
FILE: /Users/rashmi.krishnachand/projects/drupal-d10/modules/contrib/facets/tests/src/Unit/Plugin/processor/ListItemProcessorTest.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
50 | ERROR | Class property $processor_plugin_manager should use lowerCamel naming without underscores
-------------------------------------------------------------------------------------------------------------------------------------FILE: /Users/rashmi.krishnachand/projects/drupal-d10/modules/contrib/facets/README.md
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------
33 | WARNING | Line exceeds 80 characters; contains 91 characters
-------------------------------------------------------------------------------------FILE: /Users/rashmi.krishnachand/projects/drupal-d10/modules/contrib/facets/modules/facets_summary/src/Plugin/views/filter/FacetsSummaryFilter.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------
30 | ERROR | Class property $no_operator should use lowerCamel naming without underscores
--------------------------------------------------------------------------------------------------------------------------------------------------FILE: /Users/rashmi.krishnachand/projects/drupal-d10/modules/contrib/facets/src/Plugin/views/filter/FacetsFilter.php
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
29 | ERROR | Class property $no_operator should use lowerCamel naming without underscores
--------------------------------------------------------------------------------------------------------------------Time: 2.6 secs; Memory: 16MB
- Status changed to Needs work
almost 2 years ago 8:13am 20 February 2023 - Status changed to Needs review
almost 2 years ago 3:04pm 20 February 2023 - ๐ฎ๐ณIndia Adil_Siddiqui
Patch created for all the above phpcs issues
The last submitted patch, 12: 3327592-12.patch, failed testing. View results โ
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.- Status changed to Needs work
almost 2 years ago 8:46pm 20 February 2023 - Assigned to arpitk
- ๐ฎ๐ณIndia arpitk
Hi, running phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .
After applying patch #12 returns these errors.FILE: /home/arpitkayare/drupal_9.5/web/modules/contrib/facets/src/Plugin/views/FacetsViewsPluginTrait.php --------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------- 41 | ERROR | [x] Use null coalesce operator instead of ternary operator. --------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------- FILE: /home/arpitkayare/drupal_9.5/web/modules/contrib/facets/facets.install ------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------- 95 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option. ------------------------------------------------------------------------------------------------------------------------------------------- FILE: /home/arpitkayare/drupal_9.5/web/modules/contrib/facets/modules/facets_summary/src/Plugin/views/FacetsSummaryViewsPluginTrait.php --------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------- 40 | ERROR | [x] Use null coalesce operator instead of ternary operator. --------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------- FILE: /home/arpitkayare/drupal_9.5/web/modules/contrib/facets/modules/facets_summary/src/Plugin/facets_summary/processor/ShowCountProcessor.php ----------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------------------------------------- 34 | ERROR | [x] Use null coalesce operator instead of ternary operator. ----------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -----------------------------------------------------------------------------------------------------------------------------------------------
Moving to needs work and working on remaining issues.
Thanks!
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 7:30pm 19 May 2023 - Open on Drupal.org โCore: 10.1.x + Environment: PHP 8.1 & MySQL 8last update
over 1 year ago Waiting for branch to pass - Status changed to Closed: outdated
10 months ago 1:16pm 10 April 2024