Closed (fixed)
Project:
Content Import
Version:
8.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2018 at 11:22 UTC
Updated:
15 Jul 2020 at 16:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
deepanker_bhalla commentedFixed the 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 commentedWhy this file is being deleted?
This has unnecessary empty space.
This has unnecessary empty space.
The patch #3 is modifying code way more than fixing the coding standard. Can you please check that you creating diff in the correct way?
Comment #5
msankhala commentedComment #6
gangwarsurya commentedHi
Fixed the Coding standard issues.
Comment #7
msankhala commented@gangwarsurya Thanks for the work but there is still one warning which need to be fixed.
Also, the patch should be created from within the contentimport module directory instead of from Drupal root directory.
Comment #8
gangwarsurya commentedHi
Updated patch within the contentimport module directory.
Comment #9
gangwarsurya commentedComment #10
msankhala commented@gangwarsurya The patch in comment #8 is the same one as the previous one in #6. You haven't modified anything in the patch. See the output:
Comment #11
gangwarsurya commentedHi
@msankhala I have checked with coder module after apply above patch. please see attached screenshot.
Comment #12
msankhala commentedCan you please check the version of the coder module and PHP Code Sniffer? I do have 3.3.1 version of PHP Code Sniffer and 8.3.0 version of coder module.
Its a Drupal coding standard that each file should have a single newline at the end of the file.
Comment #13
gangwarsurya commentedHi
I have 3.3.2 (stable) PHP Code Sniffer and 8.3.0 version of coder module.
Comment #14
msankhala commentedThis is weird. How do you run PHPCS with Drupal coding standard against this module? Can you please confirm that this contentimport.routing.yml file has a single newline at the end of file?
As per coding standard guide:
See https://www.drupal.org/docs/develop/standards/coding-standards#indenting
Comment #15
deepanker_bhalla commentedComment #16
msankhala commentedThere are two things those need to be fixed after applying the patch #8.
1. Patch is changing the file permission from 755 to 644 of file src/Form/ContentImport.php
2. After applying the patch there is still one warning reported by PHPCS.
Comment #17
patelmayank7552 commentedHi @msankhala,
I have fixed the coding standards for the module.
Please review it.
Attaching the patch file, please check it.
Comment #18
msankhala commentedLooks good. Thanks @patelmayank7552 the patch #17 fixes the issue reported in#16.
Comment #19
dhayanandan_k commentedFixed in the latest version.