Justification YAML validation accepts locations without lines and boolean integers
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 74/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- testing-qa, tooling
調査の方向性
まず score_coverage/justify.py、特に validate_yaml と resolve_location_lines を確認し、次に justification YAML の検証テストを調べてください。行セレクターのない位置とブール値がどのように扱われるか、また id が欠落または無効な場合に検証が続行されるかを確認してください。不正な例が拒否され、エントリーに関するすべての指摘が報告されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Found while reviewing the user manual against the implementation at fe013fe (score_coverage/justify.py).
The justification YAML is validated before it is applied, but some malformed input passes:
- A location without any line selector, or with only
line_startor onlyline_end, is accepted.resolve_location_linesreturns no lines for it, so the entry silently justifies nothing. version: trueis accepted, becauseboolis anintin Python. The same holds for boolean values ofline,line_start,line_endand inlines.- An entry without
id, or with a non-stringid, reports only that finding; its other fields are not checked.
Reproduction
version: true
justifications:
- id: a-b
category: other
platforms: [linux]
reason: x
locations:
- file: a.cpp
line_start: 3
justify.validate_yaml accepts this document. resolve_location_lines({'file': 'a.cpp', 'line_start': 3}) returns [].
Expected behavior
Reject a location that does not select at least one line, reject booleans where an integer is required, and report all findings of an entry.
- 主要言語
- Python
- スター
- 0
- フォーク
- 4
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 16
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-score/coverage_tool のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
eclipse-score/coverage_tool#101 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-score/coverage_tool#98 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
eclipse-score/coverage_tool#96 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
eclipse-score/coverage_tool#95 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eclipse-score/coverage_tool#27 ·
メンテナーはふだん 2 日以内に返信
eclipse-score/coverage_tool の issue をすべて見る
似ている issue
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
future-agi/future-agi#5908 ·
メンテナーはふだん 1 日以内に返信
-
Placeholder export disables HTML image input for picture description対応中かも @cloudiful が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
docling-project/docling-serve#817 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
Techiebutler/freeframe#687 ·
メンテナーはふだん 1 日以内に返信
-
Parse truncated verbose GC logs up to the first XML error対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug verbose GC
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
IBM/javacore-analyser#677 ·
メンテナーはふだん 1 日以内に返信
-
Image publishing fails for annotated release tags (v0.2.3 never published)対応中かも @zgypa-agent が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
bolton-brush/BFD9000#119 ·