Project

General

Profile

action #92146

Automatically validate indentation in shellscripts

Added by cdywan 3 months ago. Updated 3 months ago.

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

0%

Estimated time:
Difficulty:

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

History

#1 Updated by osukup 3 months ago

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

#2 Updated by okurz 3 months 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

Also available in: Atom PDF