FILE: ...arn/modules/git/entity_usage/src/Annotation/EntityUsageTrack.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
46 | ERROR | Class property $field_types should use lowerCamel
| | naming without underscores
----------------------------------------------------------------------
FILE: ...ar/www/html/tolearn/modules/git/entity_usage/src/EntityUsage.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
317 | ERROR | [x] There must be exactly one blank line before the
| | tags in a doc comment
320 | ERROR | [ ] Parameter tags must be defined first in a doc
| | comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: .../modules/git/entity_usage/src/Controller/ListUsageController.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
12 | WARNING | [x] Unused use statement
----------------------------------------------------------------------
FILE: ...ty_usage/src/Plugin/EntityUsage/Track/DynamicEntityReference.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
24 | ERROR | Inline doc block comments are not allowed; use "/*
| | Comment */" or "// Comment" instead
----------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | coding-standard.patch | 11.3 KB | dhirendra.mishra |
| #16 | coding-standard.patch | 11.3 KB | dhirendra.mishra |
| #13 | coding-standard.patch | 11.3 KB | deepanker_bhalla |
| #10 | 3001167-coding-standard-10.patch | 11.3 KB | dhirendra.mishra |
| #10 | 3-10_interdiff.txt | 7.44 KB | dhirendra.mishra |
Comments
Comment #2
deepanker_bhalla commentedFixed the coding standard issues.
Comment #3
deepanker_bhalla commentedI have found some more issues while checking it with latest version. Thus updating the patch with all the issues resolved.
Comment #4
msankhala commentedThis change may break the functionality as you are renaming the property. You should change the name of property at all places wherever it is being accessed. Also the correct name should be $fieldTypes.
Remove trailing whitespace.
Commented code should be removed all together.
Comment #5
dhirendra.mishra commentedWorking on it.
Comment #6
dhirendra.mishra commentedUploading fixes for #5.Hope it helps.
Comment #8
msankhala commentedYou do not need to change method parameter here because this is creating inconsistency. You can keep it $field_types.
Also, you will need to fix property name in test cases as well because the tests are still expecting field_types property in the class.
I wonder if this change may break the upgrade path of this module if there is any.
Comment #9
dhirendra.mishra commentedComment #10
dhirendra.mishra commentedThanks Mahesh for reviewing. As i checked there isn't any hardcoded property name used under the test cases. Also find below patch which is correction from #8. Thanks.
Comment #11
dhirendra.mishra commentedComment #13
deepanker_bhalla commentedPlease check the rerolled patch with the new changes.
Comment #14
msankhala commentedThis should has
/**in starting and*/in end. There should be single space between the variable type and the variable$item. Something like:/** @var \Drupal\dynamic_entity_reference\Plugin\Field\FieldType\DynamicEntityReferenceItem $item */See #2305593: [policy] Set a standard for @var inline variable type declarations
Rest looks good.
Comment #15
dhirendra.mishra commentedworking on it.
Comment #16
dhirendra.mishra commentedHere is the update patch. This solves from #15
Comment #17
msankhala commented@dhirendra.mishra Please provide the interdiff as well whenever you are providing a patch which modifies something from the previous patch. This will help the reviewer to spend less time reviewing.
I can see you have added a space between variable type and variable name $item. As per the standard inline @var comment should start with double asterisk
/**not with single asterisk/*.Comment #18
dhirendra.mishra commentedPlease find below updated patch.
Comment #19
msankhala commentedLGTM. @deepanker_bhalla good work. Moving this to RTBC.
Comment #20
marcoscanoThis has apparently been fixed elsewhere. Thanks in any case for the help!