From 4a296427b2f9041162537ca2607804a8f1a8b54f Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Sat, 25 Apr 2015 12:50:16 -0700 Subject: [PATCH] Include *.svg for XML checks SVG is an XML-based vector image format. It seems like we should be running the XML checks on these files. --- CHANGELOG.md | 3 ++- config/default.yml | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1b6dcb1..6c797c22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ ## master (unreleased) -* Add `**/*.svg` to `ImageOptim` default includes configuration +* Add `**/*.svg` to `ImageOptim`, `XmlLint`, and `XmlSyntax` default includes + configuration * Make `IndexTags` hooks quiet by default * Add `Vint` pre-commit hook that checks Vim script with [Vint](https://github.com/Kuniwak/vint) diff --git a/config/default.yml b/config/default.yml index 3a2cb414..6da866c7 100644 --- a/config/default.yml +++ b/config/default.yml @@ -438,13 +438,17 @@ PreCommit: description: 'Analyzing with xmllint' required_executable: 'xmllint' flags: ['--noout'] - include: '**/*.xml' + include: + - '**/*.xml' + - '**/*.svg' XmlSyntax: enabled: false description: 'Checking XML syntax' required_library: 'rexml/document' - include: '**/*.xml' + include: + - '**/*.xml' + - '**/*.svg' YamlSyntax: enabled: false