Skip to content

Luacheck: Respect warn_about_trailing_whitespace option#968

Merged
w0rp merged 2 commits into
dense-analysis:masterfrom
adriaanzon:luacheck-whitespace
Oct 12, 2017
Merged

Luacheck: Respect warn_about_trailing_whitespace option#968
w0rp merged 2 commits into
dense-analysis:masterfrom
adriaanzon:luacheck-whitespace

Conversation

@adriaanzon

Copy link
Copy Markdown
Contributor

@w0rp w0rp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good idea. 👍

Could you modify the tests to check for this?

@adriaanzon

Copy link
Copy Markdown
Contributor Author

Sure thing, I updated the test to check if it leaves out the warning.

@w0rp w0rp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should leave the current test as-is, and add another case with the variable set to 0. Otherwise, you aren't testing if the variable has any effect.

Could you include some lines with each of the error codes you wish to filter out, and at least one you do not wish to filter out in the test? That should cover it.

@adriaanzon

Copy link
Copy Markdown
Contributor Author

Good idea 🙂

I finally found some time to sort this out.

@w0rp w0rp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool, looks good. 👍

@w0rp w0rp merged commit dded246 into dense-analysis:master Oct 12, 2017
@w0rp

w0rp commented Oct 12, 2017

Copy link
Copy Markdown
Member

Cheers! 🍻

@adriaanzon adriaanzon deleted the luacheck-whitespace branch February 2, 2018 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants