Repository navigation
chore: exclude build and native dirs from analyzer - #110
Merged
Merged
Conversation
Add analyzer.exclude for build/**, android/** and ios/** to the root and example analysis options so generated build output and platform folders are skipped by flutter analyze. Speeds up local and CI analysis and keeps results focused on hand-written Dart.
Bump transitive dev/test dependencies in the example app: matcher 0.12.19 -> 0.12.20, meta 1.17.0 -> 1.19.0, test_api 0.7.10 -> 0.7.12, vector_math 2.2.0 -> 2.4.3. No source changes; keeps flutter analyze/test in CI reproducible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary / 摘要
Exclude generated build output and native platform folders from Dart analysis / 让 Dart 分析跳过构建产物与原生平台目录
Changes / 变更
analyzer.excludeforbuild/**,android/**andios/**in the rootanalysis_options.yamland inexample/analysis_options.yaml/ 在根目录与 example 的analysis_options.yaml中新增analyzer.exclude:build/**、android/**、ios/**example/pubspec.lock(matcher 0.12.20, meta 1.19.0, test_api 0.7.12, vector_math 2.4.3) / 刷新 example 的传递依赖锁文件(matcher 0.12.20、meta 1.19.0、test_api 0.7.12、vector_math 2.4.3)Context / 背景
flutter analyzewas walking generated build artifacts and the platform folders, which adds noise and slows down local and CI runs; these paths contain no hand-written Dart and should be skipped. / 之前的flutter analyze会扫描构建产物与平台目录,既拖慢本地与 CI 运行又带来噪音;这些路径不含手写的 Dart 代码,应当排除。The lockfile refresh keeps the example app's dev/test toolchain current and makes CI analysis reproducible. / 锁文件刷新用于保持 example 的 dev/test 工具链较新,并让 CI 分析可复现。
No changes to
lib/, so no CHANGELOG entry is required per the repo convention. / 本次未改动lib/,按仓库约定无需写入 CHANGELOG。Checklist / 检查项
Test plan
flutter analyzereports no issues locally (verified before push) / 本地flutter analyze无问题(已推送前验证)Analyze & Test+Pana Score Checkgreen (this PR touchesanalysis_options.yaml, a code path, so the real jobs run) / CI 的Analyze & Test与Pana Score Check通过(本 PR 触及analysis_options.yaml,会触发完整任务)🤖 Generated with Zero Buddy