Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add luacheck to lint lua files #2205

Merged
merged 1 commit into from
Mar 18, 2018
Merged

Conversation

halfcrazy
Copy link
Contributor

What this PR does / why we need it:
Add Lua lint tool luacheck as there are some lua codes for lua-nginx-module.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 18, 2018
@codecov-io
Copy link

codecov-io commented Mar 18, 2018

Codecov Report

Merging #2205 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2205   +/-   ##
=======================================
  Coverage   36.85%   36.85%           
=======================================
  Files          70       70           
  Lines        4963     4963           
=======================================
  Hits         1829     1829           
  Misses       2855     2855           
  Partials      279      279

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c90a4e8...df17d31. Read the comment docs.

@halfcrazy
Copy link
Contributor Author

/assign @bowei

@@ -37,8 +37,8 @@ local function balance()

-- Round-Robin
round_robin_lock:lock(backend_name .. ROUND_ROBIN_LOCK_KEY)
local index = round_robin_state:get(backend_name)
local index, endpoint = next(backend.endpoints, index)
local shd_idx = round_robin_state:get(backend_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rather call this last_index? That would be more descriptive IMHO.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@aledbf
Copy link
Member

aledbf commented Mar 18, 2018

/approve

@aledbf
Copy link
Member

aledbf commented Mar 18, 2018

@halfcrazy thanks!

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, halfcrazy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 18, 2018
@aledbf aledbf merged commit 977cfcb into kubernetes:master Mar 18, 2018
@halfcrazy halfcrazy deleted the add-luacheck branch March 18, 2018 16:32
oilbeater added a commit to oilbeater/ingress-nginx that referenced this pull request Mar 19, 2018
Add script to verify if bindata is up to date.
Add changes in kubernetes#2205 to bindata and reformat bindata file to the format that go-bindata generated.
aledbf pushed a commit that referenced this pull request Mar 19, 2018
Add script to verify if bindata is up to date.
Add changes in #2205 to bindata and reformat bindata file to the format that go-bindata generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants