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.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 3262874-9.5.x-14.patch | 13.31 KB | spokje |
| #14 | 3262874-9.4.x-14.patch | 13.13 KB | spokje |
| #9 | 3262874-9.patch | 13.29 KB | spokje |
Comments
Comment #2
longwaveConfirmed locally that phpcs still runs clean.
Comment #3
andypostit may need release note snippet as 3 new dev-dependency added but good to go
Comment #4
longwaveRerolled.
Comment #5
catchI think we need a basic dependency evaluation for the development dependencies.
Comment #6
ankithashettyRerolled the patch #4, thanks!
Comment #7
longwaveNW for #5
Comment #8
spokjeComment #9
spokjeCoder released 8.3.15 recently: https://www.drupal.org/project/coder/releases/8.3.15
Let's do a reroll for that version.
Comment #10
spokjeStab 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
franck.nijhof [at] dealerdirect.comphpstan/phpdoc-parser
slevomat/coding-standard
Comment #11
spokjeComment #12
longwaveAdded 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.
Comment #13
spokjeThanks @longwave
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:
InlineComment): Allow PHP attributes between docblock and functionFunctionTriggerError): @trigger_error deprecation sniff is too strict - allow the message to start with a variable - Might unblock/help #3048495: Fix Drupal.Semantics.FunctionTriggerError coding standardDeprecated): Deprecation error messages don't allow module:n.n.n versionsInlineComment): cspell configuration comments don't need to end in a dot - Might unblock/help #2719663: Fix 'Drupal.Commenting.InlineComment.InvalidEndChar' coding standardInsecureUnserialize): Add a sniff for insecure use of unserialize(). - Might unblock/help #3046696: Move from serialized columns to JSON encoded data wherever possible, or use allowed_classesFunctionComment): Add support for the "mixed" typeDescriptionSniff): Add sniff for missing / empty descriptions in info files - Might unblock/help #2950031: Missing Description for testing modules in coreVariableComment): Add support for union typesI've added all the d.o. issues that I could find that could be helped by those changes
Comment #14
spokjeComment #15
alexpottCommitted 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!
Comment #19
alexpottAdded dependencies to https://www.drupal.org/about/core/policies/core-dependency-policies/core...