Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Alternative installation files
Download coder-8.x-2.0.tar.gztar.gz
124.96 KB
MD5: c9d06c400711c0a71f37567950b7366f
SHA-1: 73c753f81df8e6e981f0bffb5b166b6ce7ec9650
SHA-256: 04c90e84ad68b42be55472daeec6f5b2778800260c60c36c0a271cb8b93a8257
Download coder-8.x-2.0.zipzip
237.87 KB
MD5: d0443143638f0a82844a83f83127b109
SHA-1: 7c7b2b8bb74473e39f1fa3e6ba3a206563a7c7a7
SHA-256: 0a08e26795ffba3ac96d710410f3e803be9776ec93f2d7e537074708212122f6
Release notes
This release comes with a new DrupalPractice
coding standard, which checks for Drupal API best practices and was merged into Coder from https://www.drupal.org/project/drupalpractice .
Several new fixer rules have been implemented, which means you can now fix even more coding standard errors automatically with phpcbf
.
A detailed commit log is ommitted here because it would contain all the merged commits from DrupalPractice. Some highlights:
Changes since 8.x-2.0-rc1:
- Moved DrupalPractice into coder_sniffer subfolder.
- Improved README formatting.
- Removed obsolete drush file.
- Fixed test fail after PHPCS update to allow empty function bodies with braces on the same line.
- Enabled CSS test for empty style definitions.
- #2389101: Fixed PHP Notice Undefined variable realName in FunctionCommentSniff.
- #2382349 by pfrenssen: Add sniff that detects missing newline before a different @tag
- #2395605 : Removed sniff for
<br>
tags since they are allowed in HTML5. - Removed ClassDefinitionClosingBraceSpaceSniff, this is now covered by Squiz.
- Removed CSS/IndentationSniff, this is now covered by Squiz.
- Clarified copy of CSS class definition sniff and updated code from Squiz.
- Removed CSS class opening sniff, now covered by Squiz.
- Added fixer code for doc comment sniff from Squiz.
- Refactored scope indentation sniff according to PHPCS, now includes fixer code.
- Updated inline comment sniff with fixer code.
- Long translatable annotation strings are allowed to exceed the 80 character line length limit.
- Added fixer for lower case CSS colors.
- Added fixer for CSS class sniff.
- Removed duplicated warnings and add fixer for array commas.
- Added fixer for array indentation sniff.
- #2401777: Bump PHPCS dependency to 2.1.0 minimum to avoid PHP_CodeSniffer_File::findStartOfStatement() fatal errors.
- Added a sniff to detect drupal_add_js() usage in hook_page_build().