Closed (fixed)
Project:
Coder
Version:
8.x-2.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2016 at 13:15 UTC
Updated:
3 Sep 2016 at 14:34 UTC
Jump to comment: Most recent
Coder has some javascript support, but it has not been tested well and produces false positives in certain cases.
There is ESLint now that can check and fix javascript files, so I think we should remove javascript support completely from Coder and point people to ESLint:
http://eslint.org/
https://www.drupal.org/node/1955232
Comments
Comment #2
klausiAs a first step I wanted to set default file extensions where JS files are removed, but that is breaking tests right now: https://github.com/klausi/coder/pull/3
Also filed a PR upstream at PHPCS: https://github.com/squizlabs/PHP_CodeSniffer/pull/1032
Comment #3
anoopjohn commentedWill eslint take care of javascript standards in Drupal 7 as well?
Comment #4
klausiSure, I assume they are the same as in drupal 8.
Comment #6
dawehnerNice idea!
Just in general, there seems to be also an effort to standardize things even more in the javascript world: http://standardjs.com/index.html
Comment #7
klausiRemoved the *.js extension from the doc page at https://www.drupal.org/node/1587138 , I think we are done here.