From 6c8b7379dca71468ff713021e9dc895acf8f3e51 Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Mon, 8 Jul 2019 14:21:24 -0400 Subject: [PATCH] Add script for luacheck --- build/static-check.sh | 2 -- hack/verify-lualint.sh | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100755 hack/verify-lualint.sh diff --git a/build/static-check.sh b/build/static-check.sh index 521a1d4086b..dcbc22db451 100755 --- a/build/static-check.sh +++ b/build/static-check.sh @@ -28,5 +28,3 @@ if [ -z "${PKG}" ]; then fi hack/verify-all.sh - -luacheck --codes -q rootfs/etc/nginx/lua/ diff --git a/hack/verify-lualint.sh b/hack/verify-lualint.sh new file mode 100755 index 00000000000..617d353907f --- /dev/null +++ b/hack/verify-lualint.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# Copyright 2014 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -o errexit +set -o nounset +set -o pipefail + +luacheck --codes -q rootfs/etc/nginx/lua/