def __init__()

in uberpoet/dotreader.py [0:0]


    def __init__(self, modules_filter=None):
        # type: (List[str]) -> None
        """
        Initalizes object.

        :param modules_filter: If a graph edge contains a string inside the list as a substring, it is ignored.
        Keep it empty to not filter out anything.  If not specified, a default list of test names are used.
        """
        if modules_filter is None:
            # Why filter out modules with these names?
            # We are trying to simulate a non-test app build and ignore non-code targets such as asset
            # catalogs and schemes. Each module currently gets a static amount of code created for it,
            # so non-code modules will add code to the total when they shouldn't if we didn't filter them out.
            modules_filter = ['test', 'scheme', 'assetcatalog', 'resources', 'fixture', 'needle']
        self.modules_filter = modules_filter