소스 검색

Meta: Update check-style.sh to ignore CVS $id$ tags

Userlands/Libraries/LibC/sys/exec_elf.h has an $id$ tag
which fails this lint check.
Gunnar Beutner 4 년 전
부모
커밋
aa254ffd66
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Meta/check-style.sh

+ 1 - 1
Meta/check-style.sh

@@ -6,7 +6,7 @@ cd "$script_path/.." || exit 1
 # We simply check if the file starts with:
 # /*
 #  * Copyright
-LICENSE_HEADER_PATTERN=$'^/\*\n \* Copyright'
+LICENSE_HEADER_PATTERN=$'^([^\n]*\n)?/\*\n \* Copyright'
 MISSING_LICENSE_HEADER_ERRORS=()
 
 # We check that "#pragma once" is present