Support from Acquia helps fund testing for Drupal Acquia logo

Comments

truls1502 created an issue. See original summary.

truls1502’s picture

Adding patch for composer.lock file.

truls1502’s picture

Status: Active » Needs review
klausi’s picture

Title: Update drupal/coder from 8.3.1 to 8.3.5 » Update drupal/coder to 8.3.6
Version: 8.7.x-dev » 8.8.x-dev
Issue summary: View changes
Status: Needs review » Needs work

This needs to be created against 8.8.x. I just released Coder 8.3.6, so we should update to that.

klausi’s picture

Status: Needs work » Needs review
FileSize
6.54 KB

Patch, includes some minor fixes that Coder would flag now.

I hd to move around some @code sections because Coder would think they belong to the @param comment. However, general example docs about a function should be above param docs anyway.

idebr’s picture

Running `composer phpcs` locally with drupal/coder 8.3.6 results in a large number of reports regarding the \Drupal\Sniffs\Commenting\VariableCommentSniff:

FILE: .../d8/core/modules/views/tests/src/Kernel/Handler/FieldUrlTest.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 17 | ERROR | Missing member variable doc comment
----------------------------------------------------------------------

Was this sniff updated between 8.3.4 and 8.3.6? If so, should its fix be included in this issue?

klausi’s picture

Yes, VariableCommentSniff was updated in #2909393: Find missing comments for member variables. This sniff is disabled in core in phpcs.xml.dist, so does not affect this update.

Can you run the following and verify that the output of PHPCS is empty? (Adjust installed_paths to your local path)

./vendor/bin/phpcs --config-set installed_paths /var/www/html/vendor/drupal/coder/coder_sniffer/
cd core
../vendor/bin/phpcs

Thanks!

idebr’s picture

idebr’s picture

FileSize
620 bytes
7.35 KB

#7 Actually Drupal.Commenting.VariableComment is enabled in core/phpcs.xml.dist. That means the new 'Missing' that was added in #2909393: Find missing comments for member variables has to be disabled for the existing code to pass. I have updated core/phpcs.xml.dist accordingly.

klausi’s picture

Status: Needs review » Reviewed & tested by the community

Ah, good point, thank you!

I did not know about running "composer phpcs", that is useful! Output from that does not report errors with this patch after running composer install, so we should be good here.

I had to run it as "COMPOSER_PROCESS_TIMEOUT=10000 composer phpcs -- -p" to work around the composer timeout, we should disable that for phpcs with https://getcomposer.org/doc/06-config.md#process-timeout in a separate issue.

larowlan’s picture

Status: Reviewed & tested by the community » Needs review
+++ b/core/includes/batch.inc
@@ -364,7 +364,7 @@ function _batch_process() {
-    $message = strtr($progress_message, $values);
+    $message    = strtr($progress_message, $values);

is this change required?

klausi’s picture

Status: Needs review » Reviewed & tested by the community

Yes, there was a fix in coder that flags this now.

larowlan’s picture

Status: Reviewed & tested by the community » Fixed

Committed 0192048 and pushed to 8.8.x. Thanks!

  • larowlan committed 0192048 on 8.8.x
    Issue #3063323 by idebr, klausi, truls1502: Update drupal/coder to 8.3.6
    

Status: Fixed » Closed (fixed)

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

xjm’s picture

Issue tags: +8.8.0 release notes