File tree Expand file tree Collapse file tree
src/lints/avoid_global_state Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import 'package:solid_lints/src/lints/avoid_global_state/avoid_global_state_rule
88/// allowing them to run during static analysis.
99final plugin = SolidLintsPlugin ();
1010
11- /// An analysis server plugin that provides Solid Lints rules.
11+ /// An analysis server plugin that provides Solid lint rules.
1212///
1313/// This plugin registers custom lint rules and enables them to be executed
1414/// by the Dart analyzer during code analysis.
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'package:analyzer/analysis_rule/analysis_rule.dart';
22import 'package:analyzer/analysis_rule/rule_context.dart' ;
33import 'package:analyzer/analysis_rule/rule_visitor_registry.dart' ;
44import 'package:analyzer/error/error.dart' ;
5- import 'package:solid_lints/src/lints/avoid_global_state/visitors/avoid_global_state_rule_visitor .dart' ;
5+ import 'package:solid_lints/src/lints/avoid_global_state/visitors/avoid_global_state_visitor .dart' ;
66
77/// Avoid top-level and static mutable variables.
88///
@@ -61,7 +61,7 @@ class AvoidGlobalStateRule extends AnalysisRule {
6161 RuleVisitorRegistry registry,
6262 RuleContext context,
6363 ) {
64- final visitor = AvoidGlobalStateRuleVisitor (this );
64+ final visitor = AvoidGlobalStateVisitor (this );
6565
6666 registry.addTopLevelVariableDeclaration (this , visitor);
6767 registry.addFieldDeclaration (this , visitor);
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ import 'package:analyzer/dart/ast/visitor.dart';
33import 'package:solid_lints/src/lints/avoid_global_state/avoid_global_state_rule.dart' ;
44
55/// Visitor for [AvoidGlobalStateRule] .
6- class AvoidGlobalStateRuleVisitor extends SimpleAstVisitor <void > {
6+ class AvoidGlobalStateVisitor extends SimpleAstVisitor <void > {
77 /// The rule this visitor is associated with.
88 final AvoidGlobalStateRule rule;
99
10- /// Creates an instance of [AvoidGlobalStateRuleVisitor ] .
11- AvoidGlobalStateRuleVisitor (this .rule);
10+ /// Creates an instance of [AvoidGlobalStateVisitor ] .
11+ AvoidGlobalStateVisitor (this .rule);
1212
1313 @override
1414 void visitTopLevelVariableDeclaration (TopLevelVariableDeclaration node) {
You can’t perform that action at this time.
0 commit comments