Created on 16 July 2024, 6 months ago

Problem/Motivation

i have found some issue using this command :- phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig
Result:-

FILE: /var/www/html/test10/web/modules/custom/cloud/js/cloud_datatables_config.js
--------------------
FOUND 6 ERRORS AFFECTING 5 LINES
--------------------
  9 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 13 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 13 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 14 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 16 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 17 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
--------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/js/cloud_horizon_chart.js
--------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------
 78 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
--------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/js/cloud_config_location.js
--------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------
 213 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
--------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/js/cloud_geocoder.js
--------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------
 42 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 44 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
--------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_dashboard/js/index.js
--------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------
 1 | WARNING | File appears to be minified and cannot be processed
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_dashboard/css/index.css
--------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------
 1 | WARNING | File appears to be minified and cannot be processed
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/aws_cloud/js/aws_cloud_instance_monitor.js
--------------------
FOUND 3 ERRORS AFFECTING 2 LINES
--------------------
 14 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 77 | ERROR | [x] Expected 1 space before "="; 0 found
 77 | ERROR | [x] Expected 1 space after "="; 0 found
--------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/aws_cloud/js/aws_cloud_form.js
--------------------
FOUND 81 ERRORS AFFECTING 8 LINES
--------------------
 112 | ERROR | [x] Expected 1 space before "<"; 0 found
 112 | ERROR | [x] Expected 1 space after "<"; 0 found
 112 | ERROR | [x] Expected 1 space before "="; 0 found
 112 | ERROR | [x] Expected 1 space after "="; 0 found
 112 | ERROR | [x] Expected 1 space before ">"; 0 found
 112 | ERROR | [x] Expected 1 space after ">"; 0 found
 112 | ERROR | [x] Expected 1 space before "<"; 0 found
 112 | ERROR | [x] Expected 1 space after "<"; 0 found
 112 | ERROR | [x] Expected 1 space before "="; 0 found
 112 | ERROR | [x] Expected 1 space after "="; 0 found
 112 | ERROR | [x] Expected 1 space before ">"; 0 found
 112 | ERROR | [x] Expected 1 space after ">"; 0 found
 112 | ERROR | [x] Expected 1 space before "<"; 0 found
 112 | ERROR | [x] Expected 1 space after "<"; 0 found
 112 | ERROR | [x] Expected 1 space before "/"; 0 found
 112 | ERROR | [x] Expected 1 space after "/"; 0 found
 112 | ERROR | [x] Expected 1 space before ">"; 0 found
 112 | ERROR | [x] Expected 1 space after ">"; 0 found
 112 | ERROR | [x] Expected 1 space before "<"; 0 found
 112 | ERROR | [x] Expected 1 space after "<"; 0 found
 112 | ERROR | [x] Expected 1 space before "/"; 0 found
 112 | ERROR | [x] Expected 1 space after "/"; 0 found
 112 | ERROR | [x] Expected 1 space before ">"; 0 found
 112 | ERROR | [x] Expected 1 space after ">"; 0 found
 118 | ERROR | [x] Expected 1 space before "<"; 0 found
 118 | ERROR | [x] Expected 1 space after "<"; 0 found
 118 | ERROR | [x] Expected 1 space before "="; 0 found
 118 | ERROR | [x] Expected 1 space after "="; 0 found
 118 | ERROR | [x] Expected 1 space before ">"; 0 found
 119 | ERROR | [x] Expected 1 space after "<"; 0 found
 119 | ERROR | [x] Expected 1 space before "="; 0 found
 119 | ERROR | [x] Expected 1 space after "="; 0 found
 119 | ERROR | [x] Expected 1 space before ">"; 0 found
 119 | ERROR | [x] Expected 1 space after ">"; 0 found
 119 | ERROR | [x] Expected 1 space before "<"; 0 found
 119 | ERROR | [x] Expected 1 space after "<"; 0 found
 119 | ERROR | [x] Expected 1 space before "/"; 0 found
 119 | ERROR | [x] Expected 1 space after "/"; 0 found
 119 | ERROR | [x] Expected 1 space before ">"; 0 found
 120 | ERROR | [x] Expected 1 space after "<"; 0 found
 120 | ERROR | [x] Expected 1 space before "="; 0 found
 120 | ERROR | [x] Expected 1 space after "="; 0 found
 120 | ERROR | [x] Expected 1 space before ">"; 0 found
 120 | ERROR | [x] Expected 1 space after ">"; 0 found
 120 | ERROR | [x] Expected 1 space before "<"; 0 found
 120 | ERROR | [x] Expected 1 space after "<"; 0 found
 120 | ERROR | [x] Expected 1 space before "/"; 0 found
 120 | ERROR | [x] Expected 1 space after "/"; 0 found
 120 | ERROR | [x] Expected 1 space before ">"; 0 found
 121 | ERROR | [x] Expected 1 space after "<"; 0 found
 121 | ERROR | [x] Expected 1 space before "="; 0 found
 121 | ERROR | [x] Expected 1 space after "="; 0 found
 121 | ERROR | [x] Expected 1 space before ">"; 0 found
 121 | ERROR | [x] Expected 1 space before "<"; 0 found
 121 | ERROR | [x] Expected 1 space after "<"; 0 found
 121 | ERROR | [x] Expected 1 space before "/"; 0 found
 121 | ERROR | [x] Expected 1 space after "/"; 0 found
 121 | ERROR | [x] Expected 1 space before ">"; 0 found
 122 | ERROR | [x] Expected 1 space after "<"; 0 found
 122 | ERROR | [x] Expected 1 space before "="; 0 found
 122 | ERROR | [x] Expected 1 space after "="; 0 found
 122 | ERROR | [x] Expected 1 space before ">"; 0 found
 122 | ERROR | [x] Expected 1 space before "<"; 0 found
 122 | ERROR | [x] Expected 1 space after "<"; 0 found
 122 | ERROR | [x] Expected 1 space before "/"; 0 found
 122 | ERROR | [x] Expected 1 space after "/"; 0 found
 122 | ERROR | [x] Expected 1 space before ">"; 0 found
 123 | ERROR | [x] Expected 1 space after "<"; 0 found
 123 | ERROR | [x] Expected 1 space before "="; 0 found
 123 | ERROR | [x] Expected 1 space after "="; 0 found
 123 | ERROR | [x] Expected 1 space before ">"; 0 found
 123 | ERROR | [x] Expected 1 space before "<"; 0 found
 123 | ERROR | [x] Expected 1 space after "<"; 0 found
 123 | ERROR | [x] Expected 1 space before "/"; 0 found
 123 | ERROR | [x] Expected 1 space after "/"; 0 found
 123 | ERROR | [x] Expected 1 space before ">"; 0 found
 124 | ERROR | [x] Expected 1 space after "<"; 0 found
 124 | ERROR | [x] Expected 1 space before "/"; 0 found
 124 | ERROR | [x] Expected 1 space after "/"; 0 found
 124 | ERROR | [x] Expected 1 space before ">"; 0 found
 124 | ERROR | [x] Expected 1 space after ">"; 0 found
