Project

General

Profile

Actions

action #92146

open

Automatically validate indentation in shellscripts

Added by livdywan over 3 years ago. Updated over 3 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2021-05-05
Due date:
% Done:

0%

Estimated time:

Description

Motivation

It would be great to have automated checks for more style aspects to shellscript code such as indentation

Acceptance criteria

  • AC1: Indentation in shellscripts is checked automatically

Acceptance tests

  • AT1: Inconsistent indentation in shellscripts prevents deployments

Suggestions

Actions #1

Updated by osukup over 3 years ago

need shfmt or another tool coding style is outside ShellCheck scope and target.

Actions #2

Updated by okurz over 3 years ago

  • Target version set to future

sounds good. shfmt has been mentioned in the description already . https://software.opensuse.org/package/shfmt?search_term=shfmt shows that so far we only have an openSUSE package in a home repo though

Actions

Also available in: Atom PDF