magento / magento-semver

Magento Semantic Versioning Checker. Join #svc in our Community Slack: https://opensource.magento.com/slack. Static tests that identify required module version changes based on code diff, and look for backward incompatible changes.
Other
32 stars 25 forks source link

Add guard clause in Less Analyzer for Less imports of external files #74

Closed furan917 closed 11 months ago

furan917 commented 1 year ago

Related to https://github.com/magento/magento-semver/issues/73 - option 1, if you wish to see a more indepth writeup

The Less Analyzer class cannot handle Less files that import css via @import url() as the object they convert into mean the $node->path->value is a Link_Tree_Quoted object and not a string castable value, so we ignore them as outside content is may not be relevant to the semver check.