loadNativePluginConfig function
Loads all plugin configuration from yaml and environment variables. Order matters: severity overrides first, then diagnostics (enable/disable), then rule packs (adds enabled rule codes; skips SaropaLintRule.disabledRules), then baseline, banned usage, and output (max_issues, file-only). Safe to call multiple times — static fields are simply overwritten. Never throws; failures in any step are caught and the rest still run.
Uses Directory.current to locate config files. This works for CLI
invocations where cwd == project root, but fails silently for the
analyzer-launched plugin where cwd is the analysis-server process's
working directory (often the user's home or wherever the IDE was
launched from). For that path, see loadNativePluginConfigFromProjectRoot,
triggered lazily from SaropaContext once the real project root can be
derived from an analyzed file path.
Implementation
void loadNativePluginConfig() {
_loadFromRoot(null);
}