IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 5a37dd05 authored by ralfulrich's avatar ralfulrich
Browse files

improvements

parent d3c3af73
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,7 @@ def checkNote(filename): ...@@ -31,7 +31,7 @@ def checkNote(filename):
lines.append(line) lines.append(line)
file.close() file.close()
searchStatus = 0 #0:before comment block, #1 in comment block, #2 found copyright searchStatus = 0 # 0:before comment block, #1 in comment block, #2 found copyright
blockStart = 0 blockStart = 0
for iLine in range(len(lines)): for iLine in range(len(lines)):
line = lines[iLine] line = lines[iLine]
...@@ -41,10 +41,10 @@ def checkNote(filename): ...@@ -41,10 +41,10 @@ def checkNote(filename):
if "copyright" in line.lower() and searchStatus>0: if "copyright" in line.lower() and searchStatus>0:
searchStatus = 2 searchStatus = 2
if "*/" in line: if "*/" in line:
searchStatus = 0
if searchStatus>=2: if searchStatus>=2:
startNote.append(blockStart) startNote.append(blockStart)
endNote.append(iLine) endNote.append(iLine)
searchStatus = 0
iLine += 1 iLine += 1
# now check if first copyright notices is already identical... # now check if first copyright notices is already identical...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment