Disabling Analyzer
Closed this issue · 2 comments
albe-jj commented
I could not find a way to disable the code Analyzer. Is it possible? Otherwise it would be nice if the default analyzer
for CodeController
is no analyzer.
jabguru commented
@albe-jj you can do that simply by using the code snippet below
class NoAnalysis extends AbstractAnalyzer {
const NoAnalysis();
@override
Future<AnalysisResult> analyze(Code code) async {
return const AnalysisResult(issues: []);
}
}
And then use it as the analyzer in your controller
final controller = CodeController(
language: python,
params: const EditorParams(tabSpaces: 4),
analyzer: const NoAnalysis(),
);
albe-jj commented
it works, thanks!