diff options
author | Jeff Donahue <jeff.donahue@gmail.com> | 2014-03-28 22:03:13 -0700 |
---|---|---|
committer | Jeff Donahue <jeff.donahue@gmail.com> | 2014-03-28 23:10:01 -0700 |
commit | 2f2f9c7cf4b06bc4703862f8c6e25d486f98602c (patch) | |
tree | 3e46197a2bca9127f14a99a4c77923de2d7034ce /scripts | |
parent | 06f7d460f4685123b85287d9b6b6041962c1bd67 (diff) | |
download | caffeonacl-2f2f9c7cf4b06bc4703862f8c6e25d486f98602c.tar.gz caffeonacl-2f2f9c7cf4b06bc4703862f8c6e25d486f98602c.tar.bz2 caffeonacl-2f2f9c7cf4b06bc4703862f8c6e25d486f98602c.zip |
make lint check for 'Copyright [year] BVLC and contributors.'
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/cpp_lint.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cpp_lint.py b/scripts/cpp_lint.py index e08fa4c3..6aa15447 100755 --- a/scripts/cpp_lint.py +++ b/scripts/cpp_lint.py @@ -445,7 +445,7 @@ _RE_SUPPRESSION = re.compile(r'\bNOLINT(_NEXT_LINE)?\b(\([^)]*\))?') _error_suppressions = {} # Finds Copyright. -_RE_COPYRIGHT = re.compile(r'Copyright') +_RE_COPYRIGHT = re.compile(r'Copyright \d\d\d\d BVLC and contributors.') # The root directory used for deriving header guard CPP variable. # This is set by --root flag. @@ -1376,8 +1376,8 @@ def CheckForCopyright(filename, lines, error): if _RE_COPYRIGHT.search(lines[line], re.I): break else: # means no copyright line was found error(filename, 0, 'legal/copyright', 5, - 'No copyright message found. ' - 'You should have a line: "Copyright [year] <Copyright Owner>"') + 'BVLC copyright message not found. ' + 'You should have a line: "Copyright [year] BVLC and contributors."') def GetHeaderGuardCPPVariable(filename): |