Problem/Motivation

Coder 8.3.14 is released, so we should update our dependency.

Steps to reproduce

Proposed resolution

Update the dependency.
Remove the --runtime-set installed_paths switch from calls to PHPCS, as Coder now depends on dealerdirect/phpcodesniffer-composer-installer which registers sniffs automatically.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Coder has been updated to 8.3.15. This version will automatically set up Drupal coding standards sniffs in PHP_CodeSniffer thanks to a new dependency on dealerdirect/phpcodesniffer-composer-installer.

Comments

longwave created an issue. See original summary.

longwave’s picture

Status: Active » Needs review
StatusFileSize
new17.33 KB
+------------------------------------------------+--------+--------+
| Dev Changes                                    | From   | To     |
+------------------------------------------------+--------+--------+
| drupal/coder                                   | 8.3.13 | 8.3.14 |
| dealerdirect/phpcodesniffer-composer-installer | NEW    | v0.7.2 |
| phpstan/phpdoc-parser                          | NEW    | 1.2.0  |
| slevomat/coding-standard                       | NEW    | 7.0.18 |
+------------------------------------------------+--------+--------+

Confirmed locally that phpcs still runs clean.

andypost’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

it may need release note snippet as 3 new dev-dependency added but good to go

longwave’s picture

StatusFileSize
new13.59 KB

Rerolled.

catch’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs release note

I think we need a basic dependency evaluation for the development dependencies.

ankithashetty’s picture

StatusFileSize
new13.59 KB
new2.13 KB

Rerolled the patch #4, thanks!

longwave’s picture

Status: Needs review » Needs work

NW for #5

spokje’s picture

Assigned: Unassigned » spokje
spokje’s picture

Title: Update Coder to 8.3.14 » Update Coder to 8.3.15
StatusFileSize
new13.29 KB
new11.6 KB

Coder released 8.3.15 recently: https://www.drupal.org/project/coder/releases/8.3.15

Let's do a reroll for that version.

+------------------------------------------------+--------+--------+
| Dev Changes                                    | From   | To     |
+------------------------------------------------+--------+--------+
| drupal/coder                                   | 8.3.13 | 8.3.15 |
| dealerdirect/phpcodesniffer-composer-installer | NEW    | v0.7.2 |
| phpstan/phpdoc-parser                          | NEW    | 1.5.1  |
| slevomat/coding-standard                       | NEW    | 7.2.0  |
+------------------------------------------------+--------+--------+
spokje’s picture

Stab at dependency evaluation

Note #1: Never done this before
Note #2: After "evaluating the evaluations", they should be added to https://www.drupal.org/about/core/policies/core-dependency-policies/core-dependency-release-cycles-security-information-and-evaluation-criteria#dev

dealerdirect/phpcodesniffer-composer-installer

Repository https://github.com/PHPCSStandards/composer-installer
Release cycle Likely to change only when composer or PHP_CodeSniffer changes.
Security policies None. This is a dev tool and will not be present on production. This is a composer installer plugin that allows for easy installation of PHP_CodeSniffer coding standards (rulesets).
Security issue reporting N/a
Contact(s) franck.nijhof [at] dealerdirect.com

phpstan/phpdoc-parser

Repository https://github.com/phpstan/phpdoc-parser
Release cycle Frequent. Version 1.0 was released in Sep 2021. We are already on 1.5.1.
Security policies None. This is a dev tool and will not be present on production. This is a next generation phpDoc parser with support for intersection types and generics, which is used by Coder.
Security issue reporting N/a
Contact(s) https://github.com/ondrejmirtes

slevomat/coding-standard

Repository https://github.com/slevomat/coding-standard
Release cycle Frequently adding new sniffs.
Security policies None. This is a dev tool and will not be present on production. This provides sniffs for PHP_CodeSniffer and is used by Coder.
Security issue reporting N/a
Contact(s) https://github.com/kukulich
spokje’s picture

Assigned: spokje » Unassigned
Status: Needs work » Needs review
longwave’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs release note

Added a release note snippet. I assume we want to backport this to 9.5.x as well, and maybe 9.4.x if we are quick enough?

This unblocks #3048495: Fix Drupal.Semantics.FunctionTriggerError coding standard and perhaps some more coding standards issues.

spokje’s picture

Thanks @longwave

...and perhaps some more coding standards issues.

Looking at the changes between the current 8.3.13 and the new 8.3.15 here: https://github.com/pfrenssen/coder/compare/8.3.13...8.3.15, these are the new/improved sniffs:

I've added all the d.o. issues that I could find that could be helped by those changes

spokje’s picture

StatusFileSize
new13.13 KB
new13.31 KB
alexpott’s picture

Version: 10.0.x-dev » 9.4.x-dev
Status: Reviewed & tested by the community » Fixed
Issue tags: +9.4.0 release notes

Committed bb0fa10 and pushed to 10.0.x. Thanks!
Committed 91f04e6 and pushed to 9.5.x. Thanks!
Committed 37d6841 and pushed to 9.4.x. Thanks!

  • alexpott committed bb0fa10 on 10.0.x
    Issue #3262874 by Spokje, longwave, ankithashetty, catch, andypost:...

  • alexpott committed 91f04e6 on 9.5.x
    Issue #3262874 by Spokje, longwave, ankithashetty, catch, andypost:...

  • alexpott committed 37d6841 on 9.4.x
    Issue #3262874 by Spokje, longwave, ankithashetty, catch, andypost:...
alexpott’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.