Skip to content

Commit 72f386e

Browse files
committed
release: Bump to 1.0.3
1 parent a3a6f42 commit 72f386e

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
## 1.0.3
2+
3+
Add new linter rules:
4+
5+
- [always_put_control_body_on_new_line](https://dart.dev/tools/linter-rules/always_put_control_body_on_new_line) — Along with curly_braces_in_flow_control_structures will help us to create flow breakers more organically (e.g. avoid having `if (..) return;`)
6+
7+
- [avoid_slow_async_io](https://dart.dev/tools/linter-rules/avoid_slow_async_io) — Instead of using certain async IO function, dart suggests to use their sync alternatives
8+
9+
- [directives_ordering](https://dart.dev/tools/linter-rules/directives_ordering) — Sort imports
10+
11+
- [matching_super_parameters](https://dart.dev/tools/linter-rules/matching_super_parameters) — If you inherit from a class, make sure the constructor params sequence match the parent's params
12+
13+
- [no_self_assignments](https://dart.dev/tools/linter-rules/no_self_assignments) — Avoid having `a = a;`
14+
15+
- [prefer_asserts_in_initializer_lists](https://dart.dev/tools/linter-rules/prefer_asserts_in_initializer_lists) — Put asserts on the initializer level, not in to the constructor body
16+
17+
- [unnecessary_await_in_return](https://dart.dev/tools/linter-rules/unnecessary_await_in_return) — No need to await before returning
18+
19+
- [unnecessary_breaks](https://dart.dev/tools/linter-rules/unnecessary_breaks) — No need for a break unless you want to end execution earlier.
20+
21+
- [unnecessary_lambdas](https://dart.dev/tools/linter-rules/unnecessary_lambdas) — If a method's parameters match the parameters of a required callback, don't create a lambda but pass the method directly as a tear-off.
22+
23+
- [unnecessary_library_directive](https://dart.dev/tools/linter-rules/unnecessary_library_directive) — If `library` directive doesn't provide a name, it's not needed
24+
25+
- [unnecessary_null_aware_operator_on_extension_on_nullable](https://dart.dev/tools/linter-rules/unnecessary_null_aware_operator_on_extension_on_nullable) — If an extension is declared on a nullable type, no need to do the check
26+
27+
- [unnecessary_null_checks](https://dart.dev/tools/linter-rules/unnecessary_null_checks) — Removes null checks, e.g. if a function accepts a nullable variable there's no reason to pass it as `v!`
28+
29+
- [unnecessary_parenthesis](https://dart.dev/tools/linter-rules/unnecessary_parenthesis) — Removes brackets
30+
31+
- [unnecessary_statements](https://dart.dev/tools/linter-rules/unnecessary_statements) — Avoids having statements that return a result but aren't used.
32+
133
## 1.0.2
234

335
* Add platforms information to pub.dev

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Or add it to the `pubspec.yaml` yourself:
1919

2020
```yaml
2121
dev_dependencies:
22-
monstarlab_lints: ^1.0.2
22+
monstarlab_lints: ^1.0.3
2323
```
2424
2525
### Configure analysis options
@@ -32,5 +32,5 @@ include: package:monstarlab_lints/analysis_options.yaml
3232

3333

3434
<!-- References -->
35-
[pub-version-img]: https://img.shields.io/badge/pub-v1.0.2-0175c2?logo=flutter
35+
[pub-version-img]: https://img.shields.io/badge/pub-v1.0.3-0175c2?logo=flutter
3636
[pub-version-url]: https://pub.dev/packages/monstarlab_lints

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: monstarlab_lints
22
description: Flutter lint rules used in Monstarlab EMEA.
3-
version: 1.0.2
3+
version: 1.0.3
44
homepage: https://github.com/monstar-lab-oss/flutter_lints
55
repository: https://github.com/monstar-lab-oss/flutter_lints
66
issue_tracker: https://github.com/monstar-lab-oss/flutter_lints/issues

0 commit comments

Comments
 (0)