--------------------
PHPCBF CAN FIX THE 81 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/aws_cloud/js/aws_cloud_instance_monitor_horizon_chart.js
--------------------
FOUND 3 ERRORS AFFECTING 2 LINES
--------------------
 33 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 46 | ERROR | [x] Expected 1 space before "="; 0 found
 46 | ERROR | [x] Expected 1 space after "="; 0 found
--------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/aws_cloud/js/aws_cloud_image_import.js
--------------------
FOUND 23 ERRORS AFFECTING 2 LINES
--------------------
 11 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 30 | ERROR | [x] Expected 1 space before "<"; 0 found
 30 | ERROR | [x] Expected 1 space after "<"; 0 found
 30 | ERROR | [x] Expected 1 space before ">"; 0 found
 30 | ERROR | [x] Expected 1 space after ">"; 0 found
 30 | ERROR | [x] Expected 1 space before "<"; 0 found
 30 | ERROR | [x] Expected 1 space after "<"; 0 found
 30 | ERROR | [x] Expected 1 space before "="; 0 found
 30 | ERROR | [x] Expected 1 space after "="; 0 found
 30 | ERROR | [x] Expected 1 space before ">"; 0 found
 30 | ERROR | [x] Expected 1 space after ">"; 0 found
 30 | ERROR | [x] Expected 1 space before "<"; 0 found
 30 | ERROR | [x] Expected 1 space after "<"; 0 found
 30 | ERROR | [x] Expected 1 space before "/"; 0 found
 30 | ERROR | [x] Expected 1 space after "/"; 0 found
 30 | ERROR | [x] Expected 1 space before ">"; 0 found
 30 | ERROR | [x] Expected 1 space after ">"; 0 found
 30 | ERROR | [x] Expected 1 space before "<"; 0 found
 30 | ERROR | [x] Expected 1 space after "<"; 0 found
 30 | ERROR | [x] Expected 1 space before "/"; 0 found
 30 | ERROR | [x] Expected 1 space after "/"; 0 found
 30 | ERROR | [x] Expected 1 space before ">"; 0 found
 30 | ERROR | [x] Expected 1 space after ">"; 0 found
