Fix the issues reported by phpcs

Created on 6 July 2023, 12 months ago
Updated 15 March 2024, 3 months ago

Problem/Motivation

FILE: /home/system/Documents/contribution/config_policy/src/Policy/ConfigPolicyService.php
---------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------
  93 | ERROR   | Expected type hint "bool"; found "ConfigPolicyInterface" for $target_policy
  93 | ERROR   | Expected type hint "bool"; found "ConfigRuleInterface" for $target_rule
 262 | WARNING | The use of function fnmatch() is discouraged
---------------------------------------------------------------------------------------------


FILE: /home/system/Documents/contribution/config_policy/tests/src/Kernel/KernelConfigPolicyBase.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
 54 | ERROR | The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------

Time: 354ms; Memory: 10MB

FILE: /home/system/Documents/contribution/config_policy/tests/src/Functional/UiConfigRuleTest.php
-------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
 10 | WARNING | Class name must be prefixed with the project name "ConfigPolicy"
-------------------------------------------------------------------------------------------------

Time: 276ms; Memory: 8MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig config_policy/

Remaining tasks

Fix remaining issue if valid, review the patch.

๐Ÿ“Œ Task
Status

Needs review

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia urvashi_vora Madhya Pradesh, India

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

  • Issue created by @urvashi_vora
  • Status changed to Needs review 12 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia urvashi_vora Madhya Pradesh, India

    Marking it to Needs Review, so that the initial patch could be reviewed.

  • Status changed to Needs work 8 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Ashutosh Ahirwal India

    Provided patch applied cleanly but still there are phpcs error found.

    Command used:-
    ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/config_policy

    Remaining errors
    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/tests/src/Functional/UiConfigRuleTest.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
    --------------------------------------------------------------------------------------------------------------------------------
    10 | WARNING | Class name must be prefixed with the project name "ConfigPolicy"
    12 | ERROR | Missing member variable doc comment
    13 | ERROR | Missing member variable doc comment
    14 | ERROR | Missing member variable doc comment
    --------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/tests/src/Kernel/KernelConfigPolicyBase.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AFFECTING 5 LINES
    -------------------------------------------------------------------------------------------------------------------------------------
    21 | ERROR | Missing member variable doc comment
    23 | ERROR | Missing member variable doc comment
    24 | ERROR | Missing member variable doc comment
    26 | ERROR | Missing member variable doc comment
    33 | ERROR | The array declaration extends to column 95 (the limit is 80). The array content should be split up over multiple lines
    -------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Rule/ConfigRuleFormBase.php
    ---------------------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 4 LINES
    ---------------------------------------------------------------------------------------------------------------------------
    22 | ERROR | Missing member variable doc comment
    23 | ERROR | Missing member variable doc comment
    50 | ERROR | Missing parameter comment
    51 | ERROR | Missing parameter comment
    ---------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Rule/ConfigRuleConfirmFormBase.php
    -------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\config_policy\Entity\ConfigPolicyInterface.
    -------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Rule/ConfigRuleEditForm.php
    -------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------
    6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\config_policy\Entity\ConfigPolicyInterface.
    -------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Rule/ConfigRuleAddForm.php
    -------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\config_policy\Rule\ConfigRulePluginManager.
    -------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Rule/ConfigRuleDeleteForm.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------
    21 | ERROR | The array declaration extends to column 91 (the limit is 80). The array content should be split up over multiple lines
    -------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Policy/ConfigPolicyEditForm.php
    -------------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    -------------------------------------------------------------------------------------------------------------------------------
    92 | ERROR | [x] Array indentation error, expected 14 spaces but found 12
    93 | ERROR | [x] Array indentation error, expected 14 spaces but found 12
    -------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Policy/ConfigPolicyDeleteForm.php
    ---------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------
    9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
    ---------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Policy/ConfigPolicyValidateForm.php
    -----------------------------------------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AFFECTING 5 LINES
    -----------------------------------------------------------------------------------------------------------------------------------
    25 | ERROR | Missing member variable doc comment
    26 | ERROR | Missing member variable doc comment
    27 | ERROR | Missing member variable doc comment
    28 | ERROR | Missing member variable doc comment
    29 | ERROR | Missing member variable doc comment
    -----------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Form/Policy/ConfigPolicyFormBase.php
    --------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 4 LINES
    --------------------------------------------------------------------------------------------------------------------------------------------
    10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\config_policy\Entity\ConfigPolicyInterface.
    17 | ERROR | [ ] Missing member variable doc comment
    18 | ERROR | [ ] Missing member variable doc comment
    19 | ERROR | [ ] Missing member variable doc comment
    --------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/ValidationResultInterface.php
    -------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    -------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/FixResultInterface.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    10 | ERROR | Doc comment is empty
    ------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/ResultItem/ResultItemBase.php
    -------------------------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 4 LINES
    -------------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | Doc comment is empty
    13 | ERROR | Missing member variable doc comment
    14 | ERROR | Missing member variable doc comment
    15 | ERROR | Missing member variable doc comment
    -------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/ResultItem/WarningResultItem.php
    ----------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ----------------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    10 | ERROR | Missing member variable doc comment
    11 | ERROR | Missing member variable doc comment
    ----------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/ResultItem/ErrorResultItem.php
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    10 | ERROR | Missing member variable doc comment
    11 | ERROR | Missing member variable doc comment
    --------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/ResultItem/OkResultItem.php
    -----------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    10 | ERROR | Missing member variable doc comment
    11 | ERROR | Missing member variable doc comment
    -----------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/ResultItem/ResultItemInterface.php
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | Doc comment is empty
    ------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/ResultBase.php
    ----------------------------------------------------------------------------------------------------------------
    FOUND 6 ERRORS AFFECTING 6 LINES
    ----------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    12 | ERROR | Missing short description in doc comment
    24 | ERROR | Missing short description in doc comment
    25 | ERROR | Description for the @return value is missing
    31 | ERROR | Missing short description in doc comment
    32 | ERROR | Description for the @return value is missing
    ----------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Result/ResultInterface.php
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AFFECTING 5 LINES
    ---------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    17 | ERROR | Missing short description in doc comment
    18 | ERROR | Description for the @return value is missing
    22 | ERROR | Missing short description in doc comment
    23 | ERROR | Description for the @return value is missing
    ---------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Entity/ConfigPolicy.php
    ------------------------------------------------------------------------------------------------------------------
    FOUND 11 ERRORS AFFECTING 11 LINES
    ------------------------------------------------------------------------------------------------------------------
    53 | ERROR | Missing member variable doc comment
    54 | ERROR | Missing member variable doc comment
    55 | ERROR | Missing member variable doc comment
    56 | ERROR | Missing member variable doc comment
    57 | ERROR | Missing member variable doc comment
    58 | ERROR | Missing member variable doc comment
    59 | ERROR | Missing member variable doc comment
    127 | ERROR | Doc comment for parameter $rule does not match actual variable name
    153 | ERROR | Parameter $config_rule is not described in comment
    156 | ERROR | Doc comment for parameter $configuration does not match actual variable name $config_rule
    171 | ERROR | Doc comment for parameter $config_rule does not match actual variable name
    ------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Plugin/ConfigPolicyRule/EmptyEntityViewDisplay.php
    ------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------------------
    9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\config_policy\Result\ResultItem\ErrorResultItem.
    ------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Controller/ConfigPolicyListBuilder.php
    ---------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AFFECTING 5 LINES
    ---------------------------------------------------------------------------------------------------------------------------------------------
    11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\config_policy\Entity\ConfigPolicyInterface.
    53 | ERROR | [x] Array indentation error, expected 8 spaces but found 6
    54 | ERROR | [x] Array indentation error, expected 8 spaces but found 6
    88 | ERROR | [ ] The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
    101 | ERROR | [ ] The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
    ---------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/ConfigRulePluginManager.php
    ---------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ---------------------------------------------------------------------------------------------------------------------------
    10 | ERROR | Doc comment is empty
    14 | ERROR | Missing member variable doc comment
    ---------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/FixableRuleInterface.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | Doc comment is empty
    ------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/ConfigRuleInterface.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------------
    11 | ERROR | Doc comment is empty
    -----------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/WeightedRuleInterface.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    -------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/ConditionalRuleInterface.php
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    ----------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/WeightedConfigRuleBase.php
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    --------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/ConfigRuleBase.php
    ------------------------------------------------------------------------------------------------------------------
    FOUND 7 ERRORS AFFECTING 7 LINES
    ------------------------------------------------------------------------------------------------------------------
    14 | ERROR | Doc comment is empty
    19 | ERROR | Missing member variable doc comment
    21 | ERROR | Missing member variable doc comment
    23 | ERROR | Missing member variable doc comment
    25 | ERROR | Missing member variable doc comment
    27 | ERROR | Missing member variable doc comment
    29 | ERROR | Missing member variable doc comment
    ------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/ValidatableRuleInterface.php
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
    8 | ERROR | Doc comment is empty
    ----------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Rule/PreventableRuleInterface.php
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
    7 | ERROR | Doc comment is empty
    ----------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/EventSubscriber/ConfigEventsSubscriber.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    -------------------------------------------------------------------------------------------------------------------------------------
    18 | ERROR | Missing member variable doc comment
    19 | ERROR | Missing member variable doc comment
    20 | ERROR | Missing member variable doc comment
    -------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Drush/Commands/ValidateCommand.php
    --------------------------------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 4 LINES
    --------------------------------------------------------------------------------------------------------------------------------------
    17 | ERROR | Missing member variable doc comment
    30 | ERROR | Parameter $options is not described in comment
    33 | ERROR | Missing parameter type
    56 | ERROR | The array declaration extends to column 105 (the limit is 80). The array content should be split up over multiple lines
    --------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Policy/ConfigPolicyService.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 12 ERRORS AND 1 WARNING AFFECTING 10 LINES
    -------------------------------------------------------------------------------------------------------------------------
    26 | ERROR | Doc comment is empty
    31 | ERROR | Missing member variable doc comment
    32 | ERROR | Missing member variable doc comment
    33 | ERROR | Missing member variable doc comment
    59 | ERROR | Missing short description in doc comment
    59 | ERROR | Parameter $on_import is not described in comment
    59 | ERROR | Parameter $target_policy is not described in comment
    59 | ERROR | Parameter $target_rule is not described in comment
    60 | ERROR | Missing parameter comment
    61 | ERROR | Missing parameter comment
    63 | ERROR | Description for the @return value is missing
    234 | WARNING | The use of function fnmatch() is discouraged
    255 | ERROR | Missing short description in doc comment
    -------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Policy/ConfigPolicyServiceInterface.php
    ----------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------------
    12 | ERROR | Doc comment is empty
    ----------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Policy/ConfigPolicyRepositoryInterface.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    -------------------------------------------------------------------------------------------------------------------------------------
    5 | ERROR | Doc comment is empty
    13 | ERROR | Description for the @return value is missing
    20 | ERROR | Description for the @return value is missing
    -------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/config_policy/src/Policy/ConfigPolicyRepository.php
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AFFECTING 5 LINES
    ----------------------------------------------------------------------------------------------------------------------------
    9 | ERROR | Doc comment is empty
    14 | ERROR | Missing member variable doc comment
    15 | ERROR | Missing member variable doc comment
    28 | ERROR | Description for the @return value is missing
    39 | ERROR | Description for the @return value is missing
    ----------------------------------------------------------------------------------------------------------------------------

    Time: 1.21 secs; Memory: 14MB

  • Assigned to shiv_yadav
  • Issue was unassigned.
  • Assigned to Gaurav Gupta
  • Issue was unassigned.
  • First commit to issue fork.
  • bindu r โ†’ made their first commit to this issueโ€™s fork.

  • First commit to issue fork.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Prem Suthar gujrat

    As Per The #3 issue list and CMD i solved the issues reported by PHPCS.
    just one issue is not resolved. listed below..

    9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\config_policy\Result\ResultItem\ErrorResultItem.
    
  • Assigned to nitin_lama
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia nitin_lama

    Providing the updated patch. Updating IS with remaining issues.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia nitin_lama

    Please review.

  • Issue was unassigned.
  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Chandansha

    As Per The #13 issue list and CMD i solved the issues reported by PHPCS.
    listed below issue is not resolved.

    262 | WARNING | The use of function fnmatch() is discouraged

    10 | WARNING | Class name must be prefixed with the project name "ConfigPolicy"

    please review

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Yashaswi18

    The patch provided in #16 applied cleanly without checking out to any branch, found these errors remaining :

    phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml config_policy/
    
    FILE: /home/yashaswi/contribs/config_policy/src/Policy/ConfigPolicyService.php
    ------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------
     262 | WARNING | The use of function fnmatch() is discouraged
    ------------------------------------------------------------------------------
    
    
    FILE: /home/yashaswi/contribs/config_policy/tests/src/Kernel/KernelConfigPolicyBase.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
     54 | ERROR | The array declaration extends to column 95 (the limit is 80). The array content should be split up over
        |       | multiple lines
    ------------------------------------------------------------------------------------------------------------------------
Production build 0.69.0 2024