Skip to content

Commit 80c1ce6

Browse files
applied code review suggestions regarding making lintCode private
1 parent 03b680c commit 80c1ce6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/lints/avoid_global_state/avoid_global_state_rule.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AvoidGlobalStateRule extends AnalysisRule {
3939
static const String lintName = 'avoid_global_state';
4040

4141
/// Lint code used for suppression and reporting.
42-
static const LintCode code = LintCode(
42+
static const LintCode _code = LintCode(
4343
lintName,
4444
'Avoid variables that can be globally mutated.',
4545
correctionMessage:
@@ -54,7 +54,7 @@ class AvoidGlobalStateRule extends AnalysisRule {
5454
);
5555

5656
@override
57-
LintCode get diagnosticCode => code;
57+
LintCode get diagnosticCode => _code;
5858

5959
@override
6060
void registerNodeProcessors(

0 commit comments

Comments
 (0)