-
Notifications
You must be signed in to change notification settings - Fork 0
chore(tooling): add coverage task to Taskfile.yml and justfile #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,8 @@ tasks: | |
| ci: | ||
| desc: Run full local CI sweep | ||
| cmds: [task lint, task test, task audit] | ||
|
|
||
| coverage: | ||
| desc: Measure code coverage (SSOT: see grade.sh for the canonical command). | ||
| cmds: | ||
| - cargo llvm-cov --workspace --fail-under-lines 85 | ||
|
Comment on lines
+24
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Add an explicit AgilePlus spec reference (for example, a spec ID in the task description or adjacent comment) so this new Severity Level: Minor Why it matters? 🤔This is newly added task configuration, and it does not include any AgilePlus spec reference or other traceability marker. The repository guidance says new work should be tied to an existing spec before implementation, so the suggestion correctly identifies a real rule violation. Fix in Cursor | Fix in VSCode Claude (Use Cmd/Ctrl + Click for best experience) Prompt for AI Agent 🤖This is a comment left during a code review.
**Path:** Taskfile.yml
**Line:** 24:27
**Comment:**
*Custom Rule: Add an explicit AgilePlus spec reference (for example, a spec ID in the task description or adjacent comment) so this new `coverage` task is traceable to approved planned work.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,3 +24,6 @@ grade-html: | |
| @echo "=== Running grade (HTML) ===" | ||
| ./grade.sh --html | ||
|
|
||
| # Measure code coverage (SSOT: see grade.sh for the canonical command) | ||
| coverage: | ||
| cargo llvm-cov --workspace --fail-under-lines 85 | ||
|
Comment on lines
+27
to
+29
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Add an AgilePlus spec identifier/reference to this newly introduced coverage task (for example in the comment above it) so the implementation is explicitly traceable to an approved spec. [custom_rule] Severity Level: Minor Why it matters? 🤔This is a newly introduced feature/task in the justfile, and it does not include any AgilePlus spec identifier or reference. The only comment mentions SSOT/grade.sh, which is not a spec reference. That matches the custom rule requiring new work to be tied to an approved spec before implementation. Fix in Cursor | Fix in VSCode Claude (Use Cmd/Ctrl + Click for best experience) Prompt for AI Agent 🤖This is a comment left during a code review.
**Path:** justfile
**Line:** 27:29
**Comment:**
*Custom Rule: Add an AgilePlus spec identifier/reference to this newly introduced coverage task (for example in the comment above it) so the implementation is explicitly traceable to an approved spec.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: KooshaPari/phenoAI
Length of output: 283
Quote the
descvalue to fix YAML syntax error.The unquoted colon in
SSOT: see grade.shcreates a mapping value where the parser expects a scalar, causing Taskfile.yml to fail parsing. This violates the coding guideline requiring all YAML files to pass linting before commit.Fix
📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 25-25: syntax error: mapping values are not allowed here
(syntax)
🤖 Prompt for AI Agents
Sources: Coding guidelines, Linters/SAST tools