ComplianceAsCode / content-test-filtering

System for Automatic Filtering of Tests for ComplianceAsCode project
8 stars 6 forks source link

Ignore files that only have whitespace only changes #37

Closed Mab879 closed 1 year ago

Mab879 commented 1 year ago

Add check to see if the diff key is in diff["values_changed"]["root"] . If the file only has whitespace changes, it appears this is not set and causes key errors.

Discovered by ComplianceAsCode/content/pull/9788.

Mab879 commented 1 year ago

The issues from DeepSource don't seem directly related to my changes. Let me know if you see it differently.