Remove lint-changed scipt, just make lint everything instead
This commit is contained in:
5
Makefile
5
Makefile
@@ -20,7 +20,4 @@ deps:
|
|||||||
lint:
|
lint:
|
||||||
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
||||||
|
|
||||||
lint-changed:
|
.PHONY: default index setup hooks deps lint
|
||||||
@./scripts/lint-changed.sh
|
|
||||||
|
|
||||||
.PHONY: default index setup hooks deps lint lint-changed
|
|
||||||
|
@@ -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"
|
|
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
make lint-changed
|
make lint
|
||||||
|
Reference in New Issue
Block a user