isAnalysisServer property

bool isAnalysisServer
getter/setter pair

True only inside the interactive analysis-server process. Armed once by SaropaLintsPlugin.start (lib/main.dart), which no bin/ CLI runs.

Gates the rapid-edit relief below: batch runners (scan / baseline / health CLIs and dart analyze) route through the SAME per-node hot path (SaropaContext._wrapCallback, via scan_runner), and they walk each file once and MUST report every rule at full fidelity. Leaving this false outside the server keeps the gate inert there, so it can never drop a non-essential diagnostic from a batch run. (The 3-analyses-in-2s threshold is a second, independent safeguard — a one-shot walk never meets it.)

Implementation

static bool isAnalysisServer = false;