-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.shellcheckrc
More file actions
29 lines (25 loc) · 1.01 KB
/
.shellcheckrc
File metadata and controls
29 lines (25 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Shellcheck configuration for chezmoi dotfiles
# See: https://www.shellcheck.net/wiki/
# Shell dialect auto-detection (from shebang)
# Supports: sh (POSIX), bash, dash, ksh
shell=auto
# Disable error codes for Go template compatibility
# SC1083: Literal { in template syntax conflicts with {{ .var }}
# SC1009: Parsing errors from Go template delimiters
# SC1073: Parsing errors from Go template control structures
# SC1072: Parsing errors from Go template functions
# SC2148: Shebang checking conflicts with template expansion
# SC2155: Declare and assign separately (common pattern in this codebase)
disable=SC1083,SC1009,SC1073,SC1072,SC2148,SC2155
# Enable optional checks
enable=add-default-case
enable=avoid-nullary-conditions
enable=check-extra-masked-returns
enable=check-set-e-suppressed
enable=deprecate-which
enable=quote-safe-variables
enable=require-double-brackets
# Severity configuration
# Only show errors and warnings (block commit on these)
# Exclude info and style to avoid false positives
severity=warning