third_party/blink/tools/blinkpy/style/filter.py
def should_check(self, category):
        """Return whether the category should be checked.

        The rules for determining whether a category should be checked
        are as follows.  By default all categories should be checked.
        Then apply the filter rules in order from first to last, with
        later flags taking precedence.

        A filter rule applies to a category if the string after the
        leading plus/minus (+/-) matches the beginning of the category
        name.  A plus (+) means the category should be checked, while a
        minus (-) means the category should not be checked.
        """
        if category in self._should_check_category:
            return self._should_check_category[category]

        should_check = True  # All categories checked by default.
        for rule in self._filter_rules:
            if not category.startswith(rule[1:]):
                continue
            should_check = rule.startswith('+')
        self._should_check_category[category] = should_check  # Update cache.
        return should_check
Return whether the category should be checked.

        The rules for determining whether a category should be checked
        are as follows.  By default all categories should be checked.
        Then apply the filter rules in order from first to last, with
        later flags taking precedence.

        A filter rule applies to a category if the string after the
        leading plus/minus (+/-) matches the beginning of the category
        name.  A plus (+) means the category should be checked, while a
        minus (-) means the category should not be checked.
        
Return whether the category should be checked.
The rules for determining whether a category should be checked
are as follows.  By default all categories should be checked.
Then apply the filter rules in order from first to last, with
later flags taking precedence.

A filter rule applies to a category if the string after the
leading plus/minus (+/-) matches the beginning of the category
name.  A plus (+) means the category should be checked, while a
minus (-) means the category should not be checked.
Return whether the category should be checked . The rules for determining whether a category should be checked are as follows . By default all categories should be checked . Then apply the filter rules in order from first to last with later flags taking precedence . A filter rule applies to a category if the string after the leading plus / minus ( + / - ) matches the beginning of the category name . A plus ( + ) means the category should be checked while a minus ( - ) means the category should not be checked .
def should_check(self, category):
        if category in self._should_check_category:
            return self._should_check_category[category]
        should_check = True  
        for rule in self._filter_rules:
            if not category.startswith(rule[1:]):
                continue
            should_check = rule.startswith('+')
        self._should_check_category[category] = should_check  
        return should_check
def should_check ( self , category ) : if category in self . _should_check_category : return self . _should_check_category [ category ] should_check = True for rule in self . _filter_rules : if not category . startswith ( rule [ 1 : ] ) : continue should_check = rule . startswith ( '+' ) self . _should_check_category [ category ] = should_check return should_check
Return whether the category should be checked.
Return whether the category should be checked .
"""Return whether the category should be checked.

        The rules for determining whether a category should be checked
        are as follows.  By default all categories should be checked.
        Then apply the filter rules in order from first to last, with
        later flags taking precedence.

        A filter rule applies to a category if the string after the
        leading plus/minus (+/-) matches the beginning of the category
        name.  A plus (+) means the category should be checked, while a
        minus (-) means the category should not be checked.
        """ # All categories checked by default. # Update cache.
self
category