mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-04-28 12:47:57 +03:00
license-header.rb: Don't read UTF-8 BOM as text when checking headers
Some checks are pending
citra-build / source (push) Waiting to run
citra-build / macos (arm64) (push) Waiting to run
citra-build / macos (x86_64) (push) Waiting to run
citra-build / macos-universal (push) Blocked by required conditions
citra-build / windows (msvc) (push) Waiting to run
citra-build / windows (msys2) (push) Waiting to run
citra-format / clang-format (push) Waiting to run
citra-transifex / transifex (push) Waiting to run
citra-build / linux (appimage) (push) Waiting to run
citra-build / linux (fresh) (push) Waiting to run
citra-build / android (push) Waiting to run
citra-build / ios (push) Waiting to run
Some checks are pending
citra-build / source (push) Waiting to run
citra-build / macos (arm64) (push) Waiting to run
citra-build / macos (x86_64) (push) Waiting to run
citra-build / macos-universal (push) Blocked by required conditions
citra-build / windows (msvc) (push) Waiting to run
citra-build / windows (msys2) (push) Waiting to run
citra-format / clang-format (push) Waiting to run
citra-transifex / transifex (push) Waiting to run
citra-build / linux (appimage) (push) Waiting to run
citra-build / linux (fresh) (push) Waiting to run
citra-build / android (push) Waiting to run
citra-build / ios (push) Waiting to run
This commit is contained in:
parent
cb9406f6a3
commit
26ce7e4f28
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ print 'Checking files...'
|
||||||
issue_files = []
|
issue_files = []
|
||||||
branch_changed_files.each do |file_name|
|
branch_changed_files.each do |file_name|
|
||||||
if file_name.end_with?('.cpp', '.h', '.kt', '.kts') and File.file?(file_name)
|
if file_name.end_with?('.cpp', '.h', '.kt', '.kts') and File.file?(file_name)
|
||||||
file_content = File.read(file_name)
|
file_content = File.read(file_name, mode: 'r:bom|utf-8')
|
||||||
if not file_content.start_with?(license_header)
|
if not file_content.start_with?(license_header)
|
||||||
issue_files.push(file_name)
|
issue_files.push(file_name)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue