Coding Standard issues

Created on 10 September 2024, 3 months ago

Problem/Motivation

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

FILE: .../web/modules/custom/date_ical/src/Feeds/Parser/DateiCalFeedsParser.php
--------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------
48 | ERROR | Unknown type hint "array" found for $plugin_definition
--------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/date_ical/src/Feeds/Item/ICalItem.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 18 LINES
---------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | [x] Expected "stringtimestamp" but found "string timestamp" for @var tag in member variable comment
22 | ERROR | [x] Expected "stringsummary" but found "string summary" for @var tag in member variable comment
29 | ERROR | [x] Expected "stringcomment" but found "string comment" for @var tag in member variable comment
36 | ERROR | [x] Expected "stringdescription" but found "string description" for @var tag in member variable comment
43 | ERROR | [x] Expected "stringtimestamp" but found "string timestamp" for @var tag in member variable comment
50 | ERROR | [x] Expected "stringtimestamp" but found "string timestamp" for @var tag in member variable comment
57 | ERROR | [x] Expected "stringuid" but found "string uid" for @var tag in member variable comment
64 | ERROR | [x] Expected "stringurl" but found "string url" for @var tag in member variable comment
71 | ERROR | [x] Expected "stringlocation" but found "string location" for @var tag in member variable comment
78 | ERROR | [x] Expected "string|arraycategories" but found "string|array categories" for @var tag in member variable comment
85 | ERROR | [x] Expected "stringstatus" but found "string status" for @var tag in member variable comment
92 | ERROR | [x] Expected "arraygeo" but found "array geo" for @var tag in member variable comment
99 | ERROR | [x] Expected "stringorganizer" but found "string organizer" for @var tag in member variable comment
106 | ERROR | [x] Expected "string|arrayattendee" but found "string|array attendee" for @var tag in member variable comment
113 | ERROR | [x] Expected "stringalarm" but found "string alarm" for @var tag in member variable comment
120 | ERROR | [x] Expected "stringattach" but found "string attach" for @var tag in member variable comment
127 | ERROR | [x] Expected "stringtimestamp" but found "string timestamp" for @var tag in member variable comment
134 | ERROR | [x] Expected "stringtimestamp" but found "string timestamp" for @var tag in member variable comment
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/date_ical/src/Plugin/views/row/DateICal.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
243 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over multiple lines
291 | ERROR | The array declaration extends to column 112 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

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

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

4.0

Component

Other

Created by

🇵🇪Peru alyaj2a

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024