UNPKG

@sun-asterisk/sunlint

Version:

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

33 lines (27 loc) 628 B
/** * C008 Dart Analyzer - Variable Declaration Locality * * Delegated to DartAnalyzer binary. */ class DartC008Analyzer { constructor() { this.ruleId = 'C008'; this.language = 'dart'; } getMetadata() { return { ruleId: 'C008', name: 'Variable Declaration Locality', language: 'dart', delegateTo: 'dart_analyzer', description: 'Variables should be declared close to where they are first used' }; } async analyze(files, language, options) { return []; } supportsLanguage(language) { return language === 'dart'; } } module.exports = DartC008Analyzer;