Skip to content

fix(learn): address PR #51 review findings - #53

Merged
cursor[bot] merged 2 commits into
feat/learn-common-commandsfrom
cursor/fix-learn-review-findings-8f67
Jul 9, 2026
Merged

fix(learn): address PR #51 review findings#53
cursor[bot] merged 2 commits into
feat/learn-common-commandsfrom
cursor/fix-learn-review-findings-8f67

Conversation

@baanish

@baanish baanish commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up for #51 review feedback on qr learn role-command detection.

  • Skip Makefile :=/?= assignments and tabbed recipe bodies; skip Justfile := / set / export / alias
  • Do not invent next lint (removed in Next.js 16)
  • Plain main.py is no longer treated as FastAPI / uvicorn
  • Preserve make/just bodies when filling Node role commands (no pnpm build for a missing package script)
  • Gate cargo run / go run . on a real binary / root package main
  • Prefix Pipenv-learned commands with pipenv run

Test plan

Open in Web Open in Cursor 

Skip Makefile/Justfile assignments, avoid inventing next lint or
FastAPI for plain main.py, preserve make/just bodies on Node, gate
cargo/go run on real binaries, and prefix Pipenv commands.

Co-authored-by: Aanish Bhirud <baanish@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: abbc9af6-f9e8-4aa9-804d-802a5c1bee2e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cursor/fix-learn-review-findings-8f67

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Co-authored-by: Aanish Bhirud <baanish@users.noreply.github.com>
@cursor
cursor Bot marked this pull request as ready for review July 9, 2026 09:15
@cursor
cursor Bot merged commit 7a6f050 into feat/learn-common-commands Jul 9, 2026
5 checks passed
@cursor
cursor Bot deleted the cursor/fix-learn-review-findings-8f67 branch July 9, 2026 09:15
Comment thread src/project_profile.rs
continue;
};
// Skip variable assignments (`x := y`, `x ?= y`, `x ::= y`).
if rest.starts_with('=') {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

WARNING: GNU make legacy ::= assignments are not actually skipped, despite the doc comment (line 771) and inline note (line 790) claiming x ::= y is handled.

For a line like VERSION ::= 1.2.3, split_once(':') splits at the first colon, so rest becomes := 1.2.3 (starts with :, not =). The guard therefore does not fire and VERSION is inserted as a spurious make VERSION target. The := form only works because its rest begins with =; the ?= form is skipped only via the no-colon None branch.

Suggested fix (covers ::= whose rest begins with := … without breaking double-colon rules like a:: b: whose rest begins with : …):

Suggested change
if rest.starts_with('=') {
if rest.starts_with('=') || rest.starts_with(":=") {

Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
src/project_profile.rs 791 Makefile ::= legacy assignments aren't skipped — rest starts with : not =, so a spurious make <var> target is invented (contradicts the doc comment that claims ::= is handled).
Files Reviewed (2 files)
  • src/project_profile.rs - 1 issue
  • CHANGELOG.md - no issues

Fix these issues in Kilo Cloud


Reviewed by glm-5.2-short · Input: 22.3K · Output: 18.2K · Cached: 389.8K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants