mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 01:39:47 -05:00
Add check for correct indenting of copyright header
This commit is contained in:
@@ -166,8 +166,11 @@ def check_copyright(lines):
|
||||
|
||||
if year != current_year:
|
||||
return 'Out of date copyright notice ' + year + ' || ' + current_year
|
||||
else:
|
||||
return ''
|
||||
|
||||
if lines[index[0] + 1][0] != ' ':
|
||||
return 'Copyright header is not correctly indented'
|
||||
|
||||
return ''
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user