Modernize codebase: Remove deprecated lints, update dependencies, and upgrade GitHub Actions #30
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR modernizes the codebase by removing deprecated lint rules, updating dependencies to their latest versions, and upgrading GitHub Actions workflows to use current versions.
Changes
1. Remove deprecated
unsafe_htmllint ruleThe
unsafe_htmllint rule was removed in Dart 3.7.0. This rule has been removed from both the mainanalysis_options.yamlandexample/analysis_options.yamlfiles to eliminate analyzer warnings:2. Update
lintspackage to 6.0.0Updated the
lintspackage from version 3.0.0 to 6.0.0 inpubspec.yaml. This brings in the latest Dart lint rules and best practices, ensuring the codebase follows current coding standards.3. Remove unnecessary library name
Modern Dart no longer requires explicit library names. Changed
library dart_either;tolibrary;inlib/dart_either.dartto follow theunnecessary_library_namelint recommendation:4. Update GitHub Actions workflows
Updated
dart-lang/setup-dartaction from v1.4 to v1.7 in both CI workflow files (.github/workflows/dart.ymland.github/workflows/example.yml). This ensures CI uses the latest Dart setup action with improvements, bug fixes, and better performance.Verification
--fatal-infos --fatal-warningsBenefits
Closes #[issue_number]
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl-ssl.google.comwget -qO- REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Fixes #29
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.