aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint/checkIncludes.py
AgeCommit message (Collapse)Author
2020-02-16Stop assuming that /usr/bin/python existsPanagiotis Vasilopoulos
Fixes 33192
2019-12-12python: Add __future__ imports for python 3 compatibilityteor
Except for src/ext, which we may not want to modify. Closes ticket 32732.
2019-08-05Update pre-commit hook to find checkIncludes in its new locationNick Mathewson
Also add a temporary script to redirect the hook, if people don't upgrade for a bit.
2019-08-05Move checkIncludes inside practrackerNick Mathewson
Update the makefile accordingly.
2019-08-05checkIncludes: add a real main function and CLINick Mathewson
2019-08-05checkIncludes: refactor to use error-iteration styleNick Mathewson
This makes checkIncludes match practracker more closely, and lets us eliminate a global.
2019-08-05checkIncludes: Separate file-handling from rule-handlingNick Mathewson
This is our shift from directory-at-a-time processing to file-at-a-time processing.
2019-08-05checkIncludes.py: extract topological sort codeNick Mathewson
Our topological sort code really deserves a function of its own. Additionally, don't print from inside the topological sort code: instead, return a result, and let the caller print it.
2019-08-05checkIncludes: introduce rules-file caching.Nick Mathewson
We'll want this so that we can have each file evaluated independently, rather than a directory at a time.
2019-08-05Move the executable part of checkIncludes.py inside an if block.Nick Mathewson
I'll want to make this block into a series of functions in a subsequent commit, but I'm doing this separately to get the indentation change out of the way. This branch will end up with making checkIncludes.py an integrated part of practracker, for ticket 31176.
2019-03-27Stop assuming that /usr/bin/python3 existsteor
For scripts that work with python2, use /usr/bin/python. Otherwise, use /usr/bin/env python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha.
2018-11-14Make the topological-sort output off by defaultNick Mathewson
2018-11-14Update the check-includes script to enforce some naming and no-circularity rulesNick Mathewson
2018-08-28Set the file encoding in checkIncludes.py with Python3Nick Mathewson
2018-07-09Add a little documentation to checkIncludes.py.Nick Mathewson
Someday people might be glad I did.
2018-07-09Re-wrap the error message emitted by checkIncludes.pyNick Mathewson
2018-07-09Make checkIncludes work on python 2.7Nick Mathewson
2018-07-01Prune the .may_include files a bit; detect unused lines in themNick Mathewson
2018-06-26Remove some accidentally committed code in checkIncludes.pyNick Mathewson
2018-06-22Another windows includeNick Mathewson
2018-06-21add license statement to checkincludes, and have it return an error codeNick Mathewson
2018-06-21New script to check includes for modularity violationsNick Mathewson
Includes configuration files to enforce these rules on lib and common. Of course, "common" *is* a modularity violation right now, so these rules aren't as strict as I would like them to be.