Superseded by buildkit/DuplicateStageName, which provides the same check.
Hadolint Rules
hadolint/DL3024
Duplicate stage names are not allowed.
Duplicate stage names are not allowed.