From 873c1af46601c5a3732dcb42d41ad5121326f0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20J=C3=B8rgensen?= Date: Thu, 16 Jan 2020 09:18:46 +0100 Subject: [PATCH] Add Makefile for running linters etc. --- .mdlrc | 2 ++ Makefile | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .mdlrc create mode 100644 Makefile diff --git a/.mdlrc b/.mdlrc new file mode 100644 index 0000000..60ecd7f --- /dev/null +++ b/.mdlrc @@ -0,0 +1,2 @@ +# Disable "MD013 Line length" and "MD029 Ordered list item prefix". +rules "~MD013", "~MD029" diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1950f8a --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: check phpstan phpcs markdownlint + +check: phpstan phpcs markdownlint + +phpstan: + -vendor/bin/phpstan analyse . + +phpcs: + -vendor/bin/phpcs -s bin/ src/ + +# gem install mdl +markdownlint: + -mdl *.md