danger / swift

⚠️ Stop saying "you forgot to …" in code review

Home Page:https://danger.systems/swift/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwiftLint only modified lines

rarias84 opened this issue · comments

I can get which line was modified and show it in the PR, but still have the report, what I want is to pass the modified/created files and get only the new warning introduced or prevent to create the report in the PR and I can handle the message.

You probably want to run SwiftLint in-memory on the old version of the app, then run it on the new version of the app - compare the results and remove anything which isn't within the diff

There's enough info in the DSL to do that, you'd just need to look into how to run SwiftLint on the old files (or store the last results somewhere and pick that up)

I want to do it in circleci and its seems that git diff doesn't work properly neither git blame.