jenkins-bot has submitted this change and it was merged.

Change subject: build: Adding configuration for jsonlint
......................................................................


build: Adding configuration for jsonlint

Change-Id: Id01c99e2c1a2730182beae93eb1bacf287821dd4
---
M Gruntfile.js
M package.json
2 files changed, 10 insertions(+), 2 deletions(-)

Approvals:
  Jforrester: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Gruntfile.js b/Gruntfile.js
index 8d8b652..0248f03 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -7,6 +7,7 @@
        grunt.loadNpmTasks( 'grunt-contrib-csslint' );
        grunt.loadNpmTasks( 'grunt-contrib-jshint' );
        grunt.loadNpmTasks( 'grunt-contrib-watch' );
+       grunt.loadNpmTasks( 'grunt-jsonlint' );
        grunt.loadNpmTasks( 'grunt-banana-checker' );
        grunt.loadNpmTasks( 'grunt-jscs' );
 
@@ -39,9 +40,15 @@
                                '<%= csslint.all %>'
                        ],
                        tasks: 'test'
+               },
+               jsonlint: {
+                       all: [
+                               '**/*.json',
+                               '!node_modules/**'
+                       ]
                }
        } );
 
-       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'csslint', 'banana' ] );
+       grunt.registerTask( 'test', [ 'jshint', 'jscs', 'csslint', 'jsonlint', 
'banana' ] );
        grunt.registerTask( 'default', 'test' );
 };
diff --git a/package.json b/package.json
index e7f1046..e1f7b2e 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
     "grunt-contrib-jshint": "0.11.2",
     "grunt-contrib-watch": "0.6.1",
     "grunt-banana-checker": "0.2.2",
-    "grunt-jscs": "1.8.0"
+    "grunt-jscs": "1.8.0",
+    "grunt-jsonlint": "1.0.4"
   }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/217787
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id01c99e2c1a2730182beae93eb1bacf287821dd4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/UploadWizard
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to