Skip to content

Commit

Permalink
renamed classes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoRosaa committed Jul 26, 2023
1 parent 95c680f commit 5e5e42c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/riverpod_lint/lib/riverpod_lint.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'src/assists/wrap_with_consumer.dart';
import 'src/assists/wrap_with_provider_scope.dart';
import 'src/lints/avoid_manual_providers_as_generated_provider_dependency.dart';
import 'src/lints/avoid_public_notifier_properties.dart';
import 'src/lints/avoid_use_ref_inside_dispose.dart';
import 'src/lints/avoid_ref_inside_state_dispose.dart';
import 'src/lints/generator_class_extends.dart';
import 'src/lints/missing_provider_scope.dart';
import 'src/lints/provider_dependencies.dart';
Expand All @@ -32,7 +32,7 @@ class _RiverpodPlugin extends PluginBase {
const AvoidManualProvidersAsGeneratedProviderDependency(),
const ScopedProvidersShouldSpecifyDependencies(),
const UnsupportedProviderValue(),
const AvoidUseRefInsideDispose(),
const AvoidRefInsideStateDispose(),
// const AvoidDynamicProviders(),
// // "Avoid passing providers as parameter to objects"
// const AvoidExposingProviderRef(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import '../riverpod_custom_lint.dart';

const disposeMethod = 'dispose';

class AvoidUseRefInsideDispose extends RiverpodLintRule {
const AvoidUseRefInsideDispose() : super(code: _code);
class AvoidRefInsideStateDispose extends RiverpodLintRule {
const AvoidRefInsideStateDispose() : super(code: _code);

static const _code = LintCode(
name: 'avoid_ref_inside_state_dispose',
Expand Down

0 comments on commit 5e5e42c

Please sign in to comment.