Skip to content
This repository was archived by the owner on Aug 2, 2025. It is now read-only.

Commit 855f5ea

Browse files
authored
Add notes regarding migrating from pedantic (#41)
1 parent c833213 commit 855f5ea

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ You can customize the pre-defined lint sets, both to disable one or more of the
6464
lints included, or to add additional lints. For details see [customizing static
6565
analysis].
6666
67+
## Migrating from `package:pedantic`
68+
69+
In migrating from the pre-defined lint sets provided by the [`package:pedantic`],
70+
you get static analysis coverage from 29 additional lints. There are, however,
71+
6 lints which the pedantic package includes which are not included in the
72+
pre-defined lint sets provided by the lints package:
73+
`always_declare_return_types`, `prefer_single_quotes`,
74+
`sort_child_properties_last` (included in [`package:flutter_lints`]),
75+
`unawaited_futures`, `unsafe_html`, and
76+
`use_full_hex_values_for_flutter_colors` (included in [`package:flutter_lints`]).
77+
To keep any of these lints enabled,
78+
add them to your [analysis options][customizing static analysis].
79+
6780
## Submitting Feedback
6881

6982
Feedback is welcome! If you want to propose an existing lint for inclusion here,
@@ -79,3 +92,5 @@ lints or have an idea for a new one, please file an issue on the [linter repo].
7992
[pub.dev]: https://pub.dev
8093
[issue]: https://github.com/dart-lang/lints/issues
8194
[linter repo]: https://github.com/dart-lang/linter
95+
[`package:pedantic`]: https://pub.dev/packages/pedantic
96+
[`package:flutter_lints`]: https://pub.dev/packages/flutter_lints

0 commit comments

Comments
 (0)