Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Commit

Permalink
In addition to Coding Standards, test for syntax errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed May 3, 2015
1 parent c322c68 commit a40a064
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Gruntfile.js
Expand Up @@ -2,6 +2,7 @@ module.exports = function( grunt ) {

'use strict';
var banner = '/**\n * <%= pkg.homepage %>\n * Copyright (c) <%= grunt.template.today("yyyy") %>\n * This file is generated automatically. Do not edit.\n */\n';
require('phplint').gruntPlugin(grunt);
// Project configuration
grunt.initConfig( {

Expand All @@ -17,6 +18,15 @@ module.exports = function( grunt ) {
}
},

phplint: {
options: {
limit: 10,
stdout: true,
stderr: true
},
files: ['lib/**/*.php', 'tests/*.php', '*.php']
},

} );
grunt.loadNpmTasks( 'grunt-phpcs' );

Expand Down
1 change: 1 addition & 0 deletions bin/phpcs.sh
Expand Up @@ -6,3 +6,4 @@ fi

composer install
grunt phpcs
grunt phplint
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -9,6 +9,7 @@
"author": "WP-API Team <team@wp-api.org>",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-phpcs": "^0.4.0"
"grunt-phpcs": "^0.4.0",
"phplint": "^1.2.0"
}
}

0 comments on commit a40a064

Please sign in to comment.