Skip to content

Commit 87e363e

Browse files
committed
sanity_checks: drop tabs check
`meson format` should take care of this now.
1 parent b8d3ccc commit 87e363e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

tools/sanity_checks.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@
158158
'libtomcrypt': 'crypt',
159159
}
160160
FORMAT_CHECK_FILES = {'meson.build', 'meson_options.txt', 'meson.options'}
161-
NO_TABS_FILES = {'meson.build', 'meson_options.txt', 'meson.options'}
162161
SUBPROJECTS_METADATA_FILES = {'subprojects/.gitignore'}
163162
PERMITTED_KEYS = {'versions', 'dependency_names', 'program_names'}
164163
IGNORE_SETUP_WARNINGS = None # or re.compile(r'something')
@@ -666,7 +665,6 @@ def get_default_options(self, project: dict[str, T.Any]) -> dict[str, str | None
666665
return dict(opt.split('=', 1) for opt in opts if opt is not None)
667666

668667
def check_files(self, subproject: str, patch_path: Path) -> None:
669-
tabs: list[Path] = []
670668
not_permitted: list[Path] = []
671669
unformatted: list[Path] = []
672670
for f in patch_path.rglob('*'):
@@ -679,11 +677,6 @@ def check_files(self, subproject: str, patch_path: Path) -> None:
679677
unformatted.append(f)
680678
if not self.is_permitted_file(subproject, f.name):
681679
not_permitted.append(f)
682-
elif f.name in NO_TABS_FILES and '\t' in f.read_text(encoding='utf-8'):
683-
tabs.append(f)
684-
if tabs:
685-
tabs_str = ', '.join([str(f) for f in tabs])
686-
self.fail(f'Tabs in meson files are not allowed: {tabs_str}')
687680
if not_permitted:
688681
not_permitted_str = ', '.join([str(f) for f in not_permitted])
689682
self.fail(f'Not permitted files found: {not_permitted_str}')

0 commit comments

Comments
 (0)