var=1 # shellcheck disable=SC2034
# shellcheck disable=SC2034 var=1
ShellCheck expects directives to come before the relevant command. They are not allowed after.
If this is not a directive and just a comment mentioning ShellCheck, please rewrite or capitalize:
var=1 # ShellCheck encourages lowercase variable names
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.