Dart: analysis_options `include:` in list form or an explicit rule list is "no lint set"; Flutter integration tests under example/integration_test are not tests
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
The three false negatives all come from checks in project_validator/ecosystems/dart.py: the LINT_SET regex near lines 149-150 (which does not recognise the dart-lang team lint set or the list form of include:), and the test-path regex at line 73 (which does not match integration_test/). Start by reproducing each case with a small analysis_options.yaml or example/integration_test/ fixture and the existing Dart tests. Done means the three repositories cited in the issue pass those checks without loosening the existing negative cases.
索引モデルが issue の本文から書いたものです。
説明
dart-lang/http's root options include the dart-lang team lint set (which includes lints/recommended) and enable the strict modes, yet compiler-warnings FAILs "missing a lint set in analysis_options.yaml"; bloc's root file spells out ~200 rules with no include:, and its package files use the Dart 3 list form of include:, which the single-line regex ^include:\s*package: misses. http's Flutter plugins (cronet_http, ok_http) keep their tests in example/integration_test/*_test.dart and CI runs them on an emulator → "no tests found".
Evidence from the corpus audit
dart-lang/http / compiler-warnings
- kind: FALSE_NEGATIVE
- actual: FAIL: Dart: missing Dart analyzer settings: a lint set in analysis_options.yaml
- expected: PASS: the root analysis_options.yaml includes the dart-lang team lint set (which itself includes
lints/recommended) and enables the three strict modes, and every workflow runsdart analyze. - evidence:
analysis_options.yaml:1:include: package:dart_flutter_team_lints/analysis_options.yaml;
analysis_options.yaml:5-7:strict-casts: true/strict-raw-types: true/strict-inference: true;
validatorproject_validator/ecosystems/dart.py:149-150: the LINT_SET regex only knows
lints/recommended|flutter_lints/flutter|very_good_analysis/analysis_options|lint/...|pedantic/analysis_options. - repro:
analysis_options.yamlwithinclude: package:dart_flutter_team_lints/analysis_options.yaml+ a workflow
steprun: dart analyze --fatal-infos. - confidence: high
felangel/bloc / compiler-warnings
- kind: FALSE_NEGATIVE
- actual: FAIL: Dart: missing Dart analyzer settings: a lint set in analysis_options.yaml
- expected: PASS (or at least not "missing"): the root options file has no
include:but spells out ~200 lint rules
plus the strict modes; the package files include a lint set with the list form ofinclude:(Dart 3.x), which the
single-line regex^include:\s*package:does not match. - evidence:
analysis_options.yaml:8-10:strict-casts: true/strict-inference: true/strict-raw-types: true;
analysis_options.yaml:22-24:linter:/rules:/- always_declare_return_types(and ~200 more);
packages/bloc/analysis_options.yaml:1-3:include:/- package:bloc_lint/recommended.yaml/
- ../../analysis_options.yaml. - repro:
analysis_options.yamlcontaininginclude:\n - package:lints/recommended.yaml(list form). - confidence: medium
dart-lang/http / tests-run
- kind: FALSE_NEGATIVE
- actual: FAIL: Dart: pkgs/cronet_http: no tests found (test(), testWidgets() or group() calls in test/**/*_test.dart);
pkgs/ok_http: no tests found (...) - expected: PASS for both: the Flutter plugins' tests are integration tests in
example/integration_test/*_test.dart
and CI runs them on an emulator. - evidence:
pkgs/cronet_http/example/integration_test/client_test.dart,pkgs/ok_http/example/integration_test/client_test.dart
(5 files) exist;.github/workflows/cronet.yml:119:script: cd pkgs/cronet_http/example && flutter test --dart-define=cronetHttpNoPlay=${{ matrix.cronetHttpNoPlay }} --timeout=1200s integration_test/;
.github/workflows/okhttp.yaml:68:script: cd pkgs/ok_http/example && flutter test --timeout=1200s integration_test/;
validatorproject_validator/ecosystems/dart.py:73:path=re.compile(r"(?:^|/)test/.+_test\.dart$")(does not
matchintegration_test/). Thescript:input ofreactivecircus/android-emulator-runneris neither read nor
reported as unread (strict run lists only the dart-lang/ecosystem reusable workflows). - repro:
example/integration_test/a_test.dartwithtestWidgets(, and a step
uses: reactivecircus/android-emulator-runner@<sha>withscript: cd example && flutter test integration_test/. - confidence: high
Found by the regression-corpus audit (235 real repositories, one or more per ecosystem profile; corpus and expected results in corpus/). Evidence is quoted from the audited checkouts at the commits pinned in corpus/projects.toml; <checkouts>/<owner>__<repo> is such a checkout.
🤖 Generated with Claude Code
- 主要言語
- Python
- スター
- 4
- フォーク
- 1
- 平均マージ
- 10時間 41分
- マージ済み PR(30日)
- 79
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cpp-best-practices/project_validator のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
cpp-best-practices/project_validator#267 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
cpp-best-practices/project_validator#263 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
cpp-best-practices/project_validator#260 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
cpp-best-practices/project_validator#259 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
cpp-best-practices/project_validator#255 ·
メンテナーはふだん 1 日以内に返信
cpp-best-practices/project_validator の issue をすべて見る
似ている issue
-
plot_graph crashes when a mesh node has no m2m edge対応中かも @tygvi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mllam/neural-lam#883 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
enhancement possible-duplicate
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/PictoPy#1715 · コメント 2 件 ·
メンテナーはふだん 6 日以内に返信
-
SQLite connector omits generated columns from the catalog, and drops relationships sourced on themオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NVIDIA/auto-ontology#511 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ethereum/execution-specs#3996 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Project-N-E-K-O/N.E.K.O#3725 ·
メンテナーはふだん 1 日以内に返信