Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDetect library editing & enable warnings #291
Comments
Completely agree but I'm not sure how we should achieve this; presence of .git folder could be a good candidate but the best would be also tracking if the repo is "dirty". However, in this case the switch wouldn't trigger if you commit before testing |
Perhaps arduino-builder could detect when someone is editing a library's files, rather than just using an installed copy. This might be done by comparing timestamps on library source files to library.properties or other non-source files. Or maybe the presence of a .git folder is enough?
The idea would be to turn on all compiler warnings when building that library. Ordinary users would not be bothered, and library authors would not be bothered by warnings from other libraries, only their's.
Over time, this could lead to a significant improvement in the quality of library code over the entire Arduino ecosystem.
Previously mentioned here.