Project

General

Profile

Feature #20901

Run a shell linter on bash scripts and add unit tests

Added by Marco Mambelli 11 months ago. Updated 10 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
09/20/2018
Due date:
% Done:

0%

Estimated time:
Stakeholders:
Duration:

Description

There are shell linters like shellcheck that could improve the quality of the shell scripts.
Shell scripts could have unit tests too, see Bats for a framework.
Useful links:
- https://github.com/progrium/bashstyle
- https://github.com/koalaman/shellcheck
- https://github.com/sstephenson/bats

History

#1 Updated by Marco Mambelli 10 months ago

  • Target version changed from v3_5 to v3_5_1

#2 Updated by Marco Mambelli 10 days ago

  • Target version changed from v3_5_1 to v3_5_2

#3 Updated by Marco Mambelli 10 days ago

  • Target version changed from v3_5_2 to v3_4_7
  • Assignee changed from Marco Mambelli to Leonardo Lai

Temporary reassignment, to provide suggestions about linting bash.

Ticket completion will include also a script to run the linter in CI.



Also available in: Atom PDF