Analyzer::Javascript::Adonisjs
Inherits Analyzer < FileHelper < Reference < Object
Constants
ADONIS_MARKERS_RE = Regex.union("@adonisjs/core", "@ioc:Adonis")
Precompiled once — a single PCRE2-JIT scan replaces two naive String#includes? substring scans over the whole file content. Regex.union auto-escapes each literal, so it is provably equivalent to the OR-of-includes? it replaces.
JS_EXTENSIONS = [".js", ".mjs", ".cjs", ".ts"]
Class methods
tech_name
SourceInstance methods
analyze
Sourcetech
Instance-side view of the same declaration. The per-file rescues live on
this base class, which has no way to name the analyzer that is running
inside them, so a skipped file could not be attributed to a tech.
Deriving it from analyzer_for keeps the name written exactly once.