ShellCheck
efm-langserver
Our great sponsors
ShellCheck | efm-langserver | |
---|---|---|
459 | 43 | |
32,226 | 884 | |
- | - | |
7.5 | 0.0 | |
11 days ago | 22 days ago | |
Haskell | Go | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ShellCheck
-
these lines causing errors but I swear they weren't causing error before and I didn't change anything
https://www.shellcheck.net/ https://github.com/koalaman/shellcheck
-
First time writing bash scripts for work, not sure if this is true elsewhere
not sure about unit/functional testing, but https://www.shellcheck.net/ is handy for linting and finding bad practice.
-
Bash newbie here, wanted to know your opinion
First, how did ShellSheck didn't give you warnings, if you checked it?
-
Bash script string argument is interpreted als multiple arguments
BTW, check out https://www.shellcheck.net/. You can install it to your computer and it'll warn you about this and many other ways you can accidentally shoot at your own foot with Bash.
-
Take your BASH scripting seriously
This is super easy but, may not always be enough.. Luckily, the fine people at ShellCheck gave this some thought and created a nifty tool. It’s got a nice README, is available via most decent package managers and, even has a web interface where you can test snippets (in case you’re bored and on the tube, I guess). The README also includes a Gallery of bad code to showcase some of the stuff shellcheck can pick up on.
-
Which Shell?
Bash because it's everywhere and I've put effort into learning it properly. My scripts almost always pass shellcheck first try, and I know the syntax of bash-specific features reasonably well. I don't see any advantage to learning another shell which I need to explicitly install and relearn all over again.
-
[P] Convert Any language to a Linux command (one-liner)
The Prompt logic could include some nuance to flag potentially harmful commands, but it would still be potentially fallible. However, you raise an excellent point, and value can be added by altering the workflow to run the results through a tool like shellcheck, where you can customize acceptable BASH commands.
-
Prompt advice for ChatGPT4
Idea: Incorporate shellcheck that repeats the code back to the bot until it passes shellcheck at least.
-
Why is it that a command run from the terminal command line produces line break but the same command run within bash script has no line break/
A good way to learn the finicky bits is to run all your scripts through shellcheck. (Better yet, find a plugin for your editor/IDE.) If it flags an issue, read the corresponding wiki page and see if you understand it.
-
Would love some feedback on my first set of shell scripts
Have you run them through shellcheck? https://www.shellcheck.net/
efm-langserver
-
How do you handle level productivity: autoformat, insert debug statement, execute file?
I use the LSP if it supports formatting. I supplement that with efm-langserver which interfaces with CLI formatters and linters. It works well, similar to null-ls as I understand it.
-
Editing the same file in a split causes vim to jump to the top of the file when saving with autoformatter
As far as I know, the only solution (other than getting formatting directly from a LSP server) is to use EFM (https://github.com/mattn/efm-langserver), which implements the tricky logic of figuring out how to only update the changed text.
- Universal coc language server?
-
How to do syntax checking on languages that don't have an LSP server in neovim?
There's also efm which wraps linters into an LSP server which can then communicate with nvim.
-
What spell checker/correction are you using for neovim ?
Since I'm using efm-language server with configured `misspell tool. However, this just suggest the incorrect word for the buffer. I
-
What is the purpose of null-ls.nvim? I've read the README but I don't really understand what it gives me over a language server like clangd or jdtls, for example
Note that there are also other implementations of such a multipurpose language server like the efm-langserver. While efm works for any editor/tool that uses language servers, Null-ls is a optimized solution only for NeoVim.
-
how to conditionally allow efm to enable formatting
money! thank you for this. I was looking for answers [here](https://github.com/mattn/efm-langserver) , forgot about [this](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server\_configurations.md#efm)
-
Anyone know how to make prettier run faster when run on save? It takes about 2 seconds every time I write my buffer to desk for Neovim to become responsive again.
I see that prettierd is an option to fix this issue, but do I have to go get efm-langserver or can I just replace prettier w/ prettierd and it just works?
-
Make live unit testing work in Neovim and you will have my undying appreciation.
I've only just come across them, but I assume this could theoretically be achieved with https://github.com/mattn/efm-langserver and https://github.com/jose-elias-alvarez/null-ls.nvim
-
lspconfig, efm and workspace level diagnostics
Hi! I've been trying to make golangci-lint to be used with lspconfig via https://github.com/mattn/efm-langserver
What are some alternatives?
null-ls.nvim - Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua.
nvim-lspconfig - Quickstart configs for Nvim LSP
bash-language-server - A language server for Bash
format.nvim - A wrapper around Neovims native LSP formatting. [Moved to: https://github.com/lukas-reineke/lsp-format.nvim]
shfmt - Dockernized shfmt. This formats shell script.
diagnostic-languageserver - diagnostic language server integrate with linters
formatter.nvim
PowerShell - PowerShell for every system!
shellharden - The corrective bash syntax highlighter
neomake - Asynchronous linting and make framework for Neovim/Vim
neoformat - :sparkles: A (Neo)vim plugin for formatting code.
sh - A shell parser, formatter, and interpreter with bash support; includes shfmt