Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Config files #281
Thank you @thejk for raising the issue of config files and help discover the complexity of this task by writing a few prototypes.
There are still a lot ideas that have not been addressed, but I hope this PR implements most use cases.
Syntax and design decisions.
Please review this PR, especially the proposed config system
Why not an existing parser?
Gcovr might be used with untrusted projects, and will now implicitly load configuration from such projects. Is this safe? The impact of loading a config file is comparable to a Makefile. E.g. the
@@ Coverage Diff @@ ## master #281 +/- ## ========================================= + Coverage 94.22% 94.8% +0.57% ========================================= Files 14 15 +1 Lines 1507 1751 +244 Branches 260 309 +49 ========================================= + Hits 1420 1660 +240 - Misses 43 44 +1 - Partials 44 47 +3