-
-
Notifications
You must be signed in to change notification settings - Fork 29
[#2106] Updated require-dev to use only necessary packages and updated PHPCS to v4 and Coder to v9.
#2127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#2106] Updated require-dev to use only necessary packages and updated PHPCS to v4 and Coder to v9.
#2127
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -141,6 +141,10 @@ effective development environment. | |
| Behavior-Driven Development (BDD), allowing you to write human-readable | ||
| stories that describe the behavior of your application. It facilitates | ||
| communication between developers, stakeholders, and clients. | ||
| - [`dantleech/gherkin-lint`](https://github.com/dantleech/gherkin-lint): A | ||
| linting tool for Gherkin feature files used in Behat tests. Ensures | ||
| consistency and quality in BDD test scenarios by checking syntax and | ||
| formatting. | ||
| - [`dealerdirect/phpcodesniffer-composer-installer`](https://github.com/Dealerdirect/phpcodesniffer-composer-installer): | ||
| This tool automatically configures PHP_CodeSniffer to use the coding | ||
| standards (like PSR-2 or Drupal coding standards) installed in a project. | ||
|
|
@@ -154,10 +158,12 @@ effective development environment. | |
| collection of pre-defined step definitions for Behat. This package speeds up | ||
| the process of writing new Behat tests by providing common step | ||
| implementations. | ||
| - [`drupal/core-dev`](https://www.drupal.org/project/drupal): Includes | ||
| development-specific dependencies and tools primarily for testing and code | ||
| analysis, including PHPUnit, PHP_CodeSniffer with rules ( | ||
| via [Coder](https://www.drupal.org/project/coder) module). | ||
| - [`drevops/phpcs-standard`](https://github.com/drevops/phpcs-standard): A | ||
| custom PHP_CodeSniffer coding standard that extends Drupal coding standards | ||
| with additional rules and best practices specific to DrevOps projects. | ||
| - [`drupal/coder`](https://www.drupal.org/project/coder): Provides | ||
| PHP_CodeSniffer rules for Drupal coding standards. Version 9.x supports | ||
| PHP_CodeSniffer 4.x and includes updated rules for modern Drupal development. | ||
| - [`drupal/drupal-extension`](https://github.com/jhedstrom/drupalextension): A | ||
| Behat extension that provides integration with Drupal, offering step | ||
| definitions specific to Drupal functionality. It facilitates the creation and | ||
|
|
@@ -173,7 +179,7 @@ effective development environment. | |
| - [`phpcompatibility/php-compatibility`](https://github.com/PHPCompatibility/PHPCompatibility): | ||
| Provides a collection of sniffs for PHP_CodeSniffer to check PHP code for | ||
| compatibility with different PHP versions, crucial for ensuring long-term | ||
| maintainability. | ||
| maintainability. Version 10.x supports PHP_CodeSniffer 4.x. | ||
|
Comment on lines
179
to
+182
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainPHPCompatibility version 10 PHP_CodeSniffer 4 compatibility <web_search_result> Sources
Update documentation for accuracy: PHPCompatibility 10.x supports PHPCS 3.13.3+ AND 4.x. The verification confirms that version 10.x does support PHP_CodeSniffer 4.x. However, the current statement is incomplete—PHPCompatibility 10.x actually supports both PHPCS 3.13.3+ and 4.0.0+, not just 4.x. The documentation should clarify the minimum PHPCS version requirement to provide more precise guidance to developers. Suggested revision (lines 179-182): 🤖 Prompt for AI Agents |
||
| - [`phpmd/phpmd`](https://github.com/phpmd/phpmd): PHP Mess Detector is a | ||
| user-friendly tool that helps you detect several potential problems in your | ||
| PHP code, including possible bugs, suboptimal code, and overcomplicated | ||
|
|
@@ -184,10 +190,22 @@ effective development environment. | |
| - [`phpstan/extension-installer`](https://github.com/phpstan/extension-installer): | ||
| This package automatically installs and enables PHPStan extensions, | ||
| streamlining the setup process for PHPStan in your project. | ||
| - [`phpstan/phpstan`](https://github.com/phpstan/phpstan): A static analysis | ||
| tool for PHP that focuses on finding bugs in code without running it. Helps | ||
| catch type errors, incorrect method calls, and other potential issues during | ||
| development. | ||
| - [`phpunit/phpunit`](https://github.com/sebastianbergmann/phpunit): The | ||
| industry-standard testing framework for PHP. Provides a comprehensive set of | ||
| tools for writing and running unit tests, integration tests, and functional | ||
| tests. | ||
| - [`pyrech/composer-changelogs`](https://github.com/pyrech/composer-changelogs): | ||
| Provides a summary of package changes (like updates, removals, and additions) | ||
| after running `composer update`, improving the visibility of package changes | ||
| and updates in your project. | ||
| - [`rector/rector`](https://github.com/rectorphp/rector): An automated | ||
| refactoring tool that instantly upgrades and refactors PHP code. Helps with | ||
| code modernization, framework migrations, and automated application of coding | ||
| standards. | ||
| - [`vincentlanglet/twig-cs-fixer`](https://github.com/VincentLanglet/Twig-CS-Fixer): This tool | ||
| ensures that Twig templates adhere to a set coding standard, helping maintain | ||
| consistency and readability in template files. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |
| "containerisation", | ||
| "customisations", | ||
| "cweagans", | ||
| "dantleech", | ||
| "dclint", | ||
| "ddev", | ||
| "dealerdirect", | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| @@ -117,40 +117,40 @@ | ||
| @@ -121,40 +121,40 @@ | ||
| "[web-root]/web.config": false | ||
| }, | ||
| "locations": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
drupal/coder version 9 PHP_CodeSniffer 4 compatibility
<web_search_result>
Short answer: drupal/coder v9 adds PHP_CodeSniffer 4 support — but as of the v9.0.0‑alpha1 release (26 Oct 2025) it’s in alpha and may contain API changes. If you need PHPCS 4 now, install the v9 alpha (composer require 'drupal/coder:^9.0@alpha'); otherwise continue using drupal/coder 8.x with PHPCS 3.x until a stable v9 release. [1][2]
Sources:
</web_search_result>
Compatibility claim is accurate but missing important context about alpha status.
The documentation correctly states that drupal/coder version 9.x supports PHP_CodeSniffer 4.x. However, it omits that version 9.0.0 is currently in alpha (released 26 Oct 2025) and may contain API changes before a stable release.
Consider updating the description to clarify this status, since developers using stable versions should be aware they'd be adopting pre-release software:
🤖 Prompt for AI Agents