Skip to content

Commit c6ac2ee

Browse files
chore(analysis): update analysis options and linter rules for improved code quality and consistency
1 parent a1c7993 commit c6ac2ee

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

analysis_options.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,25 @@ include: package:flutter_lints/flutter.yaml
22

33
# Additional information about this file can be found at
44
# https://dart.dev/guides/language/analysis-options
5+
6+
linter:
7+
rules:
8+
# Documentation
9+
public_member_api_docs: true
10+
11+
# Performance
12+
avoid_print: true
13+
prefer_const_constructors: true
14+
prefer_const_declarations: true
15+
16+
# Style
17+
prefer_final_locals: true
18+
prefer_single_quotes: true
19+
20+
# Safety
21+
avoid_dynamic_calls: true
22+
avoid_type_to_string: true
23+
24+
# Library specific
25+
library_private_types_in_public_api: true
26+
missing_whitespace_between_adjacent_strings: true

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ environment:
1010
dependencies:
1111
flutter:
1212
sdk: flutter
13-
meta: ^1.16.0
13+
meta: ^1.12.0
1414

1515
dev_dependencies:
1616
flutter_test:
1717
sdk: flutter
18-
flutter_lints: ^3.0.0
18+
flutter_lints: ^4.0.0
1919

2020
# For information on the generic Dart part of this file, see the
2121
# following page: https://dart.dev/tools/pub/pubspec

0 commit comments

Comments
 (0)