Skip to content

Commit b644968

Browse files
fix(docs): update documentation based on markdownlint (#172)
* chore: update changelog format * chore: update changelog format * fix: markdown lints * fix: formatting * empty commit * empty commit * chore: reduce emojis * empty commit
1 parent abae958 commit b644968

File tree

6 files changed

+236
-255
lines changed

6 files changed

+236
-255
lines changed

CHANGELOG.md

Lines changed: 203 additions & 205 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 28 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing to Very Good Analysis
22

3-
👍🎉 First off, thanks for taking the time to contribute! 🎉👍
3+
First off, thanks for taking the time to contribute! 🎉👍
44

55
These are mostly guidelines, not rules. Use your best judgment,
66
and feel free to propose changes to this document in a pull request.
@@ -21,22 +21,21 @@ track of the issue.
2121

2222
If you intend to provide changes related to a add or remove rules you can follow these steps:
2323

24-
1. Run `dart tool/bump_version/main.dart <NEW_VERSION>` to generate a new version.
24+
1. Run `dart tool/bump_version/lib/bump_version.dart <NEW_VERSION>` to generate a new version.
2525
- Choose `<NEW_VERSION>` according to [Semantic Versioning](https://semver.org/) guidelines based on your proposed changes.
26-
1. Add or remove the lint rules you want to change in the version file you generated in step 1.
26+
1. Add or remove the lint rules you want to change in the version file you generated in step 1.
2727
1. Document the rules that were removed with a reason as to why, if there is any.
2828
- Link to an issue as to why a lint rule should not be used if there is any.
2929
1. Create a pull request following the guidelines in the [Creating a Pull Request](#creating-a-pull-request) section below.
3030

31-
3231
## Contributing rules from a new Dart version
3332

3433
If you intend to provide changes related to a **new Dart version** you can follow these steps:
3534

3635
1. Ensure you are on the latest stable Dart version.
37-
1. Run `dart tool/bump_version/main.dart <NEW_VERSION>` to generate a new version.
36+
1. Run `dart tool/bump_version/lib/bump_version.dart <NEW_VERSION>` to generate a new version.
3837
- Choose `<NEW_VERSION>` according to [Semantic Versioning](https://semver.org/) guidelines based on your proposed changes.
39-
1. Add or remove the lint rules you want to change in the version file you generated in step 2.
38+
1. Add or remove the lint rules you want to change in the version file you generated in step 2.
4039
- To find new rules more easily you can run the same command as in step 4 which will add new rules directly to the exclusion table.
4140
1. Open a terminal in `tool/linter_rules` and run `dart lib/exclusion_reason_table.dart` to generate an up-to-date exclusion table.
4241
1. Document the rules that were removed with a reason as to why, if there is any.
@@ -57,67 +56,55 @@ Before creating a pull request please:
5756
1. Format your code (`dart format .`).
5857
1. Analyze your code (`dart analyze . --fatal-infos`).
5958
1. Follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0) specification for your commit messages.
60-
- This enables automatic version bumping and changelog generation as detailed in the [Release Process](#release-process) section.
59+
- This enables automatic version bumping and changelog generation as detailed in the [Release Process](#release-process-🚀) section.
6160
1. Create the Pull Request.
6261
1. Verify that all status checks are passing.
6362

64-
6563
While the prerequisites above must be satisfied prior to having your
6664
pull request reviewed, the reviewer(s) may ask you to complete additional
6765
design work, tests, or other changes before your pull request can be ultimately
6866
accepted.
6967

70-
7168
## Release Process 🚀
7269

73-
##### ‼️ Important
74-
- Every snapshot of a version is saved on its own yaml file under the name pattern: `lib/analysis_options.<version>.yaml`.
75-
70+
> Every snapshot of a version is saved on its own yaml file under the name pattern: `lib/analysis_options.<version>.yaml`.
7671
7772
We use [`release-please-action`][release-please-action-link] to automate versioning and changelog generation, along with a GitHub workflow that automatically publish the Very Good Analysis to pub.dev.
7873

79-
### How it works:
74+
### How it works
8075

8176
- 📌 **On Every Commit to main:**
82-
- Commits are analyzed using [Conventional Commits][conventional_commits_link].
83-
- If a version bump is needed, a **release PR** is automatically created or updated by [`release-please-action`][release-please-action-link].
84-
- The **release PR** includes:
85-
- An updated `CHANGELOG.md`
86-
- A version bump in `pubspec.yaml`
87-
88-
##### ‼️ Important
89-
- A version verification workflow (`.github/workflows/verify_version.yaml`) runs to ensure:
90-
- The version in `pubspec.yaml` matches the version in `lib/analysis_options.yaml`
91-
- The file `lib/analysis_options_<NEW_VERSION>.yaml` exists
92-
- If any mismatches are found, the files need to be manually updated to match
77+
- Commits are analyzed using [Conventional Commits][conventional_commits_link].
78+
- If a version bump is needed, a **release PR** is automatically created or updated by [`release-please-action`][release-please-action-link].
79+
- The **release PR** includes:
80+
- An updated `CHANGELOG.md`
81+
- A version bump in `pubspec.yaml`
9382

94-
##### 💡 Notes
83+
> A version verification workflow (`.github/workflows/verify_version.yaml`) runs to ensure:
84+
>- The version in `pubspec.yaml` matches the version in `lib/analysis_options.yaml`
85+
>- The file `lib/analysis_options_<NEW_VERSION>.yaml` exists
86+
>- If any mismatches are found, the files need to be manually updated to match
9587
96-
- The GitHub Action workflow that automates the release process is configured in `.github/workflows/release_please.yaml`
97-
- release-please settings are defined in `.release-please-config.json` and `.release-please-manifest.json`
98-
- The release PR can be manually edited before merging.
99-
- The release PR should be merged **ONLY** when a new release is needed.
88+
##### 💡 Notes
10089

101-
<br />
90+
- The GitHub Action workflow that automates the release process is configured in `.github/workflows/release_please.yaml`
91+
- release-please settings are defined in `.release-please-config.json` and `.release-please-manifest.json`
92+
- The release PR can be manually edited before merging.
93+
- The release PR should be merged **ONLY** when a new release is needed.
10294

10395
-**When the Release PR Is Merged:**
104-
- A new Git tag is created.
105-
- A GitHub Release is published with the changelog.
106-
- A new version of Very Good Analysis is automatically published in pub.dev.
107-
108-
#### 💡 Notes
96+
- A new Git tag is created.
97+
- A GitHub Release is published with the changelog.
98+
- A new version of Very Good Analysis is automatically published in pub.dev.
10999

110-
- The publishing process is automatically triggered when a version tag is created.
111-
- The automated publishing workflow to pub.dev is defined in `.github/workflows/pub_publish.yaml`
100+
#### 💡 Notes
112101

113-
<br />
102+
- The publishing process is automatically triggered when a version tag is created.
103+
- The automated publishing workflow to pub.dev is defined in `.github/workflows/pub_publish.yaml`
114104

115105
This document provides a good summary of how it works and how we use it, but we recommend that you also read the official documentation of [Conventional Commits][conventional_commits_link], [Semantic Versioning][sem_ver_link], [Publishing Dart packages][dart_publishing_link] and [`release-please-action`][release-please-action-link].
116106

117107
[dart_publishing_link]: https://dart.dev/tools/pub/publishing
118108
[sem_ver_link]: https://semver.org/
119109
[release-please-action-link]: https://github.com/googleapis/release-please-action
120110
[conventional_commits_link]: https://www.conventionalcommits.org/en/v1.0.0
121-
[bug_report_link]: https://github.com/VeryGoodOpenSource/very_good_cli/issues/new?assignees=&labels=bug&template=bug_report.md&title=fix%3A+
122-
[very_good_core_link]: doc/very_good_core.md
123-
[very_good_ventures_link]: https://verygood.ventures/?utm_source=github&utm_medium=banner&utm_campaign=CLI

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,4 @@ Below is a list of rules that are not enabled by default together with the reaso
135135
[pub_badge_link]: https://pub.dartlang.org/packages/very_good_analysis
136136
[very_good_ventures_link]: https://verygood.ventures
137137
[very_good_ventures_link_dark]: https://verygood.ventures#gh-dark-mode-only
138-
[very_good_ventures_link_light]: https://verygood.ventures#gh-light-mode-only
138+
[very_good_ventures_link_light]: https://verygood.ventures#gh-light-mode-only

tool/bump_version/lib/bump_version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/// Run this script (from project root):
1010
///
1111
/// ```sh
12-
/// dart tool/bump_version/main.dart <new_version>
12+
/// dart tool/bump_version/lib/bump_version.dart <new_version>
1313
/// ```
1414
///
1515
/// Where `<new_version>` is the new version to bump to in the format `x.y.z`.

tool/bump_version/pubspec.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ version: 0.1.0+1
44
publish_to: none
55

66
environment:
7-
sdk: ^3.8.0
8-
7+
sdk: ^3.9.0

tool/linter_rules/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Rules that are missing a reason in the `exclusion_reasons.json` file will be giv
3535
| version | The Very Good Analysis version to use. | latest (from lib/analysis_options.yaml) |
3636
| set-exit-if-changed | Set the exit code to 2 if there are changes to the exclusion reasons. | false |
3737

38-
3938
## Analyze 🔍
4039

4140
If you're looking to update Very Good Analysis you might want to analyze the health of the latest rule set. You can use the script at `bin/analyze.dart` to do exactly that.
@@ -63,7 +62,6 @@ dart bin/analyze.dart $version
6362

6463
Where version is the existing Very Good Analysis version you would like to analyze, for example `10.0.0`.
6564

66-
6765
## Check and remove deprecated rules 🔍
6866

6967
The script `tool/linter_rules/bin/remove_deprecated_rules.dart` helps maintain Very Good Analysis by automatically handling deprecated linter rules.
@@ -84,13 +82,12 @@ To check and remove deprecated rules, run the following command (from `tool/lint
8482
dart bin/remove_deprecated_rules.dart
8583
```
8684

87-
8885
## Automations
8986

9087
There is a [GitHub workflow](../../.github/workflows/bot_updater.yaml) that automates the maintenance of the linter rules. This workflow runs on a schedule (every weekday) and can also be triggered manually.
9188

9289
It performs two main tasks:
9390

94-
1. **Update Exclusion Table**: It checks if there are any changes to the exclusion reasons for linter rules. If there are, it regenerates the exclusion table in this README and creates a pull request with the title `docs: update exclusion table`.
91+
1. **Update Exclusion Table**: It checks if there are any changes to the exclusion reasons for linter rules. If there are, it regenerates the exclusion table in this README and creates a pull request with the title `docs: update exclusion table`.
9592

96-
2. **Remove Deprecated Rules**: It checks for deprecated linter rules currently used in Very Good Analysis. If any are found, it automatically removes them from the analysis options, creates a new version of the analysis options file, and opens a pull request with the changes, titled `feat: remove deprecated rules`.
93+
2. **Remove Deprecated Rules**: It checks for deprecated linter rules currently used in Very Good Analysis. If any are found, it automatically removes them from the analysis options, creates a new version of the analysis options file, and opens a pull request with the changes, titled `feat: remove deprecated rules`.

0 commit comments

Comments
 (0)