Add a license header scanner 00/5600/6
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 19 Jul 2017 22:50:24 +0000 (18:50 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 28 Jul 2017 02:15:27 +0000 (22:15 -0400)
commit8f0d84c9fe4c268cf54e941346a5982a3bec80d5
tree5ef99c3f2ececa9e869a788a0b0b24ad9fc08253
parent61094926902a4805a382d0ad2a680d277e05952f
Add a license header scanner

Simple scanner to check code files for a license header. Does not care
about the exact formatting of the license header as long as all the text
exists in the correct order.

This version only supports headers using '#' as the comment string.

Issue: RELENG-279
Change-Id: Id4030f040c3de4350c59776ed21eed497e5d6f8d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
docs/commands/index.rst
docs/commands/license.rst [new file with mode: 0644]
lftools/cli/__init__.py
lftools/cli/license.py [new file with mode: 0644]
lftools/license.py [new file with mode: 0644]
license-header.txt [new file with mode: 0644]
tests/fixtures/license/license-header.txt [new file with mode: 0644]
tests/fixtures/license/license.py [new file with mode: 0644]
tests/fixtures/license/no_license1.py [new file with mode: 0644]
tests/fixtures/license/no_license2.py [new file with mode: 0644]
tests/test_license.py [new file with mode: 0644]