Drupal Coding Standards Issues | phpcs

Created on 16 January 2023, over 1 year ago

Problem/Motivation

Getting following errors/warning

FILE: /app/modules/contrib/honeypot/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
59 | WARNING | Line exceeds 80 characters; contains 87 characters
65 | WARNING | Line exceeds 80 characters; contains 186 characters
73 | WARNING | Line exceeds 80 characters; contains 81 characters
----------------------------------------------------------------------

FILE: /app/modules/contrib/honeypot/honeypot.info.yml
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added
| | by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be
| | added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added
| | by drupal.org packaging automatically
----------------------------------------------------------------------

FILE: /app/modules/contrib/honeypot/honeypot.module
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
93 | ERROR | The array declaration extends to column 106 (the limit
| | is 80). The array content should be split up over
| | multiple lines
100 | ERROR | The array declaration extends to column 104 (the limit
| | is 80). The array content should be split up over
| | multiple lines
----------------------------------------------------------------------

FILE: /app/modules/contrib/honeypot/src/Event/HoneypotRejectEvent.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
21 | ERROR | Class property $form_id should use lowerCamel naming
| | without underscores
----------------------------------------------------------------------

FILE: /app/modules/contrib/honeypot/src/HoneypotService.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
283 | ERROR | The array declaration extends to column 87 (the limit
| | is 80). The array content should be split up over
| | multiple lines
----------------------------------------------------------------------

FILE: ...trib/honeypot/tests/modules/honeypot_test/honeypot_test.info.yml
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
----------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added
| | by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be
| | added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added
| | by drupal.org packaging automatically
----------------------------------------------------------------------

Time: 1.1 secs; Memory: 12MB

Steps to reproduce

phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/honeypot

Proposed resolution

Fix the above errors / warnings.

💬 Support request
Status

Closed: won't fix

Version

2.1

Component

Code

Created by

🇮🇳India shivam-kumar

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to Closed: won't fix over 1 year ago
Production build 0.69.0 2024