Problem/Motivation
FILE: component_fields\component_fields.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: component_fields\component_fields.module
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
5 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\ContentEntityInterface.
16 | WARNING | [x] There must be no blank line following an inline comment
16 | WARNING | [x] '@TODO check if enabled, and if it has actual fields configured!' should match the format '@todo Fix problem X here.'
22 | WARNING | [x] '@TODO check about module priority (weight) and if it should be somehow configurable.' should match the format '@todo Fix
| | problem X here.'
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 21 WARNINGS AFFECTING 21 LINES
----------------------------------------------------------------------
3 | WARNING | Line exceeds 80 characters; contains 477 characters
5 | WARNING | Line exceeds 80 characters; contains 216 characters
9 | WARNING | Line exceeds 80 characters; contains 171 characters
10 | WARNING | Line exceeds 80 characters; contains 82 characters
11 | WARNING | Line exceeds 80 characters; contains 489 characters
19 | WARNING | Line exceeds 80 characters; contains 117 characters
20 | WARNING | Line exceeds 80 characters; contains 117 characters
21 | WARNING | Line exceeds 80 characters; contains 112 characters
24 | WARNING | Line exceeds 80 characters; contains 236 characters
26 | WARNING | Line exceeds 80 characters; contains 112 characters
30 | WARNING | Line exceeds 80 characters; contains 352 characters
35 | WARNING | Line exceeds 80 characters; contains 164 characters
36 | WARNING | Line exceeds 80 characters; contains 142 characters
37 | WARNING | Line exceeds 80 characters; contains 135 characters
40 | WARNING | Line exceeds 80 characters; contains 160 characters
41 | WARNING | Line exceeds 80 characters; contains 153 characters
42 | WARNING | Line exceeds 80 characters; contains 267 characters
46 | WARNING | Line exceeds 80 characters; contains 298 characters
51 | WARNING | Line exceeds 80 characters; contains 135 characters
53 | WARNING | Line exceeds 80 characters; contains 98 characters
54 | WARNING | Line exceeds 80 characters; contains 94 characters
----------------------------------------------------------------------
FILE: component_fields\src\Annotation\ComponentFieldsCompiler.php
----------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------
7 | ERROR | [ ] Missing short description in doc comment
12 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [ ] Missing member variable doc comment
21 | ERROR | [x] Do not append variable name "$multivalue_only" to the type declaration in a member variable comment
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\CompileService.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AND 6 WARNINGS AFFECTING 21 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\ContentEntityInterface.
14 | ERROR | [x] Missing class doc comment
16 | ERROR | [ ] Missing member variable doc comment
18 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [ ] Missing member variable doc comment
22 | ERROR | [ ] Missing member variable doc comment
24 | ERROR | [ ] Missing member variable doc comment
26 | ERROR | [ ] Missing member variable doc comment
36 | ERROR | [x] Missing function doc comment
46 | ERROR | [x] Missing function doc comment
90 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
92 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
92 | ERROR | [x] Closing brace indented incorrectly; expected 8 spaces, found 10
97 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
110 | ERROR | [x] Missing function doc comment
129 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
136 | ERROR | [x] Data types in @return tags need to be fully namespaced
140 | WARNING | [x] '@TODO the returning array must be validated: All the component names must be checked' should match the format '@todo Fix
| | problem X here.'
141 | ERROR | [ ] Comment indentation error, expected only 1 spaces
142 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
142 | WARNING | [x] There must be no blank line following an inline comment
182 | ERROR | [x] Missing function doc comment
187 | WARNING | [x] There must be no blank line following an inline comment
187 | WARNING | [x] '@TODO test the overrides' should match the format '@todo Fix problem X here.'
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\CompileServiceInterface.php
-----------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------------------------------------------------------------------------------
7 | ERROR | [x] Missing interface doc comment
12 | ERROR | [x] Data types in @param tags need to be fully namespaced
39 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------
FILE: component_fields\src\ComponentFieldsCompilerBase.php
---------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
12 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------
FILE: component_fields\src\ComponentFieldsCompilerInterface.php
--------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------
8 | ERROR | [x] Missing interface doc comment
18 | ERROR | [ ] Missing parameter comment
19 | ERROR | [ ] Missing parameter comment
20 | ERROR | [ ] Missing parameter comment
20 | ERROR | [x] Data types in @param tags need to be fully namespaced
21 | ERROR | [ ] Missing parameter comment
21 | ERROR | [x] Data types in @param tags need to be fully namespaced
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------
FILE: component_fields\src\ComponentFieldsCompilerPluginManager.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\component_fields\Annotation\ComponentFieldsCompiler.
9 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
11 | ERROR | [x] Missing class doc comment
14 | WARNING | [x] '@TODO implement a custom alter hook with context (for example: the entity itself).' should match the format '@todo Fix
| | problem X here.'
20 | ERROR | [x] Missing function doc comment
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\DTO\ComposableField.php
-------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [ ] Missing member variable doc comment
9 | ERROR | [ ] Missing member variable doc comment
11 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] Missing member variable doc comment
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------
FILE: component_fields\src\Form\BundlesForm.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\component_fields\CompileService.
8 | ERROR | [x] Missing class doc comment
10 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [x] Missing function doc comment
16 | ERROR | [x] Missing function doc comment
49 | ERROR | [x] Missing function doc comment
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Form\ComponentFieldsBaseConfigForm.php
----------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
----------------------------------------------------------------------------------------------------
14 | ERROR | [x] Missing class doc comment
18 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [ ] Missing member variable doc comment
22 | ERROR | [ ] Missing member variable doc comment
24 | ERROR | [ ] Missing member variable doc comment
26 | ERROR | [ ] Missing member variable doc comment
28 | ERROR | [x] Missing function doc comment
48 | ERROR | [x] Missing function doc comment
50 | ERROR | [x] Expected 1 blank line after function; 3 found
53 | ERROR | [ ] More than 2 empty lines are not allowed
54 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: component_fields\src\Form\FieldsForm.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 23 ERRORS AND 5 WARNINGS AFFECTING 27 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\component_fields\CompileService.
13 | ERROR | [x] Missing class doc comment
15 | ERROR | [ ] Missing member variable doc comment
17 | ERROR | [ ] Missing member variable doc comment
19 | ERROR | [ ] Missing member variable doc comment
21 | ERROR | [ ] Missing member variable doc comment
30 | ERROR | [x] Missing function doc comment
34 | ERROR | [x] Missing function doc comment
61 | ERROR | [x] Missing function doc comment
131 | ERROR | [x] Missing function doc comment
152 | ERROR | [x] Missing function doc comment
153 | WARNING | [x] There must be no blank line following an inline comment
153 | WARNING | [x] '@TODO Maybe check also for cardinality.' should match the format '@todo Fix problem X here.'
240 | ERROR | [x] Missing function doc comment
250 | ERROR | [x] Missing function doc comment
329 | ERROR | [x] Missing function doc comment
339 | ERROR | [x] Missing function doc comment
347 | ERROR | [x] Missing function doc comment
354 | ERROR | [x] Missing function doc comment
361 | ERROR | [x] Missing function doc comment
368 | ERROR | [x] Missing function doc comment
380 | ERROR | [x] Missing function doc comment
395 | ERROR | [x] Missing function doc comment
411 | ERROR | [x] Missing function doc comment
431 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
453 | ERROR | [x] Missing function doc comment
468 | WARNING | [ ] Line exceeds 80 characters; contains 120 characters
509 | WARNING | [x] '@TODO when changing any triad, check if there is content potentially affected and notify the user.' should match the format
| | '@todo Fix problem X here.'
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 22 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Form\OverrideFieldsForm.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
----------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\component_fields\CompileService.
13 | ERROR | [x] Missing class doc comment
15 | ERROR | [ ] Missing member variable doc comment
17 | ERROR | [ ] Missing member variable doc comment
19 | ERROR | [ ] Missing member variable doc comment
21 | ERROR | [x] Missing function doc comment
32 | ERROR | [x] Missing function doc comment
94 | ERROR | [x] Missing function doc comment
116 | ERROR | [x] Missing function doc comment
143 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Plugin\ComponentFieldsCompiler\Component1.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\component_fields\ComponentFieldsCompilerBase.
9 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Plugin\ComponentFieldsCompiler\Component1WithFallback2.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Plugin\ComponentFieldsCompiler\Component2.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\component_fields\ComponentFieldsCompilerBase.
9 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Plugin\ComponentFieldsCompiler\Component2WithFallback1.php
------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Plugin\ComponentFieldsCompiler\EmptyValue.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\component_fields\ComponentFieldsCompilerBase.
9 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [x] Missing function doc comment
23 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Plugin\ComponentFieldsCompiler\Merge.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\component_fields\ComponentFieldsCompilerBase.
9 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [x] Missing function doc comment
35 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: component_fields\src\Plugin\Field\FieldWidget\ComponentFieldsWidget.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 1 WARNING AFFECTING 13 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
13 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
| | Drupal\component_fields\ComponentFieldsCompilerPluginManager.
29 | ERROR | [ ] Missing member variable doc comment
31 | ERROR | [ ] Missing member variable doc comment
33 | ERROR | [ ] Missing member variable doc comment
35 | ERROR | [ ] Missing member variable doc comment
60 | ERROR | [x] Missing function doc comment
73 | ERROR | [x] Missing function doc comment
77 | ERROR | [x] Use null coalesce operator instead of ternary operator.
84 | ERROR | [x] Missing function doc comment
119 | ERROR | [x] Missing function doc comment
132 | ERROR | [x] Missing function doc comment
133 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run phpcs command to get the drupal coding standard issues.
Proposed resolution
Many of the issues can be fixed by running the phpcbf command. For the remaining ones, we will need to manually address and then commit these changes before pushing them.