From ee3b7502dc821f57d45fd5c0674d59edd6b6ba06 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 21 May 2022 20:30:00 +1000 Subject: [PATCH] Skip some files --- find_dart_files.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/find_dart_files.py b/find_dart_files.py index ca20e011..c7397c6b 100644 --- a/find_dart_files.py +++ b/find_dart_files.py @@ -18,8 +18,18 @@ if __name__ == '__main__': f.write("// ignore_for_file: unused_import\n\n") + skips = [ + 'generated', + 'l10n', + 'dummy_dsn.dart', + ] + for path in dart_files: path = str(path) + + if any([s in path for s in skips]): + continue + # Remove leading 'lib\' text path = path[4:] path = path.replace('\\', '/')