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

Feature request: lint files in parallel #412

Open
michaeleiselsc opened this issue Mar 13, 2017 · 4 comments
Open

Feature request: lint files in parallel #412

michaeleiselsc opened this issue Mar 13, 2017 · 4 comments

Comments

@michaeleiselsc
Copy link

michaeleiselsc commented Mar 13, 2017

Issue Summary

Linting seems ripe for parallelization, but unfortunately I haven't seem a good solution yet. I've tried running this script, https://gist.github.com/tommeier/ff660205271f82a47041, but as you can see with the timings I posted in there, it doesn't parallelize very well. My other solution is to put subsets of the overall compile_commands.json into individual temp directories (while needing to keep the whole in the base dir of the project) and then starting a thread running oclint-json-compilation-database from each directory. With the latter method, I get good parallelization with about 4x speedup

@ryuichi-assistant
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment.

@AbigailBuccaneer
Copy link

run-clang-tidy.py provides a good model for how to do this.

@ryuichis
Copy link
Contributor

Looks nice. @AbigailBuccaneer could you help incorporate something similar to oclint-json-compilation-database?

@vaibhav-shah
Copy link

+1; this would be great to have. However, how would the issue of multiple reports be tackled?

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

No branches or pull requests

5 participants