Bug 400784

Summary: Implement ShellCheck Linter
Product: [Applications] kate Reporter: zeta <franciscodezuviria>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: christoph, shenlebantongying
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description zeta 2018-11-07 05:43:00 UTC
I wish to contribute with a ShellCheck Linter

Shellcheck: https://github.com/koalaman/shellcheck/blob/master/README.md

What's the best way to do this? Is a new plugin needed, or is it there
already a Linter plugin where I can add the Shellcheck support?

u/aKateDev in Reddit provided with this help so far:

> All plugins are located here: https://github.com/KDE/kate/tree/master/addons
> Maybe of interest is the projects plugin, since it already has linters: https://github.com/KDE/kate/tree/master/addons/project/tools
> Maybe you want to create a new plugin, though.

But I'm still not sure the best way to go with this.

We can really make use of some experiences kate developer dropping us
down some high level guidelines on how this feature should be
implemented, and if we should base our solution on some existing code.

Best Regards.
Comment 1 zeta 2018-11-07 05:47:34 UTC
This is the kwrite devel thread (in which there are no responses yet)

https://mail.kde.org/pipermail/kwrite-devel/2018-October/001790.html
Comment 2 Christoph Cullmann 2018-11-07 06:15:20 UTC
One could add this checker to the project plugin, yes.

See e.g. how cppcheck is integrated:

https://cgit.kde.org/kate.git/tree/addons/project/tools/kateprojectcodeanalysistoolcppcheck.cpp
Comment 3 shenlebantongying 2021-11-08 05:32:17 UTC
This is already implemented. 

If u come from Google, enable `project` plugin then click `current project` -> `Code analysis` -> select shellcheck.

https://phabricator.kde.org/D17314