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.
Remove depreciated methods in the code base.
Remove unused imports and @file doc blocks from class files.
Comment | File | Size | Author |
---|---|---|---|
#11 | issue-2709935-fix_standards-11.patch | 74.77 KB | nerdstein |
#7 | codecleanup-2709935-7.patch | 21.41 KB | wellme |
#3 | 2709935-3.patch | 27.53 KB | heykarthikwithu |
Comments
Comment #2
heykarthikwithuComment #3
heykarthikwithuComment #5
arjun_sreekumar CreditAttribution: arjun_sreekumar at Zyxware Technologies commentedComment #6
nerdsteinarjun_zyxware - are you working on this?
Comment #7
wellme CreditAttribution: wellme at Zyxware Technologies commentedComment #8
wellme CreditAttribution: wellme at Zyxware Technologies commentedComment #9
wellme CreditAttribution: wellme at Zyxware Technologies commentedComment #10
nerdsteinThis patch does not apply cleanly...
Further, I've done a manual review of the patch and I don't think it's accurate for a number of reasons. I'll call out a few:
1. Line 31 of the patch adds "+ * @file" to a functional comment. This isn't correct.
2. "password_policy_check_constrains_password_confirm_process" has been renamed with "constraints" which was originally spelled wrong. The added comment states "Implements" which is incorrect, as this is not a hook. It's a custom callback. The comment added should be more accurate. It also does not account for the input parameter in the comment.
A quick spot check of the rest of the changes seem OK.
In lieu of rerolling this patch, I'm going to run PHPCBF on this and spot check the source files.
Comment #11
nerdsteinThis is a mega patch that cleans up all code standard issues, deprecated functions, and removes unused interfaces.
The lone exception is the following:
Changing this would prompt an API change and affect downstream modules. I am intentionally leaving this and we can consider this for the next major release.
Comment #12
benjy CreditAttribution: benjy at PreviousNext commentedMostly looks good to me, few bits of trailing whitespace and missing newlines that's all. Looks like HEAD is broken, lets try get that fixed up first.
These lines and many more now have whitespace on the end which should be removed.
Missing new lines.
Two styles of doing the same thing.
$this->t()
Missing newlines.
Comment #13
nerdsteinThat's odd - those are not reporting for me. I am going to download the latest Coder rules and see if I can get that to report. More soon...
Tests on HEAD has been broken and I fix the main modules in this patch. Sub modules are found here: https://www.drupal.org/node/2774969
I still want to try to get this patch in and then work out from there.
Comment #14
nerdsteinNeeded to rebase from recent commits, new patch coming
Comment #15
nerdsteinNew patch for review after rebase. Benji, I am not getting the newline errors you mentioned.
I updated my Coder standards from 2.7.0 to 2.7.1 to ensure it was up to snuff.
Output:
Please let me know if I am missing something. Moving back to Needs Review.
Comment #16
benjy CreditAttribution: benjy at PreviousNext commentedI was using Dreditor to view those.
Comment #17
mroycroft CreditAttribution: mroycroft at Workday, Inc. commentedI could not apply the patch from #11, here is the output from git apply -v issue-2709935-fix_standards-11.patch, while on the latest revision on 8.x-3.x branch:
Comment #18
mroycroft CreditAttribution: mroycroft at Workday, Inc. commentedComment #20
nerdsteinI have this all cleaned up and I pushed the commit. Marking as fixed.