158158 'libtomcrypt' : 'crypt' ,
159159}
160160FORMAT_CHECK_FILES = {'meson.build' , 'meson_options.txt' , 'meson.options' }
161- NO_TABS_FILES = {'meson.build' , 'meson_options.txt' , 'meson.options' }
162161SUBPROJECTS_METADATA_FILES = {'subprojects/.gitignore' }
163162PERMITTED_KEYS = {'versions' , 'dependency_names' , 'program_names' }
164163IGNORE_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