-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
let luacheck find luacheck itself #1057
Conversation
@ghprince Thanks a lot! May I ask you to remove the definition of the variable as well, and maybe add a note about the removal to |
@@ -1,6 +1,11 @@ | |||
30-cvs (in development) | |||
======================= | |||
|
|||
- Improvements: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please list this as **Breaking change**:
, as it'll break configurations that try to set this variable explicitly.
@ghprince Oh, I forgot about |
@lunaryorn thx a lot for your advice. working on it :) do I need to remove the section in |
@ghprince Please ignore that. It's just for reference for stuff that's not in the new manual yet, but it'll go away eventually. |
@lunaryorn also there is a test in |
@ghprince Ah, sorry. I forgot about the test. Just remove it. With the option gone, it's redundant, and I don't think that we should try and test luacheck's behaviour. I think we can just rely upon luacheck doing its job properly, and I hope that luacheck has tests for that 😎 So just remove that test case and the corresponding config file at |
@lunaryorn oops, didn't see your reply... I fixed that test by copy-and-then-delete to create temporary |
@ghprince Oh, thanks for fixing these test cases. I wished we could run them on Travis CI, and in fact we used to do that long ago but it didn't work so well. Travis CI took ages to install all the syntax checker tools that we support, and tests would constantly break due to minor changes in the output of some tool so we'd spend a non-trivial amount of time on constantly updating the test cases. It got out of hand and that's where I got fed up, split the integration tests from the rest and decided to stop running the integration tests on Travis CI. Our builds are a lot more stable now, and feedback for contributors comes much faster. We now only use the integration tests for local testing when making changes to syntax checkers, i.e. I sometimes ask contributors to run If you've got any idea how we could run the language tests or at least a subset thereof on Travis CI or any other CI platform I'd be happy to hear it. As to this PR, please rebase on master and resolve the merge conflict in |
(flycheck-ert-resource-filename "language/lua/.luacheckrc")) | ||
(flycheck-ert-should-syntax-check | ||
"language/lua/warnings.lua" 'lua-mode) | ||
(delete-file (flycheck-ert-resource-filename "language/lua/.luacheckrc"))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a nice idea, but as far as I'm concerned I'd like to ask you to remove the test case entirely. All that we're still testing here is that luacheck itself works correctly and I think that's not our concern. I think we can rely upon luacheck to do its job correctly.
Please remove this test case and the luacheckrc
configuration file. Let's keep the tests confined to what's really done by Flycheck, i.e. parsing the output of Luacheck which is already covered by the other test cases for luacheck.
517318e
to
b79e282
Compare
@lunaryorn Thanks a lot for your explanation! It's good to know the history. I don't have any ideas of improving the workflow now, but will definitely share with you when I come up with something. And I have rebased this branch onto current master and fixed the conflict as you suggested. |
@ghprince Thanks a bunch. LGTM now. Would you mind to squash your commits? |
b79e282
to
709d766
Compare
@lunaryorn I think github merge button can do squash-and-merge. but anyway I just squashed this branch :) |
@ghprince Yup, but just in case someone accidentally presses merge 😉 and in somecases I prefer to merge normally because Github's squash merge looses commit signatures 😞 By the way, would you like to join Flycheck and help maintain Lua support? We've got no Lua team yet and could use some help here 😊 In fact we could use any helping hand, and I'd be happy to welcome you as a contributor 😊 |
LGTM; thanks for this contribution! |
@lunaryorn Thanks a lot for your invitation. I would like to join :) |
As discussed in #1047,
luacheck
is capable of finding its config file.luacheckrc
itself, it also works better with--filename
option.Therefore, we should remove
config-file
call forlua-luacheck