File tree Expand file tree Collapse file tree 5 files changed +17
-15
lines changed
custom_lint_builder/example/example_lint
custom_lint/example/example_lint Expand file tree Collapse file tree 5 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ analyzer:
11
11
included_file_warning : ignore
12
12
# false positive when using Freezed
13
13
invalid_annotation_target : ignore
14
+ # # Too painful to upgrade analyzer, and an official Google package is coming
15
+ deprecated_member_use : ignore
14
16
15
17
linter :
16
18
rules :
Original file line number Diff line number Diff line change 1
- # include: ../analysis_options.yaml
1
+ include : ../analysis_options.yaml
2
2
3
- # linter:
4
- # rules:
5
- # public_member_api_docs: false
6
- # avoid_print: false
3
+ linter :
4
+ rules :
5
+ public_member_api_docs : false
6
+ avoid_print : false
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ PluginBase createPlugin() => _RiverpodLint();
23
23
class _RiverpodLint extends PluginBase {
24
24
@override
25
25
List <LintRule > getLintRules (CustomLintConfigs configs) => [
26
- PreferFinalProviders (),
26
+ const PreferFinalProviders (),
27
27
];
28
28
29
29
@override
@@ -36,7 +36,7 @@ class _RiverpodLint extends PluginBase {
36
36
///
37
37
/// For emitting lints on non-Dart files, subclass [LintRule] .
38
38
class PreferFinalProviders extends DartLintRule {
39
- PreferFinalProviders () : super (code: _code);
39
+ const PreferFinalProviders () : super (code: _code);
40
40
41
41
/// Metadata about the lint define. This is the code which will show-up in the IDE,
42
42
/// and its description..
@@ -47,7 +47,7 @@ class PreferFinalProviders extends DartLintRule {
47
47
48
48
/// The core logic for our custom lint rule.
49
49
/// In our case, it will search over all variables defined in a Dart file and
50
- /// search for the ones that implement a specific type (see [__providerBaseChecker ] ).
50
+ /// search for the ones that implement a specific type (see [_providerBaseChecker ] ).
51
51
@override
52
52
void run (
53
53
// This object contains metadata about the analyzed file
Original file line number Diff line number Diff line change 1
- # include: ../analysis_options.yaml
1
+ include : ../analysis_options.yaml
2
2
3
- # linter:
4
- # rules:
5
- # public_member_api_docs: false
6
- # avoid_print: false
3
+ linter :
4
+ rules :
5
+ public_member_api_docs : false
6
+ avoid_print : false
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ PluginBase createPlugin() => _RiverpodLint();
23
23
class _RiverpodLint extends PluginBase {
24
24
@override
25
25
List <LintRule > getLintRules (CustomLintConfigs configs) => [
26
- PreferFinalProviders (),
26
+ const PreferFinalProviders (),
27
27
];
28
28
29
29
@override
@@ -36,7 +36,7 @@ class _RiverpodLint extends PluginBase {
36
36
///
37
37
/// For emitting lints on non-Dart files, subclass [LintRule] .
38
38
class PreferFinalProviders extends DartLintRule {
39
- PreferFinalProviders () : super (code: _code);
39
+ const PreferFinalProviders () : super (code: _code);
40
40
41
41
/// Metadata about the lint define. This is the code which will show-up in the IDE,
42
42
/// and its description..
You can’t perform that action at this time.
0 commit comments