mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-05 20:41:35 -07:00
Clarify 'export' suggestion in SC2034 (unused vars).
This commit is contained in:
parent
ef6a5b97b9
commit
719e1854e5
1 changed files with 1 additions and 1 deletions
|
@ -1817,7 +1817,7 @@ checkUnusedAssignments params t = execWriter (mapM_ warnFor unused)
|
|||
|
||||
warnFor (name, token) =
|
||||
warn (getId token) 2034 $
|
||||
name ++ " appears unused. Verify it or export it."
|
||||
name ++ " appears unused. Verify use (or export if used externally)."
|
||||
|
||||
stripSuffix = takeWhile isVariableChar
|
||||
defaultMap = Map.fromList $ zip internalVariables $ repeat ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue