Bug 400784 - Implement ShellCheck Linter
Summary: Implement ShellCheck Linter
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-07 05:43 UTC by zeta
Modified: 2021-11-08 05:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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