Fix Drupal Coding Standard for reCAPTCHA v3

Created on 10 August 2022, almost 3 years ago
Updated 11 March 2023, about 2 years ago

Need to resolved the below errors.

FILE: /home/drupal/myproject/recaptcha_v3/tests/src/Functional/ReCaptchaActionListBuilderTest.php
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------
 14 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
 17 | ERROR   | Missing member variable doc comment
-------------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/recaptcha_v3/recaptcha_v3.module
--------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------
  94 | ERROR | [x] list(...) is forbidden, use [...] instead.
 203 | ERROR | [ ] Comment indentation error, expected only 1 spaces
 214 | ERROR | [x] Data types in @var tags need to be fully namespaced
 214 | ERROR | [x] Data types in @var tags need to be fully namespaced
 214 | ERROR | [x] Data types in @var tags need to be fully namespaced
 274 | ERROR | [x] Expected 1 space after IF keyword; 0 found
 313 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
--------------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/recaptcha_v3/config/schema/recaptcha_v3.schema.yml
--------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------
 43 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------

FILE: /home/drupal/myproject/recaptcha_v3/js/recaptcha_v3.js
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 12 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
----------------------------------------------------------------------
📌 Task
Status

Fixed

Version

1.0

Component

Documentation

Created by

🇮🇳India Dharti Patel

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.

Production build 0.71.5 2024