isScanIntegrationDisabled function
True when the project's analysis_options.yaml carries the marker the
VS Code extension writes when "Lint integration" is turned off (the
plugins: block is commented out). The scan CLI then reports "disabled"
and exits 0 instead of failing with "no configuration found".
Implementation
bool isScanIntegrationDisabled(String projectRoot) {
final content = _readFile(projectRoot, 'analysis_options.yaml');
return content != null && content.contains(kIntegrationOffSentinel);
}