mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
Everywhere: Move the Ladybird folder to UI
This commit is contained in:
parent
93712b24bf
commit
db47cc41f8
Notes:
github-actions[bot]
2024-11-10 11:51:45 +00:00
Author: https://github.com/trflynn89
Commit: db47cc41f8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
203 changed files with 266 additions and 244 deletions
|
@ -27,10 +27,6 @@ LICENSE_HEADER_CHECK_EXCLUDES = {
|
|||
|
||||
# We check that "#pragma once" is present
|
||||
PRAGMA_ONCE_STRING = '#pragma once'
|
||||
PRAGMA_ONCE_CHECK_EXCLUDES = {
|
||||
'Ladybird/AppKit/System/Detail/Header.h',
|
||||
'Ladybird/AppKit/System/Detail/Footer.h',
|
||||
}
|
||||
|
||||
# We make sure that there's a blank line before and after pragma once
|
||||
GOOD_PRAGMA_ONCE_PATTERN = re.compile('(^|\\S\n\n)#pragma once(\n\n\\S.|$)')
|
||||
|
@ -105,10 +101,7 @@ def run():
|
|||
if not GOOD_LICENSE_HEADER_PATTERN.search(file_content):
|
||||
errors_license.append(filename)
|
||||
if filename.endswith('.h'):
|
||||
if is_in_prefix_list(filename, PRAGMA_ONCE_CHECK_EXCLUDES):
|
||||
# File was excluded
|
||||
pass
|
||||
elif GOOD_PRAGMA_ONCE_PATTERN.search(file_content):
|
||||
if GOOD_PRAGMA_ONCE_PATTERN.search(file_content):
|
||||
# Excellent, the formatting is correct.
|
||||
pass
|
||||
elif PRAGMA_ONCE_STRING in file_content:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue