def _rule_include_limited_text_files(): return file_util.include( "*", type="text", size_lt=MAX_DEFAULT_SOURCECODE_FILE_SIZE + 1, max_matches=MAX_DEFAULT_SOURCECODE_COUNT, )
def _rule_for_select_spec(spec): if spec.type == "include": return file_util.include(spec.patterns, type=spec.patterns_type) elif spec.type == "exclude": return file_util.exclude(spec.patterns, type=spec.patterns_type) else: assert False, spec.type