- Issue created by @bohart
- last update
9 months ago 7 pass - @bohart opened merge request.
- Status changed to Needs review
9 months ago 11:15am 15 October 2023 - Status changed to Needs work
9 months ago 11:17am 15 October 2023 - ๐ฌ๐งUnited Kingdom AdamPS
Thanks.
This module has a phpcs.xml that excludes Drupal.Arrays.Array.LongLineDeclaration. In my view that is a mistake for 2023 when screens are large, and anyway other lines of code can be much longer than 80 characters.
- last update
9 months ago 7 pass - Status changed to Needs review
9 months ago 11:24am 15 October 2023 - ๐บ๐ฆUkraine bohart Lutsk, Ukraine
The proposed MR fixes all available coding standards warnings and notices and removes custom `phpcs.xml`.
So, our IDE will not mark and try to fix all those lines according to the required standards.Regarding
Drupal.Arrays.Array.LongLineDeclaration
. This is a standard for all Drupal core and all Drupal contrib modules.
There is no visible need to customize PHPCS for a single module. It is always better to have and follow the same standards everywhere.
Even more, it's just a few lines of code to fix.Looking forward to being merged,
thanks! - Status changed to Needs work
9 months ago 4:44pm 15 October 2023 - ๐ฌ๐งUnited Kingdom AdamPS
Many other contrib modules are customising the rules - just search for phpcs.xml on one of your sites.
I do want to help everyone get what they need from this module, but also my time is limited. You make more work for me as maintainer if you argue with absolutely everything๐.
- Status changed to Needs review
8 months ago 4:33pm 18 October 2023 - ๐บ๐ฆUkraine bohart Lutsk, Ukraine
There are at least three drupal-org issues related to the topic "Symfony Mailer and Drupal Core":
- ๐ฑ [META] Adopt the symfony mailer component Needs review
- โจ Migration strategy for moving to Symfony Mailer Active
- โจ Change core modules to use Symfony Mailer ActiveIf/when/once some parts of this module become a part of the core, it will be required to follow all PHPCS.
So, there will be a need to update those parts of the code to follow all PHPCS (as Drupal core does). It will not committed otherwise.
It's even simpler to do this right now (when we have just a few places to change) instead of changing PHPCS rules for the module (and the number of such places will be increased).Adam, I would kindly ask you (as the maintainer) to rethink this policy about adding exceptions for some PHPCS rules to the module.
Thanks! - Status changed to Needs work
8 months ago 8:13am 19 October 2023 - ๐ฎ๐ณIndia chetan 11
chetan 11 โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia chetan 11
Hi @bohart
I have fixed all the phpcs issues in symfony_mailer module.
Please check the raised MR & attached screenshot. - last update
8 months ago 26 pass - @chetan-11 opened merge request.
- ๐ฌ๐งUnited Kingdom AdamPS
- This coding standards messages for this module are shown at https://www.drupal.org/pift-ci-job/2787629 โ . Currently there are 9.
- This module has chosen not to fix long array declarations.
- Sorting of use statements is not required by the official test run. I'm willing to do it as a one-off, but they will gradually become less sorted.
- Status changed to Needs review
8 months ago 9:40am 19 October 2023 - last update
8 months ago 26 pass - ๐บ๐ฆUkraine bohart Lutsk, Ukraine
Hi Adam,
1) you mentioned https://www.drupal.org/pift-ci-job/2787629 โ in your comments on Gitlab.
DrupalCI is outdated; it used outdated `drupal/coder` and will have no updates anymore (as it's deprecated).
The valid link to see PHPCS notices/warnings is on GitlabCI (which uses the latest `drupal/coder` version):
https://git.drupalcode.org/project/symfony_mailer/-/jobs/1857602) Okay, let's skip the discussion of long array declaration out of this issue. MR updated:
- the source branch rebased and added new commits from 1/x dev branch, so it's mergeable now;
- everything related to long array declaration changes are removed;Please proceed and commit to the 1.x dev branch: MR !70.
Thanks! - last update
8 months ago 26 pass -
AdamPS โ
committed f977eb9f on 1.x authored by
bohart โ
Issue #3394193: Fix all PHPCS warnings and notices
-
AdamPS โ
committed f977eb9f on 1.x authored by
bohart โ
- Status changed to Needs work
8 months ago 1:13pm 19 October 2023 - ๐ฌ๐งUnited Kingdom AdamPS
Great thanks for the MR and for showing me about GitLab. There are still some CSS errors if anyone feels like fixing those.
- last update
8 months ago 4 pass, 2 fail - @bohart opened merge request.
- last update
8 months ago 26 pass - last update
8 months ago 26 pass - Status changed to Needs review
8 months ago 4:58pm 19 October 2023 - ๐บ๐ฆUkraine bohart Lutsk, Ukraine
`stylelint` rules applied and `stylelint` job is now green.
Was: https://git.drupalcode.org/project/symfony_mailer/-/jobs/194358
Now: https://git.drupalcode.org/issue/symfony_mailer-3394193/-/jobs/195618The only thing is about
@import 'inline.day.css';
as import can be a part of CSS files (not SCSS or other).
codingStandardsIgnoreLine doesn't work, so codingStandardsIgnoreStart/codingStandardsIgnoreEnd to make all jobs green:
https://git.drupalcode.org/issue/symfony_mailer-3394193/-/pipelines/34328@Adam, please review MR !73 and merge. Thanks!
- First commit to issue fork.
- last update
8 months ago 26 pass - last update
8 months ago 26 pass - last update
8 months ago 26 pass -
AdamPS โ
committed e2ebc729 on 1.x authored by
bohart โ
Issue #3394193 by bohart, AdamPS: Fix all PHPCS warnings and notices
-
AdamPS โ
committed e2ebc729 on 1.x authored by
bohart โ
- Status changed to Fixed
8 months ago 10:25am 20 October 2023 - ๐ฌ๐งUnited Kingdom AdamPS
Great thanks. It seems rather picky for it to complain about the order of lines. Anyway, it's good, the job is done.
- ๐บ๐ฆUkraine bohart Lutsk, Ukraine
< just talking mode on >
When a lot of people contribute to some project, that's not picky but quite useful :)
Suppose IDE is appropriately configured (for example, PHPStorm is configured to handle this by default). In that case, all lines will be ordered automatically according to the specified stylelint rules in the project (in our case, they come from Drupal core).
That's why the latest MR was a really quick one; IDE is just fixing everything according to Drupal core stylelint.
< just talking mode off >Adam, MR !72 can be / should be closed (I have no rights to do so on this module). So, we will not collect a pull of non-needed and opened MRs on the project (which definitely will never be merged).
Thanks! - ๐ฌ๐งUnited Kingdom AdamPS
Aha I didn't realise I could close them, thanks for pointing it out. I tidied up a few others too.
Automatically closed - issue fixed for 2 weeks with no activity.