Class HeaderVerification

  • All Implemented Interfaces:
    AddsToRuleKey

    public abstract class HeaderVerification
    extends Object
    implements AddsToRuleKey
    Defines how to handle headers that get included during the build but aren't explicitly tracked in any build files.
    • Constructor Detail

      • HeaderVerification

        public HeaderVerification()
    • Method Detail

      • getWhitelist

        @NaturalOrder
        public abstract com.google.common.collect.ImmutableSortedSet<String> getWhitelist()
        Returns:
        a list of regexes which match headers which should be exempt from verification.
      • getPlatformWhitelist

        @NaturalOrder
        public abstract com.google.common.collect.ImmutableSortedSet<String> getPlatformWhitelist()
        Returns:
        a list of regexes which match headers from the platform SDK. The path for the platforms might depend on the disk layout. Therefore, we don't want that one to be included in the rule keys.
      • getWhitelistPatterns

        @Derived
        protected com.google.common.collect.ImmutableList<FasterPattern> getWhitelistPatterns()
      • isWhitelisted

        public boolean isWhitelisted​(String header)
        Returns:
        whether the given header has been whitelisted.