From bf2131f8a55459f2d9c980856107f0a96009a05a Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Fri, 29 May 2020 11:21:36 -0500 Subject: Add continuous integration code linting script This is a short-term solution for testing code formatting during continuous integration. It relies on the npm ci function to install package dependencies and run the vue-cli-service lint command. Signed-off-by: Derick Montague Change-Id: I4a6c3f304ad4caa409c4f463dc1a098a96b7467f --- format-code.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 format-code.sh (limited to 'format-code.sh') diff --git a/format-code.sh b/format-code.sh new file mode 100755 index 00000000..b490dd2a --- /dev/null +++ b/format-code.sh @@ -0,0 +1,11 @@ +# Run GUI Linting and Formatting as part of the CI Build process +# +# This is a short term solution. The long term solution to will be to +# add much of this to the build script. +# + +set -e + +npm ci +npm run lint +git --no-pager diff --exit-code \ No newline at end of file -- cgit v1.2.3