An alt text calls the image an image, photo or picture
What it finds
Screen readers already announce an <img> as an image, so an alt text with the words "image", "photo" or "picture" says it twice and pushes the description further back.
Reported are literal alt texts of <img> elements that contain one of these words, unless the image is hidden with aria-hidden.
From the rule's source, alt_text_says_image.rs.
Turn it on, off or suppress it
The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:alt-text-says-image" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/ts:alt-text-says-image] reason="..."tx0 explain tx0/ts:alt-text-says-image shows the same in the terminal. Found a false positive? Report it.