# ShellCheck - A shell script static analysis tool - Can we add this to the conda environment?

**URL:** <https://forum.access-hive.org.au/t/shellcheck-a-shell-script-static-analysis-tool-can-we-add-this-to-the-conda-environment/1094>\
**Category:** Infrastructure\
**Tags:** conda, modules\
**Created:** [17 August 2023 00:32 UTC](https://forum.access-hive.org.au/t/shellcheck-a-shell-script-static-analysis-tool-can-we-add-this-to-the-conda-environment/1094 "2023-08-17T00:32:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![griff](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/griff/32/332_2.png) [@griff](https://forum.access-hive.org.au/u/griff)\
**Post date:** [17 August 2023 00:32 UTC](https://forum.access-hive.org.au/t/shellcheck-a-shell-script-static-analysis-tool-can-we-add-this-to-the-conda-environment/1094/1 "2023-08-17T00:32:57Z")

</div>

Increasingly, we are trying to use pipelines for checking our code and scripts. It appears that `shellcheck` is available in the NCI pipeline (gitlab-ci.yml) and it would be great to be able to access this on the commandline before commiting code to a repository.

Can we add this to the hh5 environment? Is this an appropriate location?

Griff.

---

<div class="post-metadata">

**Author:** ![Aidan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aidan/32/42_2.png) [@Aidan](https://forum.access-hive.org.au/u/Aidan)\
**Post date:** [17 August 2023 00:52 UTC](https://forum.access-hive.org.au/t/shellcheck-a-shell-script-static-analysis-tool-can-we-add-this-to-the-conda-environment/1094/2 "2023-08-17T00:52:51Z")

</div>

Hey Griff,

It’s a good idea, and yeah that seems a decent place for it.

I you do want them to add it to the `hh5` conda environment best to make an issue

> **[Issues · coecms/conda-envs](https://github.com/coecms/conda-envs/issues)**
>
> Contribute to coecms/conda-envs development by creating an account on GitHub.

It appears shellcheck is available for major distros, including Rocky Linux which is used at NCI. So you could email help@nci.org.au and request they install it.

Cheers

Aidan

---

<div class="post-metadata">

**Author:** ![griff](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/griff/32/332_2.png) [@griff](https://forum.access-hive.org.au/u/griff)\
**Post date:** [17 August 2023 03:55 UTC](https://forum.access-hive.org.au/t/shellcheck-a-shell-script-static-analysis-tool-can-we-add-this-to-the-conda-environment/1094/3 "2023-08-17T03:55:17Z")

</div>

Issue raised here: [A shell script static analysis tool - Can we add this to the conda environment? · Issue #46 · coecms/conda-envs · GitHub](https://github.com/coecms/conda-envs/issues/46)

---

<div class="post-metadata">

**Author:** ![griff](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/griff/32/332_2.png) [@griff](https://forum.access-hive.org.au/u/griff)\
**Post date:** [17 August 2023 03:58 UTC](https://forum.access-hive.org.au/t/shellcheck-a-shell-script-static-analysis-tool-can-we-add-this-to-the-conda-environment/1094/4 "2023-08-17T03:58:40Z")

</div>

Email sent to help@nci

---

<div class="post-metadata">

**Author:** ![lachlanswhyborn](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/lachlanswhyborn/32/1837_2.png) [@lachlanswhyborn](https://forum.access-hive.org.au/u/lachlanswhyborn)\
**Post date:** [12 September 2024 05:55 UTC](https://forum.access-hive.org.au/t/shellcheck-a-shell-script-static-analysis-tool-can-we-add-this-to-the-conda-environment/1094/5 "2024-09-12T05:55:18Z")

</div>

Closed for archival.
