1nogo analyzers with dependencies 2============================= 3 4.. _nogo: /go/nogo.rst 5.. _go_library: /docs/go/core/rules.md#_go_library 6 7Tests to ensure that custom `nogo`_ analyzers that depend on each other are 8run in the correct order. 9 10.. contents:: 11 12deps_test 13--------- 14Given the following dependency graph of analyzers: 15 16 a ----+ 17 | 18 v 19 b --> c --> d 20 21Where analyzers a, b, c are explicitly depended on by the `nogo`_ rule and d 22isn't, verifies that a `go_library`_ build causes both paths in the graph 23(a->c->d and b->c->d) to be executed, and that each analyzer runs exactly once. 24 25Also verify that the diagnostics reported by d are not printed to the build log 26since d was not explicitly depended on by the declared `nogo`_ rule. 27