Merge pull request #4287 from aledbf/lualint

Add script for luacheck
This commit is contained in:
Kubernetes Prow Robot 2019-07-08 12:46:36 -07:00 committed by GitHub
commit 82c22e3969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 2 deletions

View file

@ -28,5 +28,3 @@ if [ -z "${PKG}" ]; then
fi
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/