Fix PHPCS, phpstan & cspell

Created on 8 September 2024, 2 months ago

Problem/Motivation

Fix PHPCS, phpstan & cspell

phpcs:

 ------ ----------------------------------------------------------------------- 
  Line   src/Twig/DevelDebugLogExtension.php                                    
 ------ ----------------------------------------------------------------------- 
  43     Parameter $env of method                                               
         Drupal\devel_debug_log\Twig\DevelDebugLogExtension::ddl() has invalid  
         type Twig_Environment.                                                 
  53     Class Twig_Template not found.                                         
         šŸ’” Learn more at https://phpstan.org/user-guide/discovering-symbols    
 ------ ----------------------------------------------------------------------- 

ESLint:

*****************************************************************************************************************************
These are the current ESLINT errors and warnings 
*****************************************************************************************************************************
$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml $_ESLINT_EXTRA . || true
/builds/project/devel_debug_log/web/modules/custom/devel_debug_log/drupalci.yml
   7:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
   9:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  12:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  13:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  14:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  15:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  16:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  17:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  18:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  19:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  20:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  23:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  24:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  25:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  26:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  27:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  37:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
āœ– 17 problems (17 errors, 0 warnings)
$ printf "$DIVIDER\nNow running ESLINT using the --fix option. Any errors shown below are not fixable automatically.$DIVIDER\n"
 
*****************************************************************************************************************************
Now running ESLINT using the --fix option. Any errors shown below are not fixable automatically. 
*****************************************************************************************************************************
$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml $_ESLINT_EXTRA --fix . || EXIT_CODE_FIX=$?
/builds/project/devel_debug_log/web/modules/custom/devel_debug_log/drupalci.yml
   7:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
   9:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  12:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  13:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  14:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  15:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  16:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  17:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  18:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  19:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  20:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  23:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  24:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  25:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  26:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  27:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
  37:7  error  Empty mapping values are forbidden  yml/no-empty-mapping-value
āœ– 17 problems (17 errors, 0 warnings)

cspell:

csslint
dbcreate
Kint
kint
phplint
runcontainers
startcontainers

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

šŸ“Œ Task
Status

Needs work

Version

2.0

Component

Code

Created by

šŸ‡©šŸ‡ŖGermany Anybody Porta Westfalica

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