Compare commits

..

No commits in common. "993c8b60ac488c69e77522df20fa9632df8ec15a" and "8a026cf541340dbb93361c5121c488672e408af1" have entirely different histories.

10 changed files with 13 additions and 7 deletions

View File

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

View File

@ -1,5 +1,6 @@
## 2.6.0 ## 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** 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** 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) - **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: When you want to create a new version of the plugin. Before any modification, execute the following command to create new files:
```sh ```sh
./tool/new_version.sh <version> ./tools/new_version.sh <version>
``` ```
The previous version is automatically retrieved from the `pubspec.yaml` file. 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. Then, you can use the following command to retrieve latest available lints from the official linter.
```sh ```sh
./tool/check_rules.sh ./tools/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. 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: Then you can sort the lints with the following command:
```sh ```sh
./tool/sort_rules.sh ./tools/sort_rules.sh
``` ```
Finally, you can generate the changelog with the following command: Finally, you can generate the changelog with the following command:
```sh ```sh
./tool/generate_changelog.sh <old_version> ./tools/generate_changelog.sh <old_version>
``` ```
The new version is automatically retrieved from the `pubspec.yaml` file. But **you have to specify** the previous version. The new version is automatically retrieved from the `pubspec.yaml` file. But **you have to specify** the previous version.
## Notes ## Notes
You can explore every lint rules [here](https://dart.dev/tool/linter-rules). You can explore every lint rules [here](https://dart.dev/tools/linter-rules).

View File

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

View File

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

View File

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