Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291123

Core Javascript Files Not Using Standard Indentation Triggering JSLint Noise

$
0
0

Problem/Motivation

JSLint is an awesome tool to help detect potential JavaScript problems but the current core js files do not indent inside the initial enclosing "scope creating" function cause JSLint to issue many messages.

The current method of indention in core is "pretty." It eliminates "indentation noise" inside the source file but is still nonstandard and compromises our ability to use standard tools like JSLint.

Proposed resolution

Use standard indentation. Indent lines inside even the initial enclosing function 2 spaces.

Remaining tasks

Change all the JavaScript files to use standard identation.

User interface changes

None.

API changes

None.


Viewing all articles
Browse latest Browse all 291123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>