Yoast / yoastcs

Yoast coding standards
MIT License
21 stars 3 forks source link

:sparkles: New `PathValidationHelper` class #341

Closed jrfnl closed 10 months ago

jrfnl commented 10 months ago

... to help validate paths provided via a ruleset property before using them in sniffs.

The utility method in this class will also convert the paths from relative paths to absolute paths. The resulting array will have the original relative path as the key and the final absolute path as the value to allow for lookups.

Includes dedicated unit tests.

coveralls commented 10 months ago

Coverage Status

coverage: 98.58% (+0.03%) from 98.554% when pulling f02f1603b38167bf7c786f136d69efbcb7ac1dcd on JRF/yoastcs-new-path-validation-helper into bfb05c37c2543ab9c76d35a22b4535bd7c3006dd on develop.