mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 00:44:54 +02:00
Optimize make lint task
This commit is contained in:
parent
4f1e98dde2
commit
c47f834311
2 changed files with 4 additions and 7 deletions
|
@ -11,7 +11,7 @@ gemfile:
|
||||||
- Gemfile
|
- Gemfile
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make check
|
- make lint
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash scripts/build.sh
|
- bash scripts/build.sh
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -1,4 +1,4 @@
|
||||||
default: check
|
default: lint
|
||||||
|
|
||||||
all: setup index
|
all: setup index
|
||||||
|
|
||||||
|
@ -17,13 +17,10 @@ deps:
|
||||||
@bundle
|
@bundle
|
||||||
@echo "OK"
|
@echo "OK"
|
||||||
|
|
||||||
check:
|
|
||||||
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
@GEM_PATH=.gem find pages -exec mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
|
@bundle exec mdl --style ./scripts/markdown-style.rb pages
|
||||||
|
|
||||||
lint-changed:
|
lint-changed:
|
||||||
@./scripts/lint-changed.sh
|
@./scripts/lint-changed.sh
|
||||||
|
|
||||||
.PHONY: index setup hooks deps lint lint-changed
|
.PHONY: default index setup hooks deps lint lint-changed
|
||||||
|
|
Loading…
Add table
Reference in a new issue