vlead / feedback-portal

This is the portal, where all kinds of feedback related to a lab or an experiment is filled in.
Other
0 stars 11 forks source link

Prohibit unused variables #64

Open madhavipuliraju opened 6 years ago

madhavipuliraju commented 6 years ago

Variables not used for anything are often associated with bugs, so ShellCheck warns about them.

Problematic code:

foo=42
echo "$FOO"

foo appears unused in the above code. Correct code:

foo=42
echo "$foo"