- Issue created by @Grevil
- š©šŖGermany Anybody Porta Westfalica
@Grevil: Perhaps we should better split off the code style fixes from the probably legacy code?
An example of legacy code would be the implementation of "auto_username_user_insert". Instead of simply calling
$user->setUsername($new_name) we access the database and change the name there.I think these are different concerns and the maintainer should have a look at that code, while fixing the code style issues should be a quick-win?
- Assigned to Shreya_98
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 6:59am 5 October 2023 - š®š³India Shreya_98
Hi @Grevil,
I have fixed all the code standard issues and also created MR for this issue . Kindly review the changes. - Status changed to Needs work
over 1 year ago 10:53am 5 October 2023 - š©šŖGermany Anybody Porta Westfalica
Thanks @Shreya_th looks good, but some things need to be resolved, see my comments.
- Assigned to mohd sahzad
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:19pm 12 October 2023 - Status changed to Needs work
over 1 year ago 8:30pm 4 January 2024 - šØš¦Canada Liam Morland Ontario, CA šØš¦
The two new class files have no newline at end of file.
The constants are moved into these class files but the new constants are not used.
- First commit to issue fork.
- Status changed to Needs review
over 1 year ago 6:54am 5 January 2024 - Status changed to Needs work
over 1 year ago 7:47am 5 January 2024 - š®š³India Tirupati_Singh
I've installed this module but getting error after installing this module. Attaching screenshot for reference. This is occurred after fixing phpcs issues.
- Status changed to Needs review
over 1 year ago 7:54am 5 January 2024 - š®š³India Tirupati_Singh
Fixed issue of string translation undefined method, the module is now being install. Please review.
- First commit to issue fork.
I ran the command phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml and found no phpcs errors.
- šØš¦Canada Liam Morland Ontario, CA šØš¦
For a full test, use
phpcbf --standard=Drupal,DrupalPractice
. - š®š³India pray_12
hello,
I ran the command phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml and found no phpcs errors. - šØš¦Canada Liam Morland Ontario, CA šØš¦
Perhaps your version of phpcs is out-of-date. I got a bunch of errors when I that command. You do need to provide a filename to check. I usually check the current directory by adding a
.
at the end of the command you gave and running it from the repository directory. - š®š³India Yashaswi18
Is this the command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml .
?
I ran this command inside the repository directory, still not able to find any remaining errors or warnings. Please correct if the command I used is wrong. - šØš¦Canada Liam Morland Ontario, CA šØš¦
This is the exact command I use:
phpcs --standard=Drupal,DrupalPractice --report-width=auto --colors --extensions=php,module,inc,install,test,profile,theme,info,txt,md,scss,yml,twig .
I don't know why we're getting different results. If automated testing is configured that can be used as the ultimate arbiter of coding standards.
- Status changed to Needs work
about 1 year ago 7:52am 6 May 2024 - š®š³India dev16.addweb
I have tested and I got some deprecation error in create_function(), please review attached image.
- šØš¦Canada Liam Morland Ontario, CA šØš¦
In the merge request, I have added
.gitlab-ci.yml
so that coding standards checks will run. - šØš¦Canada Liam Morland Ontario, CA šØš¦
create_function()
was removed in PHP 8.0. It needs to be removed. It is used once insrc/AutoUsernameUtilities.php
. - š®š³India Tirupati_Singh
@Liam Morland, I've used the exact command that you've provided
phpcs --standard=Drupal,DrupalPractice --report-width=auto --colors --extensions=php,module,inc,install,test,profile,theme,info,txt,md,scss,yml,twig .
, still I'm not getting any phpcs issues. Attaching the screenshot for reference. Moving the issue status to Needs Review. - Status changed to Needs review
12 months ago 7:13am 29 May 2024 - šØš¦Canada Liam Morland Ontario, CA šØš¦
Looks good. phpcs is passing on the GitLab CI.
- Status changed to Needs work
12 months ago 1:37pm 29 May 2024 - šØš¦Canada Liam Morland Ontario, CA šØš¦
Sorry, commit 3a3f791 adds the use of
create_function()
, which was removed in PHP 8.0. - Status changed to Needs review
12 months ago 3:16pm 29 May 2024 - šØš¦Canada Liam Morland Ontario, CA šØš¦
I reverted the change that introduced
create_function()
. I added aphpcs:ignore
so that the use ofeval()
does not cause aphpcs
failure.phpcs
now passes. - Status changed to RTBC
12 months ago 3:11am 30 May 2024 - šµšPhilippines paraderojether
Hi
I reviewed MR!5, and confirmed it fixes all the issues reported by phpcs.
auto_username git:(8.x-1.5) curl https://git.drupalcode.org/project/auto_username/-/merge_requests/5.diff | patch -p1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 25823 0 25823 0 0 67039 0 --:--:-- --:--:-- --:--:-- 68496 patching file .gitlab-ci.yml patching file auto_username.module patching file auto_username.services.yml patching file 'config/install/auto_username.settings.yml' patching file 'src/AutoUsernameOptions.php' patching file 'src/AutoUsernamePunctuationOptions.php' patching file 'src/AutoUsernameUtilities.php' patching file 'src/Form/AutoUsernameSettingsForm.php' ā auto_username git:(8.x-1.5) ā cd .. ā contrib phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig auto_username ā contrib
Moving this to RTBC.
Thank you. -
jlscott ā
committed ea700989 on 8.x-1.x
Issue #3391633 by Liam Morland, Shreya_th, sidharth_soman,...
-
jlscott ā
committed ea700989 on 8.x-1.x
- Status changed to Fixed
10 months ago 9:28am 16 July 2024 - š³šæNew Zealand jlscott
Tanks everyone for your contributions in improving the module. Changes committed.
- Status changed to Needs review
10 months ago 10:01pm 16 July 2024 - šØš¦Canada Liam Morland Ontario, CA šØš¦
There is one more error; fix attached.
- š®š³India Tirupati_Singh
Fixed the remaining phpcs issue. Please review the MR.
- Assigned to hetal.solanki
- Status changed to RTBC
10 months ago 5:13am 17 July 2024 - š®š³India riddhi.addweb
The mentioned phpcs issue is resolved, & I have also checked and it is working as expected. I am attaching the Screenshots & doing RTBC for the same.
- Issue was unassigned.
- š®š³India hetal.solanki
@Grevil, @Tirupati_Singh
I have tested MR and it is working properly with no errors found. I will move it forward to RTBC.
Thank you!!
-
jayelless ā
committed 5f2e4a0d on 8.x-1.x authored by
tirupati_singh ā
Issue #3391633 by liam morland, tirupati_singh, shreya_th,...
-
jayelless ā
committed 5f2e4a0d on 8.x-1.x authored by
tirupati_singh ā
- Status changed to Fixed
1 day ago 11:06pm 14 May 2025 -
jayelless ā
committed 5f2e4a0d on 2.0.x authored by
tirupati_singh ā
Issue #3391633 by liam morland, tirupati_singh, shreya_th,...
-
jayelless ā
committed 5f2e4a0d on 2.0.x authored by
tirupati_singh ā
-
jayelless ā
committed ea700989 on 2.0.x
Issue #3391633 by Liam Morland, Shreya_th, sidharth_soman,...
-
jayelless ā
committed ea700989 on 2.0.x