From ac08751a68b8b9e23f8f920aac0429f0267610f9 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 3 Mar 2016 08:59:42 +0200 Subject: [PATCH] - Added lint target. - Updated documentation accourdingly. --- Makefile | 7 +++++-- README.rst | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 9d3bfb0..5ccf019 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: install clean test +.PHONY: install clean test lint sshd_config: @@ -17,7 +17,10 @@ clean: if [ -f sshd.pid ] && [ -d "/proc/$$(cat sshd.pid)" ]; then kill "$$(cat sshd.pid)"; fi rm -rf CA CA.pub users hosts known_hosts sshd.pid sshd_config -test: clean sshd_config +lint: + /bin/sh -en ssh-ca + +test: clean sshd_config lint ./ssh-ca init ./ssh-ca newuser $$USER ./ssh-ca newhost localhost diff --git a/README.rst b/README.rst index 5b140d7..f2e7093 100644 --- a/README.rst +++ b/README.rst @@ -86,8 +86,9 @@ Authenticating users Development ----------- -To ease development :code:`make clean` and :code:`make test` are available. -It's recommended to add :code:`make test` to your git pre-commit hook. +To ease development :code:`make clean`, :code:`make lint` and :code:`make test` +are available. It's recommended to add :code:`make lint` and :code:`make test` +to to your Git pre-commit and pre-push hooks accourdingly. License ------- -- GitLab