module

NoirTaggers

Constants

AUTH_ENTRIES = FRAMEWORK_ENTRIES.select() do |__arg3| __arg3.key.ends_with?("_auth") end

The framework taggers that emit the auth tag. They share one naming convention, {framework}_auth, and a spec pins it.

ENTRIES = begin {% if true %} [ {% for tagger in Tagger.all_subclasses .select(&.annotation(Noir::TaggerFor)) .sort_by do |sub| (sub.annotation(Noir::TaggerFor))[:order] end %} {% ann = tagger.annotation(Noir::TaggerFor) %} Entry.new({{ ann[:key] }}, {{ ann[:name] }}, {{ ann[:desc] }}, {{ tagger.ancestors.includes?(FrameworkTagger) }}), {% end %} ] of Entry {% end %} end

Every annotated tagger, in order. Derived from the classes, so a tagger joins the registry by existing: the two hand-maintained hash literals this replaces were a second place to remember, where forgetting produced no error and no failing spec — just a tagger that never ran.

FRAMEWORK_ENTRIES = ENTRIES.select(&.framework)
PLAIN_ENTRIES = ENTRIES.reject(&.framework)

Class methods

auth_tagging?(use_taggers : String) : Bool

Whether a --use-taggers list runs at least one tagger that can emit the auth tag.

Source
available_tagger_names
Source
build(key : String, options : Hash(String, YAML::Any)) : Tagger | Nil

Instantiates the tagger key names, or nil when nothing claims it.

Source
run_tagger(endpoints : Array(Endpoint), options : Hash(String, YAML::Any), use_taggers : String)
Source
target_techs(key : String) : Array(String)

Techs a framework tagger declares an interest in; empty for plain taggers, which run against every endpoint.

Source
unknown_tagger_names(use_taggers : String) : Array(String)
Source
validate_tagger_names!(use_taggers : String)
Source

Nested types