Add script for luacheck

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-07-08 14:21:24 -04:00
parent 1387f7b7eb
commit 6c8b7379dc
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
2 changed files with 21 additions and 2 deletions

View file

@ -28,5 +28,3 @@ if [ -z "${PKG}" ]; then
fi fi
hack/verify-all.sh hack/verify-all.sh
luacheck --codes -q rootfs/etc/nginx/lua/

21
hack/verify-lualint.sh Executable file
View file

@ -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/