feat/upgrade-analysis #228

Merged
hugo merged 2 commits from feat/upgrade-analysis into master 2023-10-09 20:04:51 +00:00
6 changed files with 6 additions and 6 deletions
Showing only changes of commit 993c8b60ac - Show all commits

View File

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

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
./tools/new_version.sh <version> ./tool/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
./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. 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
./tools/sort_rules.sh ./tool/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
./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. 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/tools/linter-rules). You can explore every lint rules [here](https://dart.dev/tool/linter-rules).