mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:57:45 +00:00
Meta: Check that copyright headers are followed by a blank line
This commit is contained in:
parent
d8a3609aa9
commit
9459f3728c
1 changed files with 2 additions and 2 deletions
|
@ -3,14 +3,14 @@
|
||||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||||
cd "$script_path/.." || exit 1
|
cd "$script_path/.." || exit 1
|
||||||
|
|
||||||
# Ensure copyright headers match this format:
|
# Ensure copyright headers match this format and are followed by a blank line:
|
||||||
# /*
|
# /*
|
||||||
# * Copyright (c) YYYY(-YYYY), Whatever
|
# * Copyright (c) YYYY(-YYYY), Whatever
|
||||||
# * ... more of these ...
|
# * ... more of these ...
|
||||||
# *
|
# *
|
||||||
# * SPDX-License-Identifier: BSD-2-Clause
|
# * SPDX-License-Identifier: BSD-2-Clause
|
||||||
# */
|
# */
|
||||||
GOOD_LICENSE_HEADER_PATTERN=$'^/\*\n( \* Copyright \(c\) [0-9]{4}(-[0-9]{4})?, .*\n)+ \*\n \* SPDX-License-Identifier: BSD-2-Clause\n \*/\n'
|
GOOD_LICENSE_HEADER_PATTERN=$'^/\*\n( \* Copyright \(c\) [0-9]{4}(-[0-9]{4})?, .*\n)+ \*\n \* SPDX-License-Identifier: BSD-2-Clause\n \*/\n\n'
|
||||||
BAD_LICENSE_HEADER_ERRORS=()
|
BAD_LICENSE_HEADER_ERRORS=()
|
||||||
LICENSE_HEADER_CHECK_EXCUDES=(AK/Checked.h AK/Function.h Userland/Libraries/LibC/elf.h)
|
LICENSE_HEADER_CHECK_EXCUDES=(AK/Checked.h AK/Function.h Userland/Libraries/LibC/elf.h)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue