Skip to content

Commit 121af69

Browse files
authored
Merge pull request #286 from phase2/validate-yaml
Validate YAML files by default
2 parents 810e3a9 + 82b5bc8 commit 121af69

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tasks/quality.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ module.exports = function(grunt) {
4949

5050
// Exclude templates by default from phpcs validation.
5151
var phpcsPatterns = defaultPatterns.slice(0);
52+
phpcsPatterns.unshift('<%= config.srcPaths.drupal %>/{modules,profiles,libraries,static}/**/*.yml');
5253
phpcsPatterns.push('!<%= config.srcPaths.drupal %>/{modules,profiles,libraries,static}/**/*.tpl.php');
5354

5455
var phpcsConfig = grunt.config.get('config.phpcs');
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:test
2+
{}"
3+
invalid yaml
4+
5+

0 commit comments

Comments
 (0)