Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-12-08 06:09:37 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-08 06:09:37 +0300
commit1741eab29cacbe9bc0ada51f60496774eb177cc9 (patch)
treea21755b25d99523dd443325d46b2c263932b411f /doc/development/shell_scripting_guide
parentb4ddc240452f468b7db1662c6cc36d15b9995030 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/shell_scripting_guide')
-rw-r--r--doc/development/shell_scripting_guide/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/shell_scripting_guide/index.md b/doc/development/shell_scripting_guide/index.md
index c9e2c98716b..6071ae3a09d 100644
--- a/doc/development/shell_scripting_guide/index.md
+++ b/doc/development/shell_scripting_guide/index.md
@@ -72,7 +72,7 @@ shell check:
- shellcheck scripts/**/*.sh # path to your shell scripts
```
-TIP: **Tip:**
+NOTE:
By default, ShellCheck uses the [shell detection](https://github.com/koalaman/shellcheck/wiki/SC2148#rationale)
to determine the shell dialect in use. If the shell file is out of your control and ShellCheck cannot
detect the dialect, use `-s` flag to specify it: `-s sh` or `-s bash`.
@@ -100,7 +100,7 @@ shfmt:
- shfmt -i 2 -ci -d scripts # path to your shell scripts
```
-TIP: **Tip:**
+NOTE:
By default, shfmt uses the [shell detection](https://github.com/mvdan/sh#shfmt) similar to one of ShellCheck
and ignore files starting with a period. To override this, use `-ln` flag to specify the shell dialect:
`-ln posix` or `-ln bash`.