I've run the following command:

phpcbf --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md *.*

on PCA module (dev).

Original code (postcodeanywhere.js):

        // Add loading spinner div to end of PCA.
        $('#postcodeloading')
            .hide()  // hide it initially
            .ajaxStart(function() {
                $(this).show();
            })
            .ajaxStop(function() {
                $(this).hide();
            });

Corrected code:

        // Add loading spinner div to end of PCA.
        $('#postcodeloading')
            .hide()
        // Hide it initially.
            .ajaxStart(function() {
                $(this).show();
            })
            .ajaxStop(function() {
                $(this).hide();
            });

The comment doesn't seems to be in the same column as previous line which it relates to.

CommentFileSizeAuthor
Screen Shot 2015-11-01 at 22.15.09.png42.54 KBkenorb
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kenorb created an issue. See original summary.

  • klausi committed 6131957 on 8.x-2.x
    Issue #2605978: Removed post statement comment support for Javascript...
klausi’s picture

Status: Active » Fixed

Javascript support has been removed from Coder. To check and fix Javascript files please use ESLint /PostStatementCommentSniffand see the Drupal ESLint documentation.

I have also disabled the PostStatementCommentSniff for JS files.

Status: Fixed » Closed (fixed)

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