Repository navigation
chore: general maintenance - #15
Conversation
* chore: removed the unused `async` dependency * chore: added a version constraint to the `lint` dev dependency * chore: resolved all analyzer lints (`unnecessary_library_name`, `simplify_variable_pattern`, `async_return_with_no_await`, `unnecessary_async`) * ci: updated the GitHub actions to their latest major versions and replaced the flutter setup in the test job with the dart setup * ci: fixed the unquoted variable expansions in `bin/ensure_pana_score.sh` * doc: fixed the outdated/broken references in the readme and the dartdoc comments (the return type is a `FutureOr`, `Failed` exposes `reason`) * chore: aligned `.editorconfig` with what `dart format` produces and added a `.gitattributes` to normalise the line endings
There was a problem hiding this comment.
🟡 Changes recommended
Correct the documentation and missing .gitattributes references, and remove the generated device cache.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
This maintenance pull request updates dependencies, analyzer compliance, documentation, CI workflows, shell validation, and formatting configuration.
Changes:
- Removes the unused
asyncdependency and constrainslint. - Resolves analyzer lints and simplifies async code and tests.
- Updates documentation, CI actions, and shell safety.
- Adjusts editor and IDE configuration.
File summaries
| File | Reviewed changes |
|---|---|
test/src/behaviour_without_input_test.dart |
Removes unnecessary async test closures. |
test/src/behaviour_test.dart |
Removes unnecessary async test closures. |
README.md |
Updates API documentation; legacy references remain. |
pubspec.yaml |
Updates package metadata and dependencies. |
lib/src/exception_or.dart |
Corrects API documentation references. |
lib/src/exception_or_extensions.dart |
Simplifies pattern matching. |
lib/src/behaviour.dart |
Corrects return-type documentation. |
lib/src/behaviour_without_input.dart |
Corrects return-type documentation. |
lib/src/behaviour_without_input_interface.dart |
Corrects interface documentation. |
lib/src/behaviour_mixin.dart |
Updates async handling and documentation. |
lib/src/behaviour_interface.dart |
Corrects interface documentation. |
lib/behaviour.dart |
Removes the named library declaration. |
CHANGELOG.md |
Adds 3.0.2 release notes. |
bin/ensure_pana_score.sh |
Improves score parsing and shell safety. |
.idea/markdown.xml |
Adds IDE Markdown configuration. |
.idea/caches/deviceStreaming.xml |
Adds generated device cache data. |
.github/workflows/ensure_version_changed.yml |
Updates the checkout action. |
.github/workflows/ensure_code_quality.yml |
Updates CI actions and Dart setup. |
.editorconfig |
Aligns formatting settings. |
Review details
Files not reviewed (1)
- .idea/markdown.xml: Generated file
Suppressed comments (1)
.editorconfig:8
- The PR description says a
.gitattributesfile was added, but no such file is present in the checkout..editorconfigonly controls editor behavior and cannot enforce Git's line-ending normalization, so add the promised file or correct the description before considering this maintenance item complete.
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
- Files reviewed: 16/19 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
🟡 Changes recommended
Both updated README sections still use case-mismatched fragments that leave the “Return value” links broken.
Get a fresh assessment by requesting another Copilot review.
Review details
Files not reviewed (1)
- .idea/markdown.xml: Generated file
Suppressed comments (1)
README.md:62
- This second “Return value” link also retains the case-mismatched
#Return-valuefragment. Use the generated lowercase heading anchor so the link navigates correctly.
called a `FutureOr<ExceptionOr<TOut>>` value. For more details about that look
at the [Return value](#Return-value).
- Files reviewed: 17/20 changed files
- Comments generated: 1
- Review effort level: Balanced
GitHub slugifies headings to lowercase, so `## Return value` generates the fragment `#return-value`. Both links used `#Return-value` and therefore did not navigate to the section. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017b5dUmFrwLWxd8a85FN6Uy
There was a problem hiding this comment.
🟢 Approval recommended
The maintenance changes are internally consistent, preserve the synchronous and asynchronous API contracts, and pass the updated CI workflow.
Review details
Files not reviewed (1)
- .idea/markdown.xml: Generated file
- Files reviewed: 17/20 changed files
- Comments generated: 0 new
- Review effort level: Balanced
asyncdependencylintdev dependencyunnecessary_library_name,simplify_variable_pattern,async_return_with_no_await,unnecessary_async)bin/ensure_pana_score.shFutureOr,Failedexposesreason).editorconfigwith whatdart formatproduces and added a.gitattributesto normalise the line endings