Skip to content

Commit

Permalink
Enable new linter rules enabled by Dart 2.19 and 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Sep 3, 2023
1 parent 0ec2894 commit 91f06a6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 3.1.0

- Require Dart 3 or later
- Require Dart 3.0 or later
- Update to latest dependencies supporting Dart 3 and 3.1

## 3.0.0
Expand Down
12 changes: 12 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,25 @@ analyzer:
linter:
rules:
- always_declare_return_types
- combinators_ordering
- comment_references
- dangling_library_doc_comments
- deprecated_member_use_from_same_package
- implicit_call_tearoffs
- implicit_reopen
- library_annotations
- matching_super_parameters
- no_literal_bool_comparisons
- omit_local_variable_types
- prefer_final_fields
- prefer_final_in_for_each
- prefer_final_locals
- prefer_single_quotes
- type_annotate_public_apis
- type_literal_in_constant_pattern
- unawaited_futures
- unnecessary_library_directive
- unreachable_from_main
- use_enums
- use_string_in_part_of_directives
- use_super_parameters
2 changes: 2 additions & 0 deletions tool/grind.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unreachable_from_main

import 'package:cli_pkg/cli_pkg.dart' as pkg;
import 'package:grinder/grinder.dart';

Expand Down

0 comments on commit 91f06a6

Please sign in to comment.