Skip to content

Conversation

@kendallgassner
Copy link
Collaborator

@kendallgassner kendallgassner commented Jun 28, 2023

resolves #23

What

I am adding a couple new flags:

  • Flags when an image tag contians <img alt='' ...
  • Flags when a markdown image is empty ![]
  • Flags when an images does not contain alt text <img />

Our CI was not actually failing when a test failed. I fixed this by adding exit 1 when a unit test failed.

@kendallgassner kendallgassner requested a review from a team as a code owner June 28, 2023 00:48
@kendallgassner kendallgassner requested a review from khiga8 June 28, 2023 15:01
@kendallgassner kendallgassner changed the title [WIP]: Flag images without alt text Flag images without alt text Jun 28, 2023
Comment on lines +62 to +63
echo "Detected bad alt text: ${flag}"
echo "Event type: $type"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and clear!

@kendallgassner kendallgassner requested a review from khiga8 July 5, 2023 16:27
Copy link
Contributor

@khiga8 khiga8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 🎉

@kendallgassner kendallgassner merged commit b5828a5 into main Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flag images with no alt text at all

3 participants