Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Part of meta-issue #1518116: [meta] Make Core pass Coder Review
Comment | File | Size | Author |
---|---|---|---|
#19 | entity-coder_review-1533230-19.patch | 5.27 KB | littledynamo |
#11 | entity-coder_review-1533230-11.patch | 17.74 KB | cs_shadow |
Comments
Comment #1
NROTC_Webmaster CreditAttribution: NROTC_Webmaster commentedCross-referencing to #1315340: Clean up API docs for entity.inc to ensure it gets closed before a backport is attempted
Comment #2
infiniteluke CreditAttribution: infiniteluke commentedComment #3
infiniteluke CreditAttribution: infiniteluke commented1. Checked against http://qa.drupal.org/8.x-status
modules/entity/entity.module
modules/entity/entity.query.inc
2. The issues weren't itemized so I moved on to run CodeSniffer to see if this would throw anything. CodeSniffer returned nothing so I assume that means it complies.
3. Coder module on minor returned a couple warnings:
Are the issues returned by Coder legitimate? Should documentation be included?
Comment #4
NROTC_Webmaster CreditAttribution: NROTC_Webmaster commentedThe first issue doesn't apply to core apparently. That is only for contrib modules.
The @see issue has already been filed and should not be changed to pass coder.
Regarding the codesniffer I am surprised it didn't return anything. Normally it will return more things than coder not less. You should probably check your settings to make sure it is actually validating based on the drupal standards.
Comment #5
infiniteluke CreditAttribution: infiniteluke commentedFrom drupal/core/modules I ran
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme entity > result.txt
result.txt is empty.
I ran the same command against the help module and got a ton of results.
Comment #6
NROTC_Webmaster CreditAttribution: NROTC_Webmaster commentedIf that's the case I'm OK with closing this but I would like to check with TravisCarden first.
Comment #7
NROTC_Webmaster CreditAttribution: NROTC_Webmaster commentedHere are the issues that I saw when I ran codesniffer.
In addition you should get a lot of missing param/return dataypes missing which we are not fixing.
EDIT: The foreach has two spaces between the ) and {
Comment #8
TravisCarden CreditAttribution: TravisCarden commentedPostponing till feature freeze. If you want to help in the meantime, please work on the blockers on the meta issue. Thanks!
Comment #9
infiniteluke CreditAttribution: infiniteluke commentedComment #10
TravisCarden CreditAttribution: TravisCarden commentedComment #11
cs_shadow CreditAttribution: cs_shadow commentedFixed most of the codesniffer issues. Couple of issues remain where its asks to document functions
getInfo()
andsetUp()
but i guess we can skip those. Any suggestions are welcome.Comment #12
cs_shadow CreditAttribution: cs_shadow commentedComment #13
cs_shadow CreditAttribution: cs_shadow commentedRemaining output from codesniffer:
Comment #14
Jalandhar CreditAttribution: Jalandhar commentedPatch #11 needs reroll.
Comment #15
cs_shadow CreditAttribution: cs_shadow commentedComment #18
littledynamo CreditAttribution: littledynamo commentedI'll have a go at re-rolling this one ...
Comment #19
littledynamo CreditAttribution: littledynamo commentedPatch attached. Looks like Entity has been moved from /modules to /lib. Some of the files in the original patch don't seem to exist any more (entity.module and a few others).
The code should probably be ran though code sniffer again, but not sure how to do that for core? I usually use pareview.sh for contrib.
Comment #20
littledynamo CreditAttribution: littledynamo commentedComment #21
littledynamo CreditAttribution: littledynamo commentedComment #24
xjmThanks for all the work here so far. See #1518116-86: [meta] Make Core pass Coder Review. This issue is postponed until the meta issue is either closed or reopened.
Comment #25
pfrenssenClosing in favor of #2571965: [meta] Fix PHP coding standards in core. In this issue the coding standards will be fixed on a sniff-per-sniff basis rather than a module-per-module basis.