Skip to content

Commit 34ec24b

Browse files
authored
add library_annotations; remove package_prefixed_library_names (dart-archive/lints#179)
1 parent a0bf795 commit 34ec24b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

pkgs/lints/CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
## 4.0.0-wip
22

33
- `core`:
4-
- added `no_wildcard_variable_uses`
4+
- added `library_annotations` (https://github.com/dart-lang/lints/issues/177)
5+
- added `no_wildcard_variable_uses` (https://github.com/dart-lang/lints/issues/139)
6+
- removed `package_prefixed_library_names` (https://github.com/dart-lang/lints/issues/172)
57
- Updated the SDK lower-bound to 3.1.
68
- Add a section on upgrading to the latest lint set to the readme.
79

pkgs/lints/lib/core.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ linter:
2121
- file_names
2222
- hash_and_equals
2323
- implicit_call_tearoffs
24+
- library_annotations
2425
- no_duplicate_case_values
2526
- no_wildcard_variable_uses
2627
- non_constant_identifier_names
2728
- null_check_on_nullable_type_parameter
28-
- package_prefixed_library_names
2929
- prefer_generic_function_type_aliases
3030
- prefer_is_empty
3131
- prefer_is_not_empty

pkgs/lints/rules.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<!-- core -->
66
| Lint Rules | Description | [Fix][] |
77
| :--------- | :---------- | ------- |
8-
| [`avoid_empty_else`](https://dart.dev/lints/avoid_empty_else) | Avoid empty else statements. ||
8+
| [`avoid_empty_else`](https://dart.dev/lints/avoid_empty_else) | Avoid empty statements in else clauses. ||
99
| [`avoid_relative_lib_imports`](https://dart.dev/lints/avoid_relative_lib_imports) | Avoid relative imports for files in `lib/`. ||
1010
| [`avoid_shadowing_type_parameters`](https://dart.dev/lints/avoid_shadowing_type_parameters) | Avoid shadowing type parameters. | |
1111
| [`avoid_types_as_parameter_names`](https://dart.dev/lints/avoid_types_as_parameter_names) | Avoid types as parameter names. ||
@@ -20,11 +20,11 @@
2020
| [`file_names`](https://dart.dev/lints/file_names) | Name source files using `lowercase_with_underscores`. | |
2121
| [`hash_and_equals`](https://dart.dev/lints/hash_and_equals) | Always override `hashCode` if overriding `==`. ||
2222
| [`implicit_call_tearoffs`](https://dart.dev/lints/implicit_call_tearoffs) | Explicitly tear-off `call` methods when using an object as a Function. ||
23+
| [`library_annotations`](https://dart.dev/lints/library_annotations) | Attach library annotations to library directives. ||
2324
| [`no_duplicate_case_values`](https://dart.dev/lints/no_duplicate_case_values) | Don't use more than one case with same value. ||
2425
| [`no_wildcard_variable_uses`](https://dart.dev/lints/no_wildcard_variable_uses) | Don't use wildcard parameters or variables. | |
2526
| [`non_constant_identifier_names`](https://dart.dev/lints/non_constant_identifier_names) | Name non-constant identifiers using lowerCamelCase. ||
2627
| [`null_check_on_nullable_type_parameter`](https://dart.dev/lints/null_check_on_nullable_type_parameter) | Don't use null check on a potentially nullable type parameter. ||
27-
| [`package_prefixed_library_names`](https://dart.dev/lints/package_prefixed_library_names) | Prefix library names with the package name and a dot-separated path. | |
2828
| [`prefer_generic_function_type_aliases`](https://dart.dev/lints/prefer_generic_function_type_aliases) | Prefer generic function type aliases. ||
2929
| [`prefer_is_empty`](https://dart.dev/lints/prefer_is_empty) | Use `isEmpty` for Iterables and Maps. ||
3030
| [`prefer_is_not_empty`](https://dart.dev/lints/prefer_is_not_empty) | Use `isNotEmpty` for Iterables and Maps. ||

pkgs/lints/tool/rules.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"name": "avoid_empty_else",
14-
"description": "Avoid empty else statements.",
14+
"description": "Avoid empty statements in else clauses.",
1515
"fixStatus": "hasFix"
1616
},
1717
{

0 commit comments

Comments
 (0)