-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Shellcheck Exclusions
This wiki page lists all of the shellcheck errors that we're ignoring when testing Neofetch.
Can't follow non-constant source. Use a directive to specify location.
This error has been disabled since we're not sourcing the config file when running shellcheck.
SC2009 Consider using pgrep instead of grepping ps output.
We were originally using pgrep until we found out that pgrep has some issues on macOS systems.
foo appears unused. Verify it or export it.
This error has been disabled since we dynamically use the info variables. ($kernel)
Possible Misspelling: MYVARIABLE may not be assigned, but MY_VARIABLE is.
We use a lot of Environment Variables and this error comes up whenever we reassign an Environment Variable to a local variable. Totally harmless.
Variable was used as an array but is now assigned a string.
Each info function in Neofetch is split into separate parts for each Operating System. One OS might need an array to get the info and the others may not. Shellcheck sees mixed usage of Arrays/Variables and that's what causes this error.