Skip to content

Commit 026e812

Browse files
yaoyaodingCopilot
andcommitted
Update scripts/lint/check-copyright-header.py
Co-authored-by: Copilot <[email protected]> Signed-off-by: Yaoyao Ding <[email protected]>
1 parent a5c1a59 commit 026e812

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/lint/check-copyright-header.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ def process_directory(target_dirs, use_short_header=False, check_only=False):
141141
if file.endswith(".py") or file.endswith(".sh"):
142142
filepath = os.path.join(root, file)
143143

144+
total_files += 1
145+
144146
# Skip files not tracked by git
145147
if not is_git_tracked(filepath, tracked_files):
146148
continue
147-
148-
total_files += 1
149149
with open(filepath, "r", encoding="utf-8") as f:
150150
lines = f.readlines()
151151

0 commit comments

Comments
 (0)