-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Version String Format Change Fix #148
Conversation
Update version string parsing logic to handle new format in rules.json where sinceDartSdk field changed from "major.minor.patch" (e.g. "2.2.0") to "major.minor" format (e.g. "2.2").
…ing parsing logic
Ready for review 🚀 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the great improvements!!
So it was a problem with sinceDartSdk
. It was a blind spot for me.
All the workarounds seemed fine, so I accepted them!! 🙌
(It might be a good idea to raise an issue with pub_semver
, since I'm sure there are at least a few people with the same problem.🤔)
|
||
- Removed lint rules as they are now marked as "removed" in the upstream Dart SDK [dart-lang/sdk/pkg/linter/tool/machine/rules.json@762a4c7]. This is an intentional change as these rules have been officially deprecated: | ||
- `package_api_docs` | ||
- `unsafe_html` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// NOTE: | ||
// This is a workaround for the fact that the `sinceDartSdk` field in the [rules.json] is not always a valid version. | ||
// Expected format: "1.0", "2.1", etc. | ||
// Unexpected format examples: "3.3-wip", "3.5-dev", etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue
Overview (Required)
This PR addresses the issue where lint rules were not being generated correctly due to a format change in the version strings from "major.minor.patch" (e.g., "2.2.0") to "major.minor" (e.g., "2.2") in the source data.
Changes
Important Notes
package_api_docs
andunsafe_html
) were removed from the generated output. Due to these breaking changes, we plan to hold off on releasing until Issue #138 is resolved.Scope
This PR specifically focuses on the version string parsing fix. Updates for the latest Dart/Flutter lint rules will be discussed and handled separately to keep the changes focused and manageable.
Links
Screenshot
N/A