--------------------
PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/aws_cloud/js/aws_cloud_auto_refresh.js
--------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------
 23 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 70 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 73 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
--------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_launch_template_source_type.js
--------------------
FOUND 12 ERRORS AFFECTING 11 LINES
--------------------
  31 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  38 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  45 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  62 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  69 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  80 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  81 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  92 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 104 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 104 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 107 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 113 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_all_resources.js
--------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------
 29 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
--------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_project_costs_chart.js
--------------------
FOUND 6 ERRORS AFFECTING 5 LINES
--------------------
  69 | ERROR | [x] Expected 1 space before "?"; 0 found
  69 | ERROR | [x] Expected 1 space after "?"; 0 found
  89 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 131 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 136 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 142 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
--------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_namespace_costs_horizon_chart.js
--------------------
FOUND 11 ERRORS AFFECTING 5 LINES
--------------------
  62 | ERROR | [x] Expected 1 space before "?"; 0 found
  62 | ERROR | [x] Expected 1 space after "?"; 0 found
  85 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  89 | ERROR | [x] Expected 1 space before "-"; 0 found
  89 | ERROR | [x] Expected 1 space after "-"; 0 found
  89 | ERROR | [x] Expected 1 space before "-"; 0 found
  89 | ERROR | [x] Expected 1 space after "-"; 0 found
  89 | ERROR | [x] Expected 1 space before "-"; 0 found
  89 | ERROR | [x] Expected 1 space after "-"; 0 found
  95 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 100 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
--------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_entity_metrics.js
--------------------
FOUND 8 ERRORS AFFECTING 8 LINES
--------------------
  74 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  87 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  92 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  98 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 133 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 146 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 151 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 162 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
--------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_node_allocated_resources_horizon_chart.js
--------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------
 207 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
--------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_node_allocated_resources_chart.js
--------------------
FOUND 7 ERRORS AFFECTING 7 LINES
--------------------
 105 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 116 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 127 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 176 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 182 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 188 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 194 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
--------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_node_heatmap.js
--------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------
 246 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 248 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
--------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_node_allocated_resources.js
--------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------
  39 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 338 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
--------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_project_costs_horizon_chart.js
--------------------
FOUND 11 ERRORS AFFECTING 5 LINES
--------------------
 60 | ERROR | [x] Expected 1 space before "?"; 0 found
 60 | ERROR | [x] Expected 1 space after "?"; 0 found
 83 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 87 | ERROR | [x] Expected 1 space before "-"; 0 found
 87 | ERROR | [x] Expected 1 space after "-"; 0 found
 87 | ERROR | [x] Expected 1 space before "-"; 0 found
 87 | ERROR | [x] Expected 1 space after "-"; 0 found
 87 | ERROR | [x] Expected 1 space before "-"; 0 found
 87 | ERROR | [x] Expected 1 space after "-"; 0 found
 93 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 98 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
--------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/k8s/js/k8s_namespace_costs_chart.js
--------------------
FOUND 6 ERRORS AFFECTING 5 LINES
--------------------
  82 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  93 | ERROR | [x] Expected 1 space before "?"; 0 found
  93 | ERROR | [x] Expected 1 space after "?"; 0 found
 124 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 129 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 135 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
--------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/cloud_cluster/js/launch_template_form.js
--------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------
 6 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
--------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/openstack/js/openstack_form.js
--------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------
  6 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
 16 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 35 | ERROR | [ ] String concat is not required here; use a single string instead
--------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/openstack/js/openstack_limit_summary.js
--------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------
  3 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
  5 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 23 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
--------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/openstack/js/openstack_launch_form.js
--------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------
 7 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
--------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/openstack/js/openstack_security_groups.js
--------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------
 39 | ERROR | [x] Inline control structures are not allowed
 53 | ERROR | [x] Inline control structures are not allowed
--------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------


FILE: /var/www/html/test10/web/modules/custom/cloud/modules/cloud_service_providers/openstack/js/openstack_instance_console.js
--------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------
  8 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 11 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 13 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 23 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
