summaryrefslogtreecommitdiff
path: root/bin/find-headers-to-move-inside-modules.py
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-07-25 18:20:11 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-07-25 19:57:10 +0200
commit9471fce06e996e4433a8000ead704fda91588d1d (patch)
tree907685cf835e446acf04cdd176d940bed39e4a4e /bin/find-headers-to-move-inside-modules.py
parent6f3a37d074440d29048239bc9cc0175d90f51d9f (diff)
bin: fix issues found by Ruff linter
Change-Id: I44e546defb278bb5217ed028dcaebc9fb2d23f0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171020 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'bin/find-headers-to-move-inside-modules.py')
-rwxr-xr-xbin/find-headers-to-move-inside-modules.py27
1 files changed, 18 insertions, 9 deletions
diff --git a/bin/find-headers-to-move-inside-modules.py b/bin/find-headers-to-move-inside-modules.py
index 3ca30544a7c9..10efd4bf12b7 100755
--- a/bin/find-headers-to-move-inside-modules.py
+++ b/bin/find-headers-to-move-inside-modules.py
@@ -10,16 +10,25 @@ a = subprocess.Popen("git ls-files include/", stdout=subprocess.PIPE, shell=True
with a.stdout as txt:
for line in txt:
header = line[8:].strip()
- if b"README" in header: continue
- if header == b"version.hrc": continue
+ if b"README" in header:
+ continue
+ if header == b"version.hrc":
+ continue
# ignore URE headers
- if header.startswith(b"IwyuFilter_include.yaml"): continue
- if header.startswith(b"cppu/"): continue
- if header.startswith(b"cppuhelper/"): continue
- if header.startswith(b"osl/"): continue
- if header.startswith(b"sal/"): continue
- if header.startswith(b"salhelper/"): continue
- if header.startswith(b"uno/"): continue
+ if header.startswith(b"IwyuFilter_include.yaml"):
+ continue
+ if header.startswith(b"cppu/"):
+ continue
+ if header.startswith(b"cppuhelper/"):
+ continue
+ if header.startswith(b"osl/"):
+ continue
+ if header.startswith(b"sal/"):
+ continue
+ if header.startswith(b"salhelper/"):
+ continue
+ if header.startswith(b"uno/"):
+ continue
headerSet.add(header)
headerSetUnused = headerSet.copy()