Coding Standard Issues

Created on 15 November 2024, 5 months ago

Problem/Motivation

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

FILE: .../web/modules/custom/search_api_solr_nlp/search_api_solr_nlp.install
-----------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
51 | ERROR | [x] Concat operator must be surrounded by a single space
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/search_api_solr_nlp/src/EventSubscriber/SearchApiSolrSubscriber.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------
16 | ERROR | [ ] Missing short description in doc comment
17 | ERROR | [x] Expected "array The models" but found "array The models." for @var tag in member variable comment
32 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
52 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
69 | ERROR | [x] Expected 1 space after "=>"; 2 found
71 | ERROR | [x] Expected 1 blank line after function; 0 found
72 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: .../web/modules/custom/search_api_solr_nlp/.github/workflows/remove-old-artifacts.yml
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
20 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------

Steps to reproduce

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

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.1

Component

Code

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