Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply suppressions to AccessibilityViewCheckResult instead of filtering #573

Merged
merged 3 commits into from
Nov 23, 2024

Conversation

yschimke
Copy link
Contributor

@yschimke yschimke commented Nov 23, 2024

This change introduces a new applySuppressions function to process suppressions for accessibility check results. It filters results based on suppression rules and adds a new AccessibilityCheckResultType.SUPPRESSED type for suppressed results. Additionally, it adds logging for suppressed results.

Existing logic filters instead of suppressing, making these invisible.

fixes #570

yschimke and others added 3 commits November 23, 2024 09:46
This change introduces a new `applySuppressions` function to process suppressions for accessibility check results.
It filters results based on suppression rules and adds a new `AccessibilityCheckResultType.SUPPRESSED` type for suppressed results.
Additionally, it adds logging for suppressed results.
AccessibilityCheckResultType.INFO
)

return map { checkResult ->
Copy link
Owner

Choose a reason for hiding this comment

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

I'm a little confused, so I added the parameter name. 👀

Copy link
Owner

@takahirom takahirom left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks.

@yschimke yschimke changed the title Apply suppressions to AccessibilityViewCheckResult Apply suppressions to AccessibilityViewCheckResult instead of filtering Nov 23, 2024
@takahirom takahirom merged commit a26abf4 into takahirom:main Nov 23, 2024
7 checks passed
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.

Log Accessibility checks suppressions
2 participants