Merge "build: Alter jscs rule 'requireDotNotation' to reflect need for ES3 compatibility"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 4 Sep 2015 23:08:24 +0000 (23:08 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 4 Sep 2015 23:08:24 +0000 (23:08 +0000)
.jscsrc
resources/src/mediawiki/mediawiki.debug.js

diff --git a/.jscsrc b/.jscsrc
index 1031f04..35465ea 100644 (file)
--- a/.jscsrc
+++ b/.jscsrc
@@ -7,6 +7,8 @@
        "requireSpacesInsideBrackets": null,
        "jsDoc": null,
 
+       "requireDotNotation": { "allExcept": [ "keywords" ] },
+
        "excludeFiles": [
                "docs/**",
                "extensions/**",
index 3153fd4..bdff99f 100644 (file)
                        for ( i = 0, length = this.data.queries.length; i < length; i += 1 ) {
                                query = this.data.queries[i];
 
-                               // jscs: disable requireDotNotation
                                $( '<tr>' )
                                        .append( $( '<td>' ).text( i + 1 ) )
                                        .append( $( '<td>' ).text( query.sql ) )
                                        .append( $( '<td class="stats">' ).text( ( query.time * 1000 ).toFixed( 4 ) + 'ms' ) )
                                        .append( $( '<td>' ).text( query['function'] ) )
                                .appendTo( $table );
-                               // jscs: enable requireDotNotation
                        }
 
                        return $table;