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.
First alpha release of Coder for Drupal 8. This release is focused on the PHP_CodeSniffer (PHPCS) 2.0 integration and requires the most recent dev version of PHPCS (phpcs-fixer branch).
There is now rudimentary support for PHPCBF to automatically fix your code!
This is a major upgrade, that now includes the project formerly known as Drupal Code Sniffer. There was also a major code cleanup, modernization of drush, a new "Code Sniffer" rule that uses drupalcs, and many bug fixes. See the Battle Plan for more details.
Features
--------
Disable submit button if the required version of the grammar parser is not found.
Refine dependency for Grammar Parser Library module to versions before 2.0.
Update make file to conform to Drupal.org distribution packaging requirements.
Bugs
----
Issue #1800370: Correctly add nested includes to info files.
Replace tab with two spaces in hook_filter routine.
Issue #1789466: Add file entries to info file for classes in modules contained in subdirectories.
Issue #944804: Implement (undocumented) image and image_style theme changes.
Issue #1476960: Copy hidden files to output directory.
Issue #1784826: Rename file_directory_path() to file_stream_path() to avoid issues with it being removed from core.
Issue #1788352: Add missing statement in coder_upgrade_op_to_hook() to prevent an infinite loop.
Issue #1058384: Improve exception handling in routines that expect to find certain objects.
Issue #1058382: Improve exception handling in routines that expect a case statement. (Also issue #1515804)
Add error control operator to eval() on hook_theme() code.
Issue #1745068: fix check for core files; fix multi-line CSRF #warning message: so we can compare 7.x-1.x and 7.x-2.x results properly.
Fixed curly braces are not enforced for elseif control structures.
Disabled postprocessor that realigns equal signs of multiple variable assignments.
Fixed coder_exec_processors() to not invoke disabled processors.
Fixed needless working directory change in Windows command script.
fix problem looking for patch file
grr i really shouldnt be committing at 2am
#1284052: thats embarrassing, third times a charm (hopefully)
#1284052: second attempt to use directory names
This is a major upgrade to 7.x-1.x, the first major work on coder (other than adding new rules) since the 6.x release. There are more features that still need to go into this branch, see #1745068: Coder Review Drupal 8.x Battleplan, but it's now stable enough for others to try.
issue #858330 by Kender, zroger, harijari, stella - added in support for drush coder-review xml output
Issue #853582 by sun: Fixed 'else if' is not changed into 'elseif'.
Manual sync of improvements in 7.x: - by sun: Fixed boolean constants must be written uppercase. - #360766 by sun: Fixed missing space for parameter to break statement. - #246568 by sun: Updated
for new string concatenation standard. - #272089 by sun: Fixed outdated installation instructions for coder_format tests.
Issue #178629 by sun - fix for @see comments
#990940 - $Id rule inverted
allow modules to alter the coder args and implement a hook to run before results are displayed
Removing translation directories
Stripping CVS keywords
updated log with coding style fixes
added in .svn and .git to list of directories to ignore
coding style fixes
#859314 by duellj - coding style fixes
#906200 by drupal-id.com - moved code below @file comment
#954256 by superbaloo - fix for paths of files within the ignore file
changed some drupal_set_message() messages to be errors
#946978 by boombatower - added severity name to drush output
For Coder Upgrade, this release includes more upgrade routines, enhancements to and bug fixes of upgrade routines, and use of the enhancements to the editing API provided by the grammar parser module (which is a dependency for Coder Upgrade).
For Coder Upgrade, this release includes many more upgrade routines, a refactored API using hooks, and reflects the renaming of the grammar parser module (which is a dependency for Coder Upgrade).
This new release was required because of API changes in Coder concatenates strings in odd ways during parsing. This version already has significant new features over the prior 6.x-1.0 version. There won't be a 6.x-1.1 version, but will skip instead to the 6.x-2.0 version because of these API changes.
The major differences between the 6.x-1.0 release and the work here (and also in the 6.x-1.x-dev versions) are:
This should of been created a long time ago. While this is the first "official" 6.x according to the release system, Coder was one of the first modules upgrades to 6.x, and has been working for some time. I'll do a better job of releasing versions, so you will now know when there are updates to the rules.
This fixes a minor fix to 5.x-2.3 involving the cache. The 6.x caching api solution was accidentally checked into the 5.x branch. Otherwise, see the 5.x-2.3 release notes.
The 5.x-1.x-dev version adds a new UI, core support, theme support, a cache for faster display of unchanged files, and works with the new Drupal 6 menu system. Also supports rule #severity of "minor", "normal", and "critical" (5.x-1.x-dev).
The 5.x-1.x-dev version adds a new UI, core support, theme support, a cache for faster display of unchanged files, and works with the new Drupal 6 menu system. Also supports rule #severity of "minor", "normal", and "critical" (5.x-1.x-dev).