sridharbandi / Java-a11y

Accessibility Automated Testing with Java Selenium
https://sridharbandi.github.io/Java-a11y/
MIT License
12 stars 12 forks source link

Ignore certain codes, Violation Counts & Custom Page Naming #17

Closed jhaindev closed 1 year ago

jhaindev commented 2 years ago

The purpose of this PR is to add the following functionality for those using HTML code sniffer:

  1. Provide the ability for users to ignore certain codes.
  2. Provide methods for determining if errors/warnings/notices have occurred on a certain page to assist those using the tool for automated testing.
  3. Provide users with the ability to provide a name for the page they are testing.
jhaindev commented 2 years ago

The issues flagged by Codacy seem trivial and inconsequential. I can remove the semicolon at the end of the switch if desired. The switch has breaks included. There isn't a "break" in the default case, but a break isn't needed for a default case.

After reviewing the method flagged by this you may want me to do some additional refactors anyway. I'll wait to hear back before pushing any changes to my PR.