Only string literals should be passed to t() where possible and #options values usually have to run through t() for translation.

Created on 23 November 2023, about 1 year ago

Problem/Motivation

FILE: /var/www/html/drupal_cms/drupal9/web/modules/contrib/bugherd/js/bugherd.js
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------
 23 | ERROR | [x] Expected 1 space before "+"; 0 found
 23 | ERROR | [x] Expected 1 space after "+"; 0 found
--------------------------------------------------------------------------------

FILE: ...l/drupal_cms/drupal9/web/modules/contrib/bugherd/src/Form/SettingsForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 17 WARNINGS AFFECTING 17 LINES
--------------------------------------------------------------------------------
  15 | WARNING | [ ] The class short comment should describe what the class
     |         |     does and not simply repeat the class name
 121 | WARNING | [ ] #options values usually have to run through t() for
     |         |     translation
 122 | WARNING | [ ] #options values usually have to run through t() for
     |         |     translation
 138 | WARNING | [ ] Only string literals should be passed to t() where
     |         |     possible
 185 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Option title text'
 189 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Option Pin Text'
 193 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Option site text'
 197 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Feedback entry placeholder'
 201 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Feedback Email Placeholder'
 205 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Feedback Submit Text'
 209 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Confirm success text'
 213 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Confirm loading text'
 217 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Confirm close text'
 221 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Confirm error text'
 225 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Confirm retry text'
 229 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Confirm extension text'
 233 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Confirm extension link text'
--------------------------------------------------------------------------------

Time: 99ms; Memory: 10MB

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India Rohit Rana

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

Comments & Activities

Production build 0.71.5 2024