--------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------

Time: 56.27 secs; Memory: 105.01MB

๐Ÿ“Œ Task
Status

Active

Version

7.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia chandansha

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

Merge Requests

Comments & Activities

  • Issue created by @chandansha
  • First commit to issue fork.
  • Status changed to Needs work 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia bhaveshdas

    I have fixed some phpcs issuse and some issuses pending could any one solve this problem

    Thankyou !

    FILE: /var/www/html/drupal-contri-d10/modules/custom/cloud-3461750/modules/cloud_service_providers/openstack/js/openstack_form.js
    ---------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------
     35 | ERROR | String concat is not required here; use a single string instead
    ---------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal-contri-d10/modules/custom/cloud-3461750/modules/cloud_dashboard/css/index.css
    --------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------
     1 | WARNING | File appears to be minified and cannot be processed
    --------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal-contri-d10/modules/custom/cloud-3461750/modules/cloud_dashboard/js/index.js
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
     1 | WARNING | File appears to be minified and cannot be processed
    ------------------------------------------------------------------------------------------------------
    
    Time: 1 mins, 4.02 secs; Memory: 125.01MB
    
  • Pipeline finished with Failed
    6 months ago
    Total: 969s
    #225446
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @bhaveshdas Thank you for your PR.

    I appreciate your effort in submitting this patch. I have a few suggestions to improve the code quality and adhere to the coding standards. Due to the number of issues present, I have summarized the key points below rather than commenting on each line individually. Please review these points and make the necessary adjustments:

    1. JavaScript is case-sensitive, and the correct boolean and null values are true, false, and null.
    2. There are unnecessary spaces within the HTML tags, which prevent the tags from being correctly recognized. While adding spaces can improve readability and indentation, adding unnecessary spaces inside the tags or between attributes can cause the code to malfunction.
    3. The proposed patch introduces unnecessary spaces around the ? character in the URL, which could result in an incorrect URL structure.
    4. In the line radio_btn = document.querySelectorAll(input[id = 'edit-chart-type-1']);, there is a small mistake in the selector syntax. The spaces around the equals sign (=) in the attribute selector are unnecessary and non-standard. Additionally, using backticks for template literals is not needed in this context.
  • Assigned to akulsaxena
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    Hi @yas

    I tried to solve all the remaining phpcs errors.
    I changed the values from NULL, TRUE and FALSE to correct boolean and null values (true, false, and null) as requested.
    I also removed The spaces around the equals sign (=) in the attribute selector as requested.

    The remaining tasks as specified in #5 are:

    1. There are unnecessary spaces within the HTML tags, which prevent the tags from being correctly recognized. While adding spaces can improve readability and indentation, adding unnecessary spaces inside the tags or between attributes can cause the code to malfunction.
    2. The proposed patch introduces unnecessary spaces around the ? character in the URL, which could result in an incorrect URL structure.

    Can you please specify where these problems are being faced so that I can work on it?

    Thanks and Regards,
    Akul

  • Pipeline finished with Failed
    2 months ago
    Total: 1038s
    #339399
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    Thank you for your suggested patch. I posted my comments. Also, I don't think we need to refactor the order of all the namespaces.

    Thanks

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    Since the 8.x branch has been released, so please rebase your base branch from 7.x to 8.x as the latest one. Thanks!

  • Pipeline finished with Failed
    2 months ago
    Total: 824s
    #339456
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    Hi @yas

    Thanks for the review
    I'll make the necessary changes and rebase the branches soon

  • Pipeline finished with Failed
    2 months ago
    Total: 947s
    #339474
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    I have made all the suggested changes. Will work on rebasing soon

  • Pipeline finished with Failed
    2 months ago
    Total: 986s
    #339495
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    Thank you for your suggested patch.

    You seem to try to change the lines of entire all the namespace order, however I don't think we need to refactor them.

    Also, Since the 8.x branch has been released, so please rebase your base branch from 7.x to 8.x as the latest one. Thanks!

    Thanks

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    @yas
    I refactored the line because the PHPCS standards for drupal specified that namespaces should be alphabetically arranged and although they dont affect the code, it is considered good coding practice. Do you want me to change it back to as it was earlier or keep it as it is now?
    Will rebase as soon as I make the suggested changes

  • Pipeline finished with Canceled
    2 months ago
    Total: 36s
    #339543
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    I refactored the line because the PHPCS standards for drupal specified that namespaces should be alphabetically arranged and although they dont affect the code, it is considered good coding practice. Do you want me to change it back to as it was earlier or keep it as it is now?

    I checked the Drupal core code, and the use statements for namespaces are basically sorted in a case-insensitive alphabetical order. Since the use statements in our codebase are already sorted alphabetically, please keep them as they are.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    Rebased, Please check

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    This one should be merged into 8.x, but you started with the 7.x branch. So can you please create two MRs for 7.x and 8.x?

    I found the alphabetical order problem on the 8.x branch at https://git.drupalcode.org/project/cloud/-/jobs/3364912.
    If you are trying to fix the use statements for the alphabetical order, can you please try to apply the fixes to the 8.x branch?

    Thanks!

  • Pipeline finished with Failed
    2 months ago
    Total: 1121s
    #339565
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    Hi @yas

    The issue/3461750-fix-phpcs-issues fork doesnt show 8.x branch. What am I supposed to do?

    Also, can you please elaborate #16 and let me know what shall I do since I cant find the 8.x branch in the issue fork?

  • Pipeline finished with Failed
    2 months ago
    Total: 828s
    #339688
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    Close the current branch and restart.

    1. Please create a new branch w/ Version 8.x-dev for the branch 8.x branch on this issue and update the branch.
    2. Change the Version to 7.x-dev on this issue and update the branch 7.x.

    By the way, your patch has not passed the PHPUnit at https://git.drupalcode.org/issue/cloud-3461750/-/jobs/3366433. Please check your fixes.

    Thanks

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    @yas

    Thanks for replying
    Will try working on it on monday

  • Pipeline finished with Failed
    2 months ago
    Total: 1180s
    #341861
  • Pipeline finished with Failed
    2 months ago
    Total: 1252s
    #342057
  • Pipeline finished with Failed
    2 months ago
    Total: 474s
    #342116
  • Pipeline finished with Failed
    2 months ago
    Total: 787s
    #342129
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    Hi @yas

    As mentioned in #19, I created a new branch named 8.x-dev and solved the given PHPCS errors and then raised an MR to 8.x. The Issue states that I have to solve the PHPCS errors and I did that and the PHPCS pipeline was then green.

    When I ran the pipeline, the PHPCS errors were resolved but The PHPstan pipeline failed because it showed multiple errors saying optional parameter defined before required parameter. Even though it wasn't asked in the issue, I resolved the PHPStan errors as well and ran the pipeline again thus getting the Phpstan pipeline green as well, but the PHPUnit pipeline is still failing due to some errors I'm unable to recognise.

    Can you please take a look.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    Thank you for your efforts. The PHPUnit errors must be fixed before we merge the MR. I assume that all PHPUnit errors are caused by nullable type hint. Therefore I suggest that you can create the MR only focused on the only namespace alphabetical order.

    Thanksยฅ

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    I found the problem on your MR. You changed the order of the arguments to fix the nullable type hints. The way how you fixed broke the signature of the interfaces/methods, therefore obviously the existing code base won't work.

    I'll take over this issue.

    Thanks!

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @all

    This issue had been created before a 8.x branch is released; therefore the issue fork doesn't have the 8.x branch. Therefore I cloned this issue to ๐Ÿ“Œ Comply with Drupal coding standards (34) (phpcs) Needs work . I will close this issue by marking Closed (outdated).

    Thanks

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia akulsaxena

    Hi @yas,

    I worked on this issue and resolved the PHPCS problem. I also received a draft credit for my contribution. However, since the issue was closed as outdated, I wanted to confirm if this credit still counts towards my overall credits. Since I am new to the Drupal community, could you please clarify?

    Thank you!

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States yas California ๐Ÿ‡บ๐Ÿ‡ธ

    @akulsaxena

    Thank you for your contribution and for taking the initiative to work on the PHPCS issue. While the issue may have been closed as outdated, your effort is still appreciated as part of the community's collaborative spirit.

    In terms of credits, contributions that result in a merged patch or tangible improvement are typically what count towards formal recognition.
    Since the patch in this case did not proceed to completion due to the issue's outdated status, it may not count as a final credit. However, your engagement and attempt to contribute are valuable experiences that will undoubtedly help in future contributions.

    I encourage you to continue participating in issues, as every effort builds your understanding of the process and increases the likelihood of future successes. If you have further questions or need guidance on other issues, feel free to ask.

    Thanks

Production build 0.71.5 2024