Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cr_checker/tool/cr_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,10 @@ def process_files(
)
continue

if os.path.getsize(item) == 0:
# No need to add copyright headers to empty files
continue

# Automatically detect shebang and use its offset if no manual offset provided
shebang_offset = detect_shebang_offset(item, encoding)
effective_offset = offset + shebang_offset if offset == 0 else offset
Expand Down