Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
aa254ffd66
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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:
 # We simply check if the file starts with:
 # /*
 # /*
 #  * Copyright
 #  * Copyright
-LICENSE_HEADER_PATTERN=$'^/\*\n \* Copyright'
+LICENSE_HEADER_PATTERN=$'^([^\n]*\n)?/\*\n \* Copyright'
 MISSING_LICENSE_HEADER_ERRORS=()
 MISSING_LICENSE_HEADER_ERRORS=()
 
 
 # We check that "#pragma once" is present
 # We check that "#pragma once" is present