Enable `Lint/UselessAssignment` for haml-lint
Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/50697
Of particular importance are the changes in 6dc252e4, which actually correct a bug rather than remove a useless assignment.
CE version of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7156.
Edited by Robert Speicher