Project

General

Profile

Feature #20901

Run a shell linter on bash scripts and add unit tests

Added by Marco Mambelli about 1 year ago. Updated 15 days ago.

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

100%

Estimated time:
(Total: 0.00 h)
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


Subtasks

Feature #23235: Run shellcheck linter on bash scripts automaticallyClosedLeonardo Lai

History

#1 Updated by Marco Mambelli 11 months ago

  • Target version changed from v3_5 to v3_5_1

#2 Updated by Marco Mambelli 2 months ago

  • Target version changed from v3_5_1 to v3_6_1

#3 Updated by Marco Mambelli 2 months ago

  • Target version changed from v3_6_1 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.

#4 Updated by Leonardo Lai about 1 month ago

  • Start date changed from 09/20/2018 to 09/05/2019
  • Due date set to 09/05/2019

due to changes in a related task: #23235

#5 Updated by Marco Mambelli 15 days ago

  • Target version changed from v3_4_7 to v3_6_1


Also available in: Atom PDF