From 1c30a894907fd28903eebf6820e8fda1263900d2 Mon Sep 17 00:00:00 2001 From: Igor Shubovych Date: Mon, 7 Dec 2015 04:01:44 +0200 Subject: [PATCH] Remove lint-changed scipt, just make lint everything instead --- Makefile | 5 +---- scripts/lint-changed.sh | 6 ------ scripts/pre-commit | 2 +- 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100755 scripts/lint-changed.sh diff --git a/Makefile b/Makefile index ae83325c33..72e126749f 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/scripts/lint-changed.sh b/scripts/lint-changed.sh deleted file mode 100755 index 022cee27f4..0000000000 --- a/scripts/lint-changed.sh +++ /dev/null @@ -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" diff --git a/scripts/pre-commit b/scripts/pre-commit index 73130ee76e..53769a2552 100644 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -1,3 +1,3 @@ #!/bin/sh -make lint-changed +make lint