示例#1
0
    def __init__(
        self,
        base_directory,
        verbose,
        being_tested,
        ignore_temp_rules,
        ignore_specific_rules,
        hide_disallowed_deps,
        out_file,
        out_format,
        layout_engine,
        unflatten_graph,
        incl,
        excl,
        hilite_fanins,
        hilite_fanouts,
    ):
        """Creates a new DepsGrapher.

    Args:
      base_directory: OS-compatible path to root of checkout, e.g. C:\chr\src.
      verbose: Set to true for debug output.
      being_tested: Set to true to ignore the DEPS file at tools/graphdeps/DEPS.
      ignore_temp_rules: Ignore rules that start with Rule.TEMP_ALLOW ("!").
      ignore_specific_rules: Ignore rules from specific_include_rules sections.
      hide_disallowed_deps: Hide disallowed dependencies from the output graph.
      out_file: Output file name.
      out_format: Output format (anything GraphViz dot's -T option supports).
      layout_engine: Layout engine for formats other than 'dot'
                     (anything that GraphViz dot's -K option supports).
      unflatten_graph: Try to reformat the output graph so it is narrower and
                       taller. Helps fight overly flat and wide graphs, but
                       sometimes produces a worse result.
      incl: Include only nodes matching this regexp; such nodes' fanin/fanout
            is also included.
      excl: Exclude nodes matching this regexp; such nodes' fanin/fanout is
            processed independently.
      hilite_fanins: Highlight fanins of nodes matching this regexp with a
                     different edge and node color.
      hilite_fanouts: Highlight fanouts of nodes matching this regexp with a
                      different edge and node color.
    """
        DepsBuilder.__init__(self, base_directory, verbose, being_tested, ignore_temp_rules, ignore_specific_rules)

        self.ignore_temp_rules = ignore_temp_rules
        self.ignore_specific_rules = ignore_specific_rules
        self.hide_disallowed_deps = hide_disallowed_deps
        self.out_file = out_file
        self.out_format = out_format
        self.layout_engine = layout_engine
        self.unflatten_graph = unflatten_graph
        self.incl = incl
        self.excl = excl
        self.hilite_fanins = hilite_fanins
        self.hilite_fanouts = hilite_fanouts

        self.deps = set()
示例#2
0
    def __init__(self, base_directory, extra_repos, verbose, being_tested,
                 ignore_temp_rules, ignore_specific_rules,
                 hide_disallowed_deps, out_file, out_format, layout_engine,
                 unflatten_graph, incl, excl, hilite_fanins, hilite_fanouts):
        """Creates a new DepsGrapher.

    Args:
      base_directory: OS-compatible path to root of checkout, e.g. C:\chr\src.
      verbose: Set to true for debug output.
      being_tested: Set to true to ignore the DEPS file at tools/graphdeps/DEPS.
      ignore_temp_rules: Ignore rules that start with Rule.TEMP_ALLOW ("!").
      ignore_specific_rules: Ignore rules from specific_include_rules sections.
      hide_disallowed_deps: Hide disallowed dependencies from the output graph.
      out_file: Output file name.
      out_format: Output format (anything GraphViz dot's -T option supports).
      layout_engine: Layout engine for formats other than 'dot'
                     (anything that GraphViz dot's -K option supports).
      unflatten_graph: Try to reformat the output graph so it is narrower and
                       taller. Helps fight overly flat and wide graphs, but
                       sometimes produces a worse result.
      incl: Include only nodes matching this regexp; such nodes' fanin/fanout
            is also included.
      excl: Exclude nodes matching this regexp; such nodes' fanin/fanout is
            processed independently.
      hilite_fanins: Highlight fanins of nodes matching this regexp with a
                     different edge and node color.
      hilite_fanouts: Highlight fanouts of nodes matching this regexp with a
                      different edge and node color.
    """
        DepsBuilder.__init__(self, base_directory, extra_repos, verbose,
                             being_tested, ignore_temp_rules,
                             ignore_specific_rules)

        self.ignore_temp_rules = ignore_temp_rules
        self.ignore_specific_rules = ignore_specific_rules
        self.hide_disallowed_deps = hide_disallowed_deps
        self.out_file = out_file
        self.out_format = out_format
        self.layout_engine = layout_engine
        self.unflatten_graph = unflatten_graph
        self.incl = incl
        self.excl = excl
        self.hilite_fanins = hilite_fanins
        self.hilite_fanouts = hilite_fanouts

        self.deps = set()
示例#3
0
  def __init__(self,
               base_directory=None,
               verbose=False,
               being_tested=False,
               ignore_temp_rules=False,
               skip_tests=False):
    """Creates a new DepsChecker.

    Args:
      base_directory: OS-compatible path to root of checkout, e.g. C:\chr\src.
      verbose: Set to true for debug output.
      being_tested: Set to true to ignore the DEPS file at tools/checkdeps/DEPS.
      ignore_temp_rules: Ignore rules that start with Rule.TEMP_ALLOW ("!").
    """
    DepsBuilder.__init__(
        self, base_directory, verbose, being_tested, ignore_temp_rules)

    self._skip_tests = skip_tests
    self.results_formatter = results.NormalResultsFormatter(verbose)
示例#4
0
    def __init__(self,
                 base_directory=None,
                 verbose=False,
                 being_tested=False,
                 ignore_temp_rules=False,
                 skip_tests=False):
        """Creates a new DepsChecker.

    Args:
      base_directory: OS-compatible path to root of checkout, e.g. C:\chr\src.
      verbose: Set to true for debug output.
      being_tested: Set to true to ignore the DEPS file at tools/checkdeps/DEPS.
      ignore_temp_rules: Ignore rules that start with Rule.TEMP_ALLOW ("!").
    """
        DepsBuilder.__init__(self, base_directory, verbose, being_tested,
                             ignore_temp_rules)

        self._skip_tests = skip_tests
        self.results_formatter = results.NormalResultsFormatter(verbose)