Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwiftLint only modified lines #574

Open
rarias84 opened this issue Feb 17, 2023 · 2 comments
Open

SwiftLint only modified lines #574

rarias84 opened this issue Feb 17, 2023 · 2 comments

Comments

@rarias84
Copy link

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.

@orta
Copy link
Member

orta commented Feb 17, 2023

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)

@rarias84
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants