-
Notifications
You must be signed in to change notification settings - Fork 132
Shellcheck integration #342
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
Conversation
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.
Thanks for adding this! Can I get you to run yarn lint
to auto fix some linting issues?
Ah of course, my apologies. I have now linted and rebased with master. Please let me know if there's anything else you'd like to see |
Codecov Report
@@ Coverage Diff @@
## master #342 +/- ##
==========================================
+ Coverage 72.91% 73.96% +1.04%
==========================================
Files 18 19 +1
Lines 576 653 +77
Branches 94 112 +18
==========================================
+ Hits 420 483 +63
- Misses 135 144 +9
- Partials 21 26 +5
Continue to review full report at Codecov.
|
It works! Thank you <3 |
@skovhus Is there anything currently blocking this? |
My feeling was that it probably merited some tests. I just haven't had time to come back to it yet and fill the gap, hence why I haven't pushed harder to get it merged. |
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.
It would be great to add a few unit tests. Thanks again for adding support for this.
I've added some tests; looks like the workflow needs to be approved again? Please let me know if there are any other tests you'd like to see added, or any changes you want me to make. |
I've fixed the test error with Node 14. Can someone please approve the workflow? |
Just want to make sure this doesn't get forgotten about. A lot of people are looking forward to seeing this in release. |
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.
I just tried this out and it works really nicely! Thanks for adding this 👏
My pleasure! Thanks for reviewing and thank you for the project! Would you like me to rebase the PR onto master now? |
My pleasure! Thanks for reviewing and thank you for the project! Would you like me to rebase the PR onto master now? We are not to strict on rebasing, but if you want that would be great. I added one small suggestion. There also seems to be some formatting issue, can you run |
Yikes, it looks like github borked the rebase and replaced it with a merge commit. I will fix and force push. |
Ah whups, auto merge enabled; should I just let it go and not muck around with it? |
Let me know when you are ready for this to be merged. :) Again, we are not super strict on rebasing/merging. |
I guess it's just a question of whether you want me to get rid of that merge commit or not. If it doesn't bother you, I'm happy to leave it. If it does, I'll do the git rebase dance 😄 |
I guess it's just a question of whether you want me to get rid of that merge commit or not. If it doesn't bother you, I'm happy to leave it. If it does, I'll do the git rebase dance 😄 I've gotten more relaxed over the years :D If you have time then please have a look at #388, I would like your thoughts on the README update. |
This was causing an error on Node 14, it was incorrect but appeared to work on later versions
Co-authored-by: Kenneth Skovhus <[email protected]>
Co-authored-by: Kenneth Skovhus <[email protected]>
Co-authored-by: Kenneth Skovhus <[email protected]>
Co-authored-by: Kenneth Skovhus <[email protected]>
Co-authored-by: Kenneth Skovhus <[email protected]>
6.1.0 (latest) still support node 12 ;) |
Would |
I don't think so, not without pretty much the same issue, as it would need to be extended for stdin support. I think I've fixed the test issue now though, the tests pass on node 12, 14, 16 and 18 on my local machine. |
After checking the latest commit (0f607ba) I got the error :(
|
Did you run a clean This error seems to be fixed in #394 |
Yup, I removed the all your repo and reclone it ;) |
- `null-ls` no longer maintained[^1] - `bash-lsp` supports shellcheck for diagnostics[^2] [^1]: jose-elias-alvarez/null-ls.nvim#1621 [^2]: bash-lsp/bash-language-server#342
Following on from discussion in #272 and #104, here is a PR that offers some preliminary integration.
I've updated to merge diagnostics from treesitter and shellcheck as requested (naively by concatenating at first, can get fancier if desired). I still want to add some tests. Happy to make any other changes needed.