Closed (fixed)
Project:
Password Policy
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2016 at 11:16 UTC
Updated:
26 Dec 2016 at 01:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
heykarthikwithuComment #3
heykarthikwithuComment #5
arjun_sreekumar commentedComment #6
nerdsteinarjun_zyxware - are you working on this?
Comment #7
wellme commentedComment #8
wellme commentedComment #9
wellme 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 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 commentedI was using Dreditor to view those.
Comment #17
mroycroft 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 commentedComment #20
nerdsteinI have this all cleaned up and I pushed the commit. Marking as fixed.