Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
annotate .shellcheckrc @ 649:4ee9a8042f4a
common.subr: _get_jail_from_path() now just returns when the jail is dying.
But it prints the name of the jail if it is yet dying.
Real error reporting must not consistently be done in the caller.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 27 Sep 2024 21:21:34 +0200 |
| parents | 31b5c10ae1d4 |
| children | 24129dd789f0 |
| rev | line source |
|---|---|
|
542
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
1 # |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 # See: shellcheck(1) |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 # |
|
574
31b5c10ae1d4
.shellcheckrc: Comment on reasons: FreeBSD has this non-required features in POSIX shells
Franz Glasner <fzglas.hg@dom66.de>
parents:
542
diff
changeset
|
4 # To see a list of |
|
542
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 # See: https://www.shellcheck.net/wiki/ |
|
574
31b5c10ae1d4
.shellcheckrc: Comment on reasons: FreeBSD has this non-required features in POSIX shells
Franz Glasner <fzglas.hg@dom66.de>
parents:
542
diff
changeset
|
6 # |
|
31b5c10ae1d4
.shellcheckrc: Comment on reasons: FreeBSD has this non-required features in POSIX shells
Franz Glasner <fzglas.hg@dom66.de>
parents:
542
diff
changeset
|
7 # This is a customization for FreeBSD: |
|
31b5c10ae1d4
.shellcheckrc: Comment on reasons: FreeBSD has this non-required features in POSIX shells
Franz Glasner <fzglas.hg@dom66.de>
parents:
542
diff
changeset
|
8 # in FreeBSD there is $'...', local; and tests with logical operstors work |
|
31b5c10ae1d4
.shellcheckrc: Comment on reasons: FreeBSD has this non-required features in POSIX shells
Franz Glasner <fzglas.hg@dom66.de>
parents:
542
diff
changeset
|
9 # as expected. |
|
31b5c10ae1d4
.shellcheckrc: Comment on reasons: FreeBSD has this non-required features in POSIX shells
Franz Glasner <fzglas.hg@dom66.de>
parents:
542
diff
changeset
|
10 # |
|
542
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 source-path=SCRIPTDIR/../share/local-bsdtools |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 source-path=SCRIPTDIR |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 external-sources=true |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 # $/${} is unnecessary on arithmetic variables |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
17 disable=SC2004 |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
18 # Prefer [ p ] && [ q ] as [ p -a q ] is not well-defined |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
19 disable=SC2166 |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
20 # In POSIX sh, $'..' is undefined |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
21 disable=SC3003 |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
22 # In POSIX sh, local is undefined |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
23 disable=SC3043 |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
24 |
|
1e46e254366e
Use a new .shellcheckrc file for common configuration settings for shellcheck.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
25 enable=avoid-nullary-conditions |
