Fix copyright holder detection so that copyright_header.py report creates a clean and accurate report:
- Fix list of copyright holders in the code
- Also detect copyrights which have a comma after the date
- Exclude directories which are git subtrees
Fix copyright holder detection so that copyright_header.py report creates a clean and accurate report:
utACK 89104ef98f882c24695043b74feec2b9d0d8496f
very nice change, the EXCLUDE_DIRS one.
The failing test doesn't seem to be related to the code changes. It also does work locally.
utACK 89104ef98f882c24695043b74feec2b9d0d8496f
utACK 89104ef
utACK 89104ef
50 | + 51 | INCLUDE = ['*.h', '*.cpp', '*.cc', '*.c', '*.py'] 52 | INCLUDE_COMPILED = re.compile('|'.join([fnmatch.translate(m) for m in INCLUDE])) 53 | 54 | def applies_to_file(filename): 55 | + for dir in EXCLUDE_DIRS:
Use another variable name to avoid redefining the built-in function dir :-)
Good point. Fixing it. Thanks.
utACK, but yes makes sense to address @practicalswift 's comment wrt overwriting internal functions.
utACK da9c379c4fafd5e39566a2014777513e87f5fb39
utACK after squashing commits
* There is a copyright notice in `src/crypto/sha256_sse4.cpp` in the
middle of the file which contains a comma before the copyright
holder name. Correctly detect this so it's added to the report.
* Add missing copyright holders so that `copyright_header.py report`
doesn't show any unexpected copyright holder names anymore.
* Exclude files from git subtrees because they are maintained at the
original source.
Squashed commits
Someone could probably bump the headers at this time of the year...