Compare commits

...

2 Commits

Author SHA1 Message Date
993c8b60ac
refactor: rename tools/ to tool/ to follow dart conventions
Some checks failed
continuous-integration/drone/pr Build is failing
2023-10-09 22:04:10 +02:00
e94db052b8
fix: remove not yet implemented rule 2023-10-09 22:03:48 +02:00
10 changed files with 7 additions and 13 deletions

View File

@ -586,4 +586,4 @@ new_version.sh
example/
build/
*.iml
tool/

View File

@ -1,6 +1,5 @@
## 2.6.0
- **ADDED** annotate_redeclares (https://dart.dev/tools/linter-rules/annotate_redeclares)
- **ADDED** deprecated_member_use_from_same_package (https://dart.dev/tools/linter-rules/deprecated_member_use_from_same_package)
- **ADDED** diagnostic_describe_all_properties (https://dart.dev/tools/linter-rules/diagnostic_describe_all_properties)
- **ADDED** implicit_reopen (https://dart.dev/tools/linter-rules/implicit_reopen)

View File

@ -117,7 +117,7 @@ To indicate your project is using `wyatt_analysis` → [![style: wyatt analysis]
When you want to create a new version of the plugin. Before any modification, execute the following command to create new files:
```sh
./tools/new_version.sh <version>
./tool/new_version.sh <version>
```
The previous version is automatically retrieved from the `pubspec.yaml` file.
@ -136,7 +136,7 @@ And update the following files:
Then, you can use the following command to retrieve latest available lints from the official linter.
```sh
./tools/check_rules.sh
./tool/check_rules.sh
```
After that, you can modify the files `lib/analysis_options.<version>.yaml` and `lib/analysis_options.flutter.<version>.yaml` to add new lints or remove some.
@ -144,17 +144,17 @@ After that, you can modify the files `lib/analysis_options.<version>.yaml` and `
Then you can sort the lints with the following command:
```sh
./tools/sort_rules.sh
./tool/sort_rules.sh
```
Finally, you can generate the changelog with the following command:
```sh
./tools/generate_changelog.sh <old_version>
./tool/generate_changelog.sh <old_version>
```
The new version is automatically retrieved from the `pubspec.yaml` file. But **you have to specify** the previous version.
## Notes
You can explore every lint rules [here](https://dart.dev/tools/linter-rules).
You can explore every lint rules [here](https://dart.dev/tool/linter-rules).

View File

@ -42,7 +42,6 @@ linter:
- always_put_required_named_parameters_first
- always_use_package_imports
- annotate_overrides
- annotate_redeclares
- avoid_bool_literals_in_conditional_expressions
- avoid_catching_errors
- avoid_double_and_int_checks
@ -149,7 +148,6 @@ linter:
- prefer_final_fields
- prefer_final_in_for_each
- prefer_final_locals
- prefer_final_parameters
- prefer_for_elements_to_map_fromIterable
- prefer_foreach
- prefer_function_declarations_over_variables
@ -230,3 +228,4 @@ linter:
# - prefer_double_quotes
# - prefer_relative_imports
# - unnecessary_final
# - prefer_final_parameters

View File

@ -1,4 +1,3 @@
# Copyright (C) 2023 WYATT GROUP
# Please see the AUTHORS file for details.
#
@ -16,4 +15,3 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
include: package:wyatt_analysis/analysis_options.flutter.2.6.0.yaml

View File

@ -1,4 +1,3 @@
# Copyright (C) 2023 WYATT GROUP
# Please see the AUTHORS file for details.
#
@ -16,4 +15,3 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
include: package:wyatt_analysis/analysis_options.2.6.0.yaml