Skip to content

chore: fix pre-existing CI analyze failures#2728

Merged
Alspb merged 1 commit into
masterfrom
chore/fix-ci-analyze-warnings
May 7, 2026
Merged

chore: fix pre-existing CI analyze failures#2728
Alspb merged 1 commit into
masterfrom
chore/fix-ci-analyze-warnings

Conversation

@Alspb
Copy link
Copy Markdown
Collaborator

@Alspb Alspb commented May 7, 2026

Problem

Three pre-existing issues cause every fork PR to fail CI regardless of code quality:

  1. flutter analyze exits non-zero due to experimental_member_use warnings in example/ and flutter_quill_extensions/ (intentional use of package:flutter_quill/internal.dart)
  2. Deprecated Matrix4.translate call in quill_single_child_scroll_view.dart
  3. flutter-analyze-commenter fails with "Resource not accessible by integration" on fork PRs — the pull_request trigger runs without write access to the base repo, so it can never post a comment

Changes description

  • Add per-package analysis_options.yaml to example/ and flutter_quill_extensions/ suppressing experimental_member_use where usage is deliberate. Root analysis_options.yaml is unchanged — the main lib still warns on accidental experimental API use.
  • Replace transform.translate(dx, dy)transform.translateByDouble(dx, dy, 0, 1)
  • Add continue-on-error: true to the commenter step so a permission failure on fork PRs doesn't fail the workflow. The analysis step itself remains strict.

Type of Change

  • Feature: New functionality without breaking existing features.
  • 🛠️ Bug fix: Resolves an issue without altering current behavior.
  • 🧹 Refactor: Code reorganization, no behavior change.
  • Breaking: Alters existing functionality and requires updates.
  • 🧪 Tests: New or modified tests
  • 📝 Documentation: Updates or additions to documentation.
  • 🗑️ Chore: Routine tasks, or maintenance.
  • Build configuration change: Build/configuration changes.

Copilot AI review requested due to automatic review settings May 7, 2026 07:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses pre-existing CI failures that caused flutter analyze (and a follow-up commenter step) to fail in fork-based PRs, independent of the PR’s code quality.

Changes:

  • Suppresses experimental_member_use diagnostics in example/ and flutter_quill_extensions/ via local analysis_options.yaml.
  • Updates a deprecated Matrix4.translate usage in the editor viewport paint transform.
  • Prevents the analyze-commenter GitHub Action step from failing the workflow by marking it continue-on-error.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
lib/src/editor/raw_editor/quill_single_child_scroll_view.dart Replaces deprecated matrix translation call in applyPaintTransform.
flutter_quill_extensions/analysis_options.yaml Adds analyzer config to ignore experimental_member_use in the extensions package.
example/analysis_options.yaml Adds analyzer config to ignore experimental_member_use in the example app.
.github/workflows/pr-checks.yml Marks the analyze-commenter step as non-fatal to avoid fork permission failures failing CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +5
include: package:flutter_lints/flutter.yaml

analyzer:
errors:
experimental_member_use: ignore
Comment on lines 35 to 38
- if: ${{ !cancelled() }}
name: Run Flutter Analyze Commenter
continue-on-error: true
uses: yorifuji/flutter-analyze-commenter@v1
@Alspb Alspb added the no changelog This pull request does not require an update to the changelog, as it does not introduce significant label May 7, 2026
@Alspb Alspb merged commit 5854fcd into master May 7, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This pull request does not require an update to the changelog, as it does not introduce significant

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants