Problem/Motivation

Fix coding standards problems in info files in module.

Steps to reproduce

Run phpcs

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .

Proposed resolution

Fix the problems

Remaining tasks

Send a patch
Test it
Commit

User interface changes

_

API changes

_

Data model changes

_

Comments

tmaiochi created an issue. See original summary.

tmaiochi’s picture

Working on it.

tmaiochi’s picture

Assigned: tmaiochi » Unassigned
Status: Active » Needs review
StatusFileSize
new10.11 KB

I fix all PHPCS messages in info files. There are other PHPCS errors and warnings that will be fixed in other issues.

victoria-marina’s picture

Assigned: Unassigned » victoria-marina

I'll review it

victoria-marina’s picture

Assigned: victoria-marina » Unassigned
Status: Needs review » Reviewed & tested by the community

All the errors from .info files, were fixed after the #3. It's a RTBC for me.

gábor hojtsy’s picture

Thanks, sent for automated tests. I don't think the project keys still have any significance, they used to have some, but for a while we exempt the test modules from project collation to be able to test them individually, so the project key should not make a difference.

Let's see what will the tests say.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Needs work

All failed, right :D So for mock contributed projects we detect them based on an explicit project key which you removed, so now they are categorized under custom projects, but they should be identified as mock contrib projects. The project keys need to not be removed. You can add a comment above it to explain this is to identify the module as a mock contributed project.

tmaiochi’s picture

Assigned: Unassigned » tmaiochi

I'll put back the project in info files.

tmaiochi’s picture

Assigned: tmaiochi » Unassigned
Status: Needs work » Needs review
StatusFileSize
new9.99 KB

I put all the project back in info files

gábor hojtsy’s picture

Status: Needs review » Needs work

Now the fails show that the UI tests have various checks to find the modules appear and they include the "version number" that now you are removing, so those tests need to be changed.

tmaiochi’s picture

Status: Needs work » Needs review
StatusFileSize
new12.64 KB

Hey @Gábor Hojtsy I think that I identified the problem in test I just commented the lines, because I have no experience working with tests. So I think you need to open a new issue to do this or ask for someone else resolve this here.

gábor hojtsy’s picture

StatusFileSize
new12.51 KB

I think removing the version numbers would still match them properly, even if those would be slightly less specific, this would only be a real problem if the module names would somehow be substrings of each other which I don't think is the case for either of them. Let's try this.

  • 6ee3eee committed on 8.x-3.x
    Issue #3260431 by tmaiochi, Gábor Hojtsy, victoria-marina: Fix all...
gábor hojtsy’s picture

Status: Needs review » Fixed

Landed this with slightly modified comment in the info file, thanks both!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.