Merge pull request #350 from igorshubovych/no-lint-changed

Remove lint-changed.sh script
waldyrious/alt-syntax
Igor Shubovych 2015-12-08 01:39:04 +02:00
commit d23b08fcf0
3 changed files with 2 additions and 11 deletions

View File

@ -20,7 +20,4 @@ deps:
lint:
@bundle exec mdl --style ./scripts/markdown-style.rb pages
lint-changed:
@./scripts/lint-changed.sh
.PHONY: default index setup hooks deps lint lint-changed
.PHONY: default index setup hooks deps lint

View File

@ -1,6 +0,0 @@
#!/bin/bash
MD_FILES=`git diff --cached --name-only | tr " " "\n" | egrep ^.*\.md$`
# Execute Markdown lint if any markdown files have been changed and added to git
[[ -z "$MD_FILES" ]] || GEM_PATH=.gem .gem/bin/mdl "$MD_FILES"

View File

@ -1,3 +1,3 @@
#!/bin/sh
make lint-changed
make lint