UNPKG

@sun-asterisk/sunlint

Version:

☀️ SunLint - Multi-language static analysis tool for code quality and security | Sun* Engineering Standards

41 lines (34 loc) 841 B
/** * C023 Dart Analyzer - No Duplicate Variable * * This is a JS wrapper that delegates to DartAnalyzer binary. * Actual implementation: dart_analyzer/lib/rules/C023_no_duplicate_variable.dart */ class DartC023Analyzer { constructor() { this.ruleId = 'C023'; this.language = 'dart'; } getMetadata() { return { ruleId: 'C023', name: 'No Duplicate Variable', language: 'dart', delegateTo: 'dart_analyzer', description: 'Avoid declaring duplicate variables in the same scope' }; } getConfig() { return { severity: 'warning' }; } async analyze(files, language, options) { // Delegated to DartAnalyzer binary via heuristic-engine.js return []; } supportsLanguage(language) { return language === 'dart'; } } module.exports = DartC023Analyzer;