Skip to content

Commit

Permalink
Merge pull request #4287 from aledbf/lualint
Browse files Browse the repository at this point in the history
Add script for luacheck
  • Loading branch information
k8s-ci-robot committed Jul 8, 2019
2 parents 3e8cbe6 + 6c8b737 commit 82c22e3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build/static-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,3 @@ if [ -z "${PKG}" ]; then
fi

hack/verify-all.sh

luacheck --codes -q rootfs/etc/nginx/lua/
21 changes: 21 additions & 0 deletions hack/verify-lualint.sh
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit 82c22e3

Please sign in to